How to truncate Filename outputs?
Posted: 2012-03-01T16:45:54-07:00
I was wondering of there was a way to create a truncated output of converted files using mogrify?
ie:
/
image001--large.png
image002--large.png
image003--large.png
This code only reduces and overwrites the *--large.png files
How can I get a result that keeps the original files and outputs the converted files by removing the last --large.png and get this below?
image001.png
image002.png
image003.png
ie:
/
image001--large.png
image002--large.png
image003--large.png
Code: Select all
mogrify -transparent none -resize 50% -define png:format=png32 *--large.png
How can I get a result that keeps the original files and outputs the converted files by removing the last --large.png and get this below?
image001.png
image002.png
image003.png