| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, login, search, subscribe, help, library, PubCon, 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.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved