| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Accredited PayPal World Seller|
|resize and download image|
| 8:11 pm on Jul 16, 2009 (gmt 0)|
I would like to download and then resize an image with php from one server to another. Is it possible ? What would be the best way to do so ?
| 6:35 pm on Jul 17, 2009 (gmt 0)|
$content = file_get_contents($url);
file_put_contents (PATH_TO_IMAGE . $img, $content);
$img_filename_ = PATH_TO_IMAGE . $img;
$size = getimagesize($img_filename_);
# to resize use rule of three
then upload new file with copy()
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2013 all rights reserved