Batch Rotate *ONE* Graphic 44 times and Preserve the Image's Transparency?

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
User avatar
XnTriq
Posts: 30
Joined: 2014-08-04T13:31:03-07:00
Authentication code: 6789

Batch Rotate *ONE* Graphic 44 times and Preserve the Image's Transparency?

Post by XnTriq »

I have one PNG graphic that I want to generate 44 additional versions of.

The conversion is a CW ROTATION increasing every up until I reach 90°. Each rotation should be sequentially named and the background must preserve it's transparency. This represents my first (serious) experience with ImageMagick, so I appreciate any resources you might recommend for a beginner such as myself, Thanks everyone.
(2[Bb]|[^2].|.[^Bb])
That is the question.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Batch Rotate *ONE* Graphic 44 times and Preserve the Image's Transparency?

Post by snibgo »

Please always give your IM version number and platform. It saves time when you later say "I haven't got convert" or whatever.

Code: Select all

convert rose: -duplicate 44 -distort SRT "1,%[fx:t*2]" x.gif
Instead of "rose:", use whatever image you want.

This creates 45 frames in a single GIF. Or you could write to "x_%03d.png" for 45 PNG files.

Useful resources for beginners (and the rest of us) include:
http://www.imagemagick.org/Usage/
http://www.imagemagick.org/Usage/basics/
http://www.imagemagick.org/script/comma ... ptions.php
http://www.imagemagick.org/script/comma ... essing.php
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Batch Rotate *ONE* Graphic 44 times and Preserve the Image's Transparency?

Post by fmw42 »

One more reference:
http://www.imagemagick.org/Usage/reference.html

Also if using IM 7 rather than IM 6, see
http://imagemagick.org/script/porting.php
User avatar
XnTriq
Posts: 30
Joined: 2014-08-04T13:31:03-07:00
Authentication code: 6789

Re: Batch Rotate *ONE* Graphic 44 times and Preserve the Image's Transparency?

Post by XnTriq »

FMW42 and snibgo . . . Thank you and I can't wait to try these solutions out!

However . . .
I can't read my thread (or anyone else's) until I figure out how to display it in (traditional forum layout) Ascending. It's so stupid but I literally cannot read threads Descending. I thought I set the preference in my Control Panel but it has no effect. I just now set the preference for my thread here (from the icon at the bottom) and it changes my thread temporarily so I can at least read it without getting a headache, but how do I set the preference permanently? There are other threads I'd like to read, as well. I don't doubt this style is more efficient but you jet setters are too advanced for me!! :lol: Seriously. Help?
(2[Bb]|[^2].|.[^Bb])
That is the question.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Batch Rotate *ONE* Graphic 44 times and Preserve the Image's Transparency?

Post by fmw42 »

You may need to wait for the site admin to help you tomorrow. I do not think either I or snibgo have permissions to edit your account.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Batch Rotate *ONE* Graphic 44 times and Preserve the Image's Transparency?

Post by snibgo »

No, I can't change user preferences.

For me, threads display in "Ascending" order. The latest post is at the bottom.

In my User Control Panel, Board Preferences, Edit display options, setting "Display topic order direction" is set to "Descending" (so most-recent topic is at the top) but "Display post order direction" is set to "Ascending" (so most-recent post is at the bottom).

Are your settings the same?
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Batch Rotate *ONE* Graphic 44 times and Preserve the Image's Transparency?

Post by fmw42 »

For me Topics are Descending and Posts are Ascending. However as snibgo says, they are reversed. So perhaps the meaning of Ascending and Descending is either reversed or mean just the opposite of what we think they should.

For me Topics are listed latest at the top and Posts are latest at the bottom.
User avatar
XnTriq
Posts: 30
Joined: 2014-08-04T13:31:03-07:00
Authentication code: 6789

Re: Batch Rotate *ONE* Graphic 44 times and Preserve the Image's Transparency?

Post by XnTriq »

fmw42 wrote: 2017-02-13T21:28:54-07:00 For me Topics are Descending and Posts are Ascending. However as snibgo says, they are reversed. So perhaps the meaning of Ascending and Descending is either reversed or mean just the opposite of what we think they should.

For me Topics are listed latest at the top and Posts are latest at the bottom.
You've seamlessly anticipated my question! Please look at the settings in my Rant thread and see how they compare with yours? I just want to make sure we match. Thanks!
(2[Bb]|[^2].|.[^Bb])
That is the question.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Batch Rotate *ONE* Graphic 44 times and Preserve the Image's Transparency?

Post by fmw42 »

We match. See my answer in your other post.
User avatar
XnTriq
Posts: 30
Joined: 2014-08-04T13:31:03-07:00
Authentication code: 6789

Re: Batch Rotate *ONE* Graphic 44 times and Preserve the Image's Transparency?

Post by XnTriq »

Thanks guys.
(2[Bb]|[^2].|.[^Bb])
That is the question.
Post Reply