N/APosted on - 04/05/2013
I have been working on a website using PHP & MySQL. I found out that the JPEG files that have are a bit heavy and therefore wanted a code that would automatically convert all uploaded JPEG images into PGM file formats. May you kindly provide me with a source code for JPEG to PGM so that I can incorporate into my work.
Thanks a bunch.
I need a cross platform source code for JPEG to PGM.
Converting JPEG to PGM would become very complicated. If you are storing all the images into the database, I would suggest you not to, as you can just store the images in the file system and place just the image URL into the database. This would not make it heavy.
This would be helpful- http://theonlytutorials.com/very-simple-php-script-to-upload-image-or-file-from-an-url/