Using -lat with mogify

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
miguellint
Posts: 22
Joined: 2015-09-27T20:26:53-07:00
Authentication code: 1151

Using -lat with mogify

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Using -lat with mogify

Post 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.
miguellint
Posts: 22
Joined: 2015-09-27T20:26:53-07:00
Authentication code: 1151

Re: Using -lat with mogify

Post by miguellint »

Hello Fred...

Thanks for that.

So I'll just use my trusty for loop.

All the best
Miguel
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Using -lat with mogify

Post 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.
Post Reply