Jump to content

resize image from database...


hassank1

Recommended Posts

the tutorial that I've read abt image resizing suppose that image exist in a path ex:

$file='\picutre.jpg' ;

 

however .. I've saved my images into a database ... so I want to get the image from the db then resize it save it back in a new record in my DB with the new size ...

 

ex: "select imagedata from ...." ..

$imagedata= image data from DB...

 

so I want to resize my picture but the variable that I've is the image binary and not the path ..

so how can I resize it ? and how can I get the new filesize , and filetype?

Link to comment
https://forums.phpfreaks.com/topic/99540-resize-image-from-database/
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.