Here is an example. I have png images in the directory /Users/fred/zelda I want to trim them all and convert them to jpg format in another (already created but empty) directory /Users/fred/zelda2:
cd /Users/fred/zelda mogrify -path /Users/fred/zelda2/ -format jpg -fuzz 10% -trim +repage *.png see http://www.imagemagick.org/Usage/basics/#mogrify >Hello, > >I have problems with trimming jpg files. They are stored in >subsubdirectories and I would like to trim them in one click. I use >such command > >convert */*/*.jpg -fuzz 10% -trim +repage *.jpg > >I don't know how to tell convert to gest inside each of the >subsubdirectory, convert the file (or mogrify, but with mogrify the >whole operation doesn't work) and make a copy of the original files or >overwrite the originals (so I tried with mogrify). > >Does anybody know how to do it? I think I should use regular >expression, but unfortunately I am not so advanced user of Linux. > >Thanks in advance, > >Best regards, > >Anna _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
