Transparent color: black
Transparent color: black
Hi
The "identify -verbose" command is telling me that the transparent colour is black.
How do I specify the transparent colour to be white when using the convert command?
Thanks
The "identify -verbose" command is telling me that the transparent colour is black.
How do I specify the transparent colour to be white when using the convert command?
Thanks
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Transparent color: black
Is this for 256-pallette Gif?
The "-transparent-color" option is probably what you need.
The "-transparent-color" option is probably what you need.
snibgo's IM pages: im.snibgo.com
Re: Transparent color: black
Thanks for the reply.
I'm doing:
But I keep getting back the help message.
Can you help?
I'm doing:
Code: Select all
convert -transparent-color #FFFFFFFF original_newsletter.4b7d31b7d810c.png original_newsletter.4b7d31b7d810c.jpg
Can you help?
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
Re: Transparent color: black
Sure, no problem.
http://public.me.com/craigfairhurst saved with name "newsletter.png"
http://public.me.com/craigfairhurst saved with name "newsletter.png"
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Transparent color: black
"identify verbose" tells me the image has a conventional alpha channel. If you effectively want to place this image in front of a white background, so the white shows through the transparent areas, try:
convert newsletter.png -background white -flatten newsWhite.png
[Edited: added "-" in front of "flatten"]
convert newsletter.png -background white -flatten newsWhite.png
[Edited: added "-" in front of "flatten"]
snibgo's IM pages: im.snibgo.com
Re: Transparent color: black
Thanks. Why the -flatten option?
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Transparent color: black
"Flatten" is what does the work. The "-background" just declares the colour that will be used by any operation that needs a background.
snibgo's IM pages: im.snibgo.com
Re: Transparent color: black
What about PDF / EPS files, text will still be editable and the document will contain layers?
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Transparent color: black
Editable only as pixels. ImageMagick is a raster processor -- it deals with pixels.
snibgo's IM pages: im.snibgo.com
Re: Transparent color: black
I was having this issue with 6.6.5-10. I downgraded to version 6.6.4-10 (I believe with the same configuration options), and the problem went away.
This was after a similar issue with 6.6.6-8, where black values would turn transparent with png output.
Hope that helps someone. Cheers.
This was after a similar issue with 6.6.6-8, where black values would turn transparent with png output.
Hope that helps someone. Cheers.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Transparent color: black
synexis wrote:I was having this issue with 6.6.5-10. I downgraded to version 6.6.4-10 (I believe with the same configuration options), and the problem went away.
This was after a similar issue with 6.6.6-8, where black values would turn transparent with png output.
Hope that helps someone. Cheers.
This has already been reported and is being worked on. See bugs at viewtopic.php?f=3&t=17748
Re: Transparent color: black
Thanks
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1