Page 1 of 1

Using -lat with mogify

Posted: 2015-11-07T21:18:48-07:00
by miguellint
Hello...

Can I use -lat with mogrify?

When I tried the following command...

Code: Select all

mogrify -lat 10x10+2%  *.png
... I got the following error message

Code: Select all

mogrify: unrecognized option `-lat' @ error/mogrify.c/MogrifyImageCommand/5263
---

The following convert command works fine...

Code: Select all

convert  in_001.png  -lat 10x10+2% out_001.png
...but I have several hundred images to convert.

Using Kubuntu 15.10 and IM 6.8.9-9

Thanks
Miguel

Re: Using -lat with mogify

Posted: 2015-11-07T21:20:57-07:00
by fmw42
Mogrify is a much simpler function than convert and allows fewer options to processing. So it would appear that mogrify does not allow -lat.

So you will need to write a script loop over each file in a directory and use convert to process them.

Re: Using -lat with mogify

Posted: 2015-11-07T21:51:00-07:00
by miguellint
Hello Fred...

Thanks for that.

So I'll just use my trusty for loop.

All the best
Miguel

Re: Using -lat with mogify

Posted: 2015-11-08T01:31:36-07:00
by fmw42
It is conceivable that it could be added to mogrify. But I would not wait for it. I doubt it would be soon. I tested in IM 6.9.2.5 Q16 Mac OSX and got your same error message.

If you know how to do for loops, then that would be the best thing for now.

You could also look at http://www.imagemagick.org/Usage/basics/#mogrify_not, if you are well-versed in Unix commands.