Jump to content

file_put_contents and resize


treeleaf20

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.