blank png after converting a rotated image to vignette

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
ravikum
Posts: 34
Joined: 2013-03-20T05:35:37-07:00
Authentication code: 6789

blank png after converting a rotated image to vignette

Post by ravikum »

Hello,
I have rotated an image :

Code: Select all

/usr/local/bin/convert  IMAGE1.jpg -virtual-pixel Transparent  -verbose    +distort SRT 21 +verbose IMAGE2.png
IMAGE1 Image
IMAGE2 Image

Then, I try to apply vignette

Code: Select all

/usr/local/bin/convert  IMAGE2.png -alpha Set -background none -vignette 0x10 IMAGE3.png
IMAGE3 Image

But, IMAGE3 is blank png.

Please suggest.
Thanks
(using the latest IM version on linux centos 6)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: blank png after converting a rotated image to vignette

Post by snibgo »

It works fine for me, on that input image. IM v6.9.2-5. What version IM do you have? Do all images show the problem?
snibgo's IM pages: im.snibgo.com
ravikum
Posts: 34
Joined: 2013-03-20T05:35:37-07:00
Authentication code: 6789

Re: blank png after converting a rotated image to vignette

Post by ravikum »

I am using 6.9.2-3.
I have tried many other images and got the same blank png for those commands.

Thanks
(using the latest IM version on linux centos 6)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: blank png after converting a rotated image to vignette

Post by snibgo »

Your image3.png is 146x130 pixels, all transparent black. I don't know why. Try it without "-alpha Set -background none", or with just one of those options.
snibgo's IM pages: im.snibgo.com
ravikum
Posts: 34
Joined: 2013-03-20T05:35:37-07:00
Authentication code: 6789

Re: blank png after converting a rotated image to vignette

Post by ravikum »

Hello,
I have upgraded to latest 6.9.3-4 Q16
and checked again.
still got blank image trying to vignette on rotated image

Code: Select all

-alpha Set -background none -vignette 0x3
Please check.
(using the latest IM version on linux centos 6)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: blank png after converting a rotated image to vignette

Post by fmw42 »

This works fine for me using IM 6.9.3.4 Q16 Mac OSX

Image

Code: Select all

convert thumbnail.gif -background none +distort SRT 21 +repage \
-channel rgba -background none -vignette 0x10 thumbnail_vignette.png
Image
ravikum
Posts: 34
Joined: 2013-03-20T05:35:37-07:00
Authentication code: 6789

Re: blank png after converting a rotated image to vignette

Post by ravikum »

Thanks for the replies.

Code: Select all

+repage -channel rgba
did the trick for me.

Thanks
(using the latest IM version on linux centos 6)
Post Reply