I need to show an image that is 4000x6000 px. What are your experiences with displaying large images online?
My initial idea was to use the GMap cutter and the Google Maps API to show the image. GMap Cutter takes an image and cuts it appropriately for use as a google map. My problem with approach is that the image will be changing often, and so I'll need to re-cut the image often. GMap Cutter doesn't have a command-line version, so I can't write a cron job for this...I'll need to do it manually every hour or so. Is there a better option for doing this?
Or any other solutions I can consider?
I'd recommend slicing it up with ImageMagick. It allows cropping via a view port and is fairly configurable. In addition it works fairly well from a Linux/Windows command prompt (or within Perl,PHP or Python using exec).
http://www.imagemagick.org/Usage/
Here's the documentation for the actual tile crop functionality.
http://www.imagemagick.org/Usage/crop/#crop_tile
With options to crop using gravity, the ability to adjust the size/quality of the output image and support for virtually every common image format ImageMagick should get you done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With