Rotate same image more than once creates blank image

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
manojchaudhary
Posts: 2
Joined: 2017-08-28T02:42:17-07:00
Authentication code: 1151

Rotate same image more than once creates blank image

Post by manojchaudhary »

Hi Team,

I am rotating image using ImageMagick 7.0.4-0 Q8 x86_64 on Ubuntu 14.04.1 OS.

Please find the below command -

convert -rotate -90 a.png b.png

Once the image is converted and I am rotating it once again as

convert -rotate -90 b.png c.png

the output is a blank image.

Please find the sample image http://imgur.com/a/GIwIg
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Rotate same image more than once creates blank image

Post by fmw42 »

Your syntax is incorrect for both IM 6 and IM 7, though IM 6 is more forgiving.

In IM 7, use magick in place of convert. Also read your input image before the rotate command.

Code: Select all

magick a.png -rotate -90 b.png
magick b.png -rotate -90 c.png
If that does not work, then upgrade your version of IM 7 to its current at 7.0.6.9.

See
http://www.imagemagick.org/Usage/basics/#why
http://imagemagick.org/script/porting.php#cli
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: Rotate same image more than once creates blank image

Post by GeeMack »

fmw42 wrote: 2017-08-28T10:18:45-07:00If that does not work, then upgrade your version of IM 7 to its current at 7.0.6.9.
Update: On 2017-08-28, v7.0.6-10 has posted for download at THIS link.
Post Reply