Need Help performing those steps in command line

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
hsadek
Posts: 1
Joined: 2010-10-22T12:36:30-07:00
Authentication code: 8675308

Need Help performing those steps in command line

Post by hsadek »

Hi All,
Actually I was having the following steps in GIMP and I was trying to see if theres equivalent command lines for those operations on imagemagick!! Please advice

- 3 layers from the same picture -

Change on the upper layer:

Mode: Overlay
Opacity: 22.2
Filter:
Edge Detect
*Laplace
*Neon
Blur
*Gaussian Blur (Blur Radius:5)

- Change on the Middle Layer:
Mode: Normal
Opacity 22.2
Filter:
Enhance
Sharpen (Value:99)
Blur
Gaussian Blur (Blur Radius:5)

-Changes on the Lower Layer
Mode: Normal
Opacity: 82.5
Filter:
Enhance
Wavelet Sharpen (Amount: 3.9) (Radius: 1.74)
Blur
Selective Gaussian Blur (Radius: 3.0) (Max. Delta:50)
Enhance
Sharpen (Value 99)
Blur
Selective Gaussian Blur (Radius: 5.0) (Max. Delta:134)
Selective Gaussian Blur (Radius: 5.0) (Max. Delta:134)
Artistic
Cartoon (Mask Radius:3.10 ) (Percent Black: 0.043)


Thanks,
-H
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Need Help performing those steps in command line

Post by fmw42 »

IM can do most of what you ask, but not all. Some functions may have slightly different arguments. The ones I see in your list that IM does not include (though they may be possible to script) include: Neon, wavelet sharpen and cartoon.

I have some scripts that may help, for sharpening and cartoon effect. see cartoon, binomialedge, gaussianedge, sharpedge. also see my laplacian script (though you can provide your weights to IM function -convolve or -mophology convolve to get the same results.

IM does not have a wavelet sharpen, but one of my scripts or using -morphology convolve may get something close enough.

I don't know what Neon does and would have to study that from GIMP.

IM can separate channels and you can apply processing to each channel as desired and then recombine channels.

See http://www.imagemagick.org/Usage/channels/ and parenthesis process at http://www.imagemagick.org/Usage/basics/#parenthesis

The list of IM functions is at http://www.imagemagick.org/script/comma ... ptions.php and example usage at http://www.imagemagick.org/Usage/
Post Reply