Search found 4 matches

by cub
2013-11-19T02:05:11-07:00
Forum: Users
Topic: Skip export of full transparent tiles (map tiles)
Replies: 5
Views: 2474

Re: Skip export of full transparent tiles (map tiles)

snibgo wrote:Unless you are using VARG later, you don't need it.
True ^^'
Thanks for your help/suggest snibgo !
by cub
2013-11-15T07:26:03-07:00
Forum: Users
Topic: Skip export of full transparent tiles (map tiles)
Replies: 5
Views: 2474

Re: Skip export of full transparent tiles (map tiles)

Ok I wrote a cleaner : SETLOCAL ENABLEDELAYEDEXPANSION FOR %%F IN (*.png) DO ( FOR /f %%i in ('D:\im\identify -format "%%[fx:maxima.o]" "%%F"') DO ( set VARG=%%i IF [!VARG!]==[0] DEL %%F ) ) The first loop is to parse all png The second to save the result of the identify (need SETLOCAL ...
by cub
2013-11-15T06:26:08-07:00
Forum: Users
Topic: Skip export of full transparent tiles (map tiles)
Replies: 5
Views: 2474

Re: Skip export of full transparent tiles (map tiles)

Hmm.. "2091_1429.png" is a empty tile as I explained I tried : identify -format "%[fx:maxima.a]" 2091_1429.png Return me 1 And if I do a verbose it log me a correct min&max 0 alpha : identify -verbose 2091_1429.png Image: 2091_1429.png Format: PNG (Portable Network Graphics) Class: DirectClass ...
by cub
2013-11-15T03:58:33-07:00
Forum: Users
Topic: Skip export of full transparent tiles (map tiles)
Replies: 5
Views: 2474

Skip export of full transparent tiles (map tiles)

Hi, I'm using ImageMagick for exporting tiles layer for map (like openstreetmap). It works well : convert "zoom12.png" -crop 256x256 ^ -set filename:tile "%%[fx:page.x/256+2064]_%%[fx:page.y/256+1401]" ^ +repage +adjoin "%%[filename:tile].png" But sometimes, my image ('zoom12.png' in my exemple) has ...