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 ...
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 ...
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 ...