| 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|
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 ?
$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