Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-26-2006, 06:01 PM   #1
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
imagemagick and rotate image question

lo there,

i am using imagemagick to rotate an image i have of a circle. i need 360 images. Yep, one for each degree of circle travel. the image is a gif with a transparent background.
when i do this

convert -rotate 1 circle.gif circle1.gif
it rotates the image and saves it for me, but now its in a black background box.

i guess the images are always square, but is there a way to have image magick replace the black background with transparency again?

Old 08-26-2006, 10:25 PM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
According to 'convert -help' (as pointed to by 'man convert), the option you are looking for is:

-transparent color make this color transparent within the image

You might also be interested in:

-background color background color
Old 08-26-2006, 10:54 PM   #3
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
worked like a charm.
thanks a lot.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
getting image size (imagemagick) btb Linux - General 6 10-15-2013 02:39 PM
how to rotate an image (clockwise for example)? xpucto Linux - Newbie 21 03-08-2006 12:22 PM
Resize Image using ImageMagick mddolloff Linux - Software 1 11-20-2004 05:07 PM
Centering text on an image using ImageMagick barisdemiray Linux - Software 2 09-20-2004 11:07 AM
GIMP - Rotate image arbitrarily Micro420 Linux - Software 2 11-03-2003 02:52 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration