| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|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.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved