Imagemagick help (well really a DOS scripting question)
Posted: 2019-05-03T22:36:04-07:00
Hey there.
So trying to keep two up to date versions of tiles at 50px and 100px is a pain. Clearly the better plan is to keep the 100px one up to date and then copy and resize this directory whenever I update. I must be able to do this using basic DOS scripts and imagemagick, but I can't figure it out for the life of me.
The imagemagick command is actually pretty straightforward:
mogrify -resize 50% *.png
The one problem I have with this is that it results the correct sized image in pixels, but no real gain in filesize. Any thoughts?
However the real trouble here is the DOS scripting required to run this on a folder and and all of its subdirectories. Any ideas? Any help much appreciated - and rewarded with a healthy dose of rep
So trying to keep two up to date versions of tiles at 50px and 100px is a pain. Clearly the better plan is to keep the 100px one up to date and then copy and resize this directory whenever I update. I must be able to do this using basic DOS scripts and imagemagick, but I can't figure it out for the life of me.
The imagemagick command is actually pretty straightforward:
mogrify -resize 50% *.png
The one problem I have with this is that it results the correct sized image in pixels, but no real gain in filesize. Any thoughts?
However the real trouble here is the DOS scripting required to run this on a folder and and all of its subdirectories. Any ideas? Any help much appreciated - and rewarded with a healthy dose of rep