G'day,
I have a folder of ~100 animated .gif images with various transparency colours that I wish to enlarge into 40x40 images with the existing image centred.
Using "convert <image> -gravity center -extend 40x40 <newImage>" works but imposes a white background.
"convert <image> -gravity center -extend 40x40 -background none <newImage>" and
"convert <image> -gravity center -extend 40x40 -background transparent <newImage>" also imposes the background.
How do I do the extension without creating a white background?
Cheers,
STT
Extending Whilst Preserving Gif Transperancy
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Extending Whilst Preserving Gif Transperancy
Perhaps "-resize" will do what you want.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Extending Whilst Preserving Gif Transperancy
put the -background color BEFORE the -extent
Re: Extending Whilst Preserving Gif Transperancy
Nah, that would have distorted the images. :Psnibgo wrote:Perhaps "-resize" will do what you want.
Cheers, that did exactly what I wanted.fmw42 wrote:put the -background color BEFORE the -extent