BlackenedSky Posted March 29, 2007 Share Posted March 29, 2007 Hi, Having a small nightmare trying to resize an image that is stored in a blob. Anyone had any experience with this? Any help would be great, or a link. Closest I can find is some vague reference to image magic pulling an image from a blob, but that's about it. I DON'T want to have to create a file though to display an image, just pull it from the DB and display it via PHP which is what it currently does. Thanks! Link to comment https://forums.phpfreaks.com/topic/44829-solved-mysql-blob-image-resize/ Share on other sites More sharing options...
hitman6003 Posted March 29, 2007 Share Posted March 29, 2007 You will have to use the imagecreatefromstring function to create the "gd" reference to the image from your database field. Then use imagecopyresized to resize the image. Link to comment https://forums.phpfreaks.com/topic/44829-solved-mysql-blob-image-resize/#findComment-217734 Share on other sites More sharing options...
BlackenedSky Posted March 30, 2007 Author Share Posted March 30, 2007 got it working now. Thanks for you help! Link to comment https://forums.phpfreaks.com/topic/44829-solved-mysql-blob-image-resize/#findComment-217840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.