Vignette Help ?

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
sivamurugan

Vignette Help ?

Post by sivamurugan »

Hi i am using the below command to apply vignette effect for the "source.jpg" Image and i have got the "destination.png" image

Code: Select all

 exe("convert source.jpg -background CEDAE8 -vignette 210x530   destination.png") 
[/b]

Please help me to get the expected result which i have attached "expected.png"

Source Image : https://www.newtoybox.com/toybox/testing/source.jpg
Destination : https://www.newtoybox.com/toybox/testin ... nation.png
expected : https://www.newtoybox.com/toybox/testing/expected.jpg


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

Re: Vignette Help ?

Post by fmw42 »

try

convert source.jpg -background black -vignette 100x65000 result.png
sivamurugan

Re: Vignette Help ?

Post by sivamurugan »

Sorry i didn't get the Expected Result :(
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Vignette Help ?

Post by fmw42 »

If this is not even close to what you want, then perhaps you need to upgrade your IM. I used 6.5.8-10 Q16 Mac OSX Tiger.

convert source.jpg -background black -vignette 100x65000 result.png

Image
sivamurugan

Re: Vignette Help ?

Post by sivamurugan »

HI can i know how to calculate the "100x65000" ? is it depending on image resolution ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Vignette Help ?

Post by fmw42 »

the 100x65000 was some trial and error as I have not used vignette much. using x65000 means that the taper will be linear rather than gaussian. the 100 means that the taper should extend over about 100 pixels.
Post Reply