blur x,y (command line [convert] statement)

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
Ravinderjit S.Sidhu

blur x,y (command line [convert] statement)

Post by Ravinderjit S.Sidhu »

I want to give blur to a PNG file.
I have X-blur range from (0..100), and Y-blur range from (0..100)

what will be a simple command line statement.
please do me a favour.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: blur x,y (command line [convert] statement)

Post by anthony »

Directly IM will not blur X and Y values separatally.

However you have a number of options to restrict the blur a little

You can do a motion blur in say just the X direction (do in in both X directions for uniformity) than a separate on in Y direction.
http://imagemagick.org/Usage/convolve/#motion-blur

Or you can create your own convolution kernel that blurs one direction more than another.
IM Examples (just rough notes)
http://imagemagick.org/Usage/convolve/#convolve
However Fred Wienhaus has a simplified treaty on using convolutions
Goto http://www.fmwconcepts.com/imagemagick/
and follow the "digital filter" link.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply