Re: convert png with transparency to jpg

夏凯 <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
thanks for your explanations.
i have mentioned that before:
On Mon, Jan 25, 2010 at 10:15, Pete Whatever <[email protected]> wrote:
>> Try this:
>>
>> convert w.png -background white -flatten w1.jpg
>>
>> Best Wishes
>> Pete

On Mon, Jan 25, 2010 at 14:10, Fred Weinhaus <[email protected]> wrote:
>>i have tried -fill white and -backgroud white too, but i don't know
>>why -opaque or -flatten is needed.
>
>
> convert image.png -fill white -opaque none image.jpg
>
>
> this replaces transparency (-opaque none) with white. The -opaque
> none specifies that there are pixels with transparency (no opacity)
> to be replaced and the -fill white is the replacement color
>
>
>
> convert image.png -background white -flatten image.jpg
>
>
> this simply applies a white background over which the image is
> composited (-flatten) so that looking through the transparent areas
> one see white and then turns off the transparency. Thus where ever
> there was transparent white shows in its place.
>
>
> Fred
> _______________________________________________
> Magick-users mailing list
> [email protected]
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>



-- 
contact me:
MSN: [email protected],[email protected]
GTALK: [email protected]
QQ:25329680
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.