Page 1 of 1

How to stop mogrify -format from making new images?

Posted: 2013-08-29T11:47:57-07:00
by acoustic7
Hello all, I have a simple question.

I'm using the command:

Code: Select all

mogrify -format pgm *.png
to convert a folder of pngs to pgms. While I understand why it does it, morgify just makes a new image in the different format. I have a bunch of images and don't want to keep doubling the size of the directory. Is there a way to make mogrify just replace the image? If not, is there a way to delete all of a type of image (i.e. png) once i'm done mogrifying it all?

Thanks!!

Re: How to stop mogrify -format from making new images?

Posted: 2013-08-29T11:51:00-07:00
by fmw42
It just so happens that this question was answered (two days ago) about 10 posts below yours. see viewtopic.php?f=1&t=23980 and the ephemeral: option. http://www.imagemagick.org/Usage/files/#ephemeral

Re: How to stop mogrify -format from making new images?

Posted: 2013-08-29T12:04:07-07:00
by acoustic7
Ahh! Wouldya look at that! Thanks so much! I apologize for not taking the time to dig deeper and see if the question had already been answered. Poor forum etiquette of me, but thank you so much!