| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
|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-2014 all rights reserved