jectionpro Posted March 25, 2008 Share Posted March 25, 2008 Hi there, when i ask the google about mysql+ image processing, i get a lot of information on how to orginize groups of images rather than how to process one image in detail. I am trying to find out if there is some sort of extension, or special methods, or any tutorials for handling images at the pixel level with php and mysql? for instance if i had a black and white image, and i wanted a grey outline along the white/black border, i would need to run some queries to change certian white cells that are close to black cells to grey. Any pointers greatly appreciated! Link to comment https://forums.phpfreaks.com/topic/97866-storing-an-image-in-mysql-to-manipulating-the-byte-data/ Share on other sites More sharing options...
discomatt Posted March 25, 2008 Share Posted March 25, 2008 You want the GD library for PHP. MySQL was not built to edit images. Link to comment https://forums.phpfreaks.com/topic/97866-storing-an-image-in-mysql-to-manipulating-the-byte-data/#findComment-500776 Share on other sites More sharing options...
BlueSkyIS Posted March 25, 2008 Share Posted March 25, 2008 yes. i also wouldn't store image in MySQL, if that's what you're doing. Link to comment https://forums.phpfreaks.com/topic/97866-storing-an-image-in-mysql-to-manipulating-the-byte-data/#findComment-500781 Share on other sites More sharing options...
jectionpro Posted March 25, 2008 Author Share Posted March 25, 2008 then how should i store images so that i can reference the cells? (i am basically using images as a way of passing data). what about storing the image indirectly so that you can rebuild the image if you have to? x_value, y_value, numberRepresentingColor looked at eh GD library, looks interesting. Can i make my own custom filters easily? (would be all i need for my inserting a grey area problem) Link to comment https://forums.phpfreaks.com/topic/97866-storing-an-image-in-mysql-to-manipulating-the-byte-data/#findComment-500790 Share on other sites More sharing options...
roopurt18 Posted March 25, 2008 Share Posted March 25, 2008 Save the image on the hard drive. Store it's path and meta information in the database. When you need to edit it open the image on the hard drive and use the GD library. Link to comment https://forums.phpfreaks.com/topic/97866-storing-an-image-in-mysql-to-manipulating-the-byte-data/#findComment-500821 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.