Page 1 of 1

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

Posted: 2017-02-11T16:00:41-07:00
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.

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

Posted: 2017-02-11T16:14:40-07:00
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

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

Posted: 2017-02-11T16:28:10-07:00
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

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

Posted: 2017-02-13T21:04:05-07:00
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?

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

Posted: 2017-02-13T21:15:08-07:00
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.

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

Posted: 2017-02-13T21:21:45-07:00
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?

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

Posted: 2017-02-13T21:28:54-07:00
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.

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

Posted: 2017-02-14T18:02:46-07:00
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!

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

Posted: 2017-02-14T18:36:14-07:00
by fmw42
We match. See my answer in your other post.

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

Posted: 2017-02-14T18:43:21-07:00
by XnTriq
Thanks guys.