treeleaf20 Posted December 4, 2009 Share Posted December 4, 2009 All, I have the following code that works good: $contents = file_get_contents( $picbigid[$i] ); $bytesWritten = file_put_contents( $saveLocation . basename($picbigid[$i]) , $contents ); This gets the original image size of the image. Is there anyway to still use file_put_contents and just resize it to 100x100 without doing an imagecreatefromjpeg etc? Thanks for the help in advance! Link to comment https://forums.phpfreaks.com/topic/183931-file_put_contents-and-resize/ Share on other sites More sharing options...
JAY6390 Posted December 4, 2009 Share Posted December 4, 2009 If you have imagemagick you can use the convert function to reisze it http://www.imagemagick.org/Usage/resize/#resize Link to comment https://forums.phpfreaks.com/topic/183931-file_put_contents-and-resize/#findComment-970971 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.