I'm developing a photo gallery/store site. I am storing full-resolution, full-quality images on my server and generating (and caching) lower resolution thumbnails for previewing the images. As it stands, I accept PNG and JPEG images via the GD image functions. Typically, I upload PNG files, but if I happen to upload a JPEG file, it will be retained as a JPEG (to reduce space requirements - no reason to convert).

All of the above is working perfectly in PHP using GD image functions, including an automatic watermarking scheme.

PNG files typically offer a nice reduction in file size over uncompressed lossless files while not throwing away any image data. I've been relatively pleased with it, at least until I discovered JPEG2000 lossless. Completely lossless, just like PNG, but 1/3 smaller. That means 50% more images can fit in the same space. And considering that web space is quite valuable (especially when you're looking at storing hundreds, thousands, or more of several megapixel plus full-color images online at all times) this is a very significant thing to me.

So, has anybody worked with JPEG 2000 and PHP? I'm guessing ImageMagick is the program to use, does that support JPEG2000, and if so, does it work well and everything?

Also, there might be other formats out there that support lossless photo compression, any suggestions that would match/beat JPEG2000 and be usable with PHP? (I'm only going to be accessing the full-resolution, losslessly encoded images when a customer actually buys the image, so there is no need for extreme PHP integration or anything, just a decent way to archive and de-archive the images and, most important of all - save space!)

Suggestions and thoughts anybody?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to