What workflow should I follow to tile images in ImageMagick the same way MapTiler does for OL3?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
taigi100
Posts: 1
Joined: 2015-11-24T00:05:07-07:00
Authentication code: 1151

What workflow should I follow to tile images in ImageMagick the same way MapTiler does for OL3?

Post by taigi100 »

If I'm using MapTiler to tile a raster image it seems to always provide a OL3 code that only uses resolutions that are powers of 2. I've tried to figure out how it does it, but I can't seem to find a formula for finding the right amount of tiles for each zoom level.

How should I calculate the resolution/tiles number for a zoom level? Also, what exactly do those resolutions mean for a XYZ layer with "PIXELS" projection?

After adding some borders ( full alpha ) to the pictures so they are square I tried a lot of resizing and cropping but none seemed to work the way I wanted : I tried doing a 100% 50% 25% 12.5% zoom levels, didn't work. I tried making both sizes multiples of 256px and then chosing some sizes, keeping in mind the aspect ratio, didn't work, only used sizes that are multiples of 2, did work the but difference between zoom levels was too high.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: What workflow should I follow to tile images in ImageMagick the same way MapTiler does for OL3?

Post by fmw42 »

Perhaps you should post an example image that you are trying to process and tell us exactly what results you want. You can upload an image to some place such as dropbox.com and put the URL here. Also always identify your IM version and platform, since syntax may differ. See viewtopic.php?f=1&t=9620
Post Reply