Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A good way to display large images online [closed]

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?

like image 832
Vlad the Impala Avatar asked Jan 18 '10 21:01

Vlad the Impala


1 Answers

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.

like image 135
Eric Kigathi Avatar answered Oct 13 '22 16:10

Eric Kigathi