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! Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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) Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.