batch png to jpg drop in conversion
Posted: 2015-04-25T20:38:09-07:00
Hello!
I'm want to save up some hdd space and decided to batch convert my image collection into jpg files as quite a few of the images there are in png format.
Did some tests with the command line but I can't quite manage to replace the png images with jpg versions while also deleting the original png and having the new jpg use the same file name. Gave both convert and mogrify a go, any ideas?
This code above almost does the job with the exception of not maintaining the original file names
I'm want to save up some hdd space and decided to batch convert my image collection into jpg files as quite a few of the images there are in png format.
Did some tests with the command line but I can't quite manage to replace the png images with jpg versions while also deleting the original png and having the new jpg use the same file name. Gave both convert and mogrify a go, any ideas?
Code: Select all
convert ephemeral:*.png *.jpg