Page 1 of 1

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

Posted: 2015-11-24T00:07:12-07:00
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.

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

Posted: 2015-11-24T10:03:09-07:00
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