0

how to find all images in a directory and its sub-directories, with types gif, jpg, jpeg, png, ico, and run mogrify -strip your_filename.jpg on them?

Can the command mogrify -strip corrupt an image?

Also can the command mogrify -strip be run on a gif file?

  • (1) Please take our short [tour] to see how the site is designed to work. One question per post please. (2) "Can the command `mogrify -strip` be run on a gif file?" – What keeps you from trying? – Kamil Maciorowski Dec 20 '22 at 09:36

1 Answers1

0

I believe there are two parts in your question, the first one, you can run any command on files using something like this:

find /path "*.gif" -exec cmd {} \;

It's important to have a single space after {}.

as for the mogrify, it's safer to take a look at the documentation and run some tests.

Link to man mogrify

Alberto Pires
  • 201
  • 1
  • 4