Search found 13 matches

by paphus
2015-09-06T11:46:11-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

windows, here is my final script,

for /f %x in ('dir /s /b talk*.png') do @convert -alpha extract %x %x-mask.png
mogrify -flatten talk*.png
for /f %x in ('dir /s /b talk*.png') do @composite -compose CopyOpacity %x-mask.png %x %x

works, end result here,
http://www.botlibre.com/avatar?id=1115544
by paphus
2015-08-25T13:08:30-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

Doh, okay I figured it out. My images were good, but I somehow have two different versions of ffmpeg on my computer and was using the wrong one that doesn't seem to support transparency. Now it is working. My only issue is the last shell line, for /f %x in ('dir /s /b blink*.png') do @composite -com...
by paphus
2015-08-25T12:39:36-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

If I use "identify -verbose" and compare the original image, with the converted one, the alpha difference is, original (that gives transparent webm) - Alpha: none #00000000 converted (that is white background) - Alpha: srgba(255,255,255,0) #FFFFFF00 So, how do I make the Alpha - none #0000...
by paphus
2015-08-25T09:43:07-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

Not sure how it worked the first time. But I was trying a lot of things, maybe somehow used another step the first time to get a good video. Please help.
by paphus
2015-08-25T09:41:32-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

Ok what I came up with was using a shell for command, for /f %x in ('dir /s /b blink*.png') do @composite -compose CopyOpacity mask-0.png %x %x But for some reason when I convert from the png series to a webm video using ffmpeg now it does not include the alpha channel. It does from the original fil...
by paphus
2015-08-24T06:12:03-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

Does anyone know how to batch convert 60 files with the above three steps? (extract mask, flatten, compose mask with flattened image)
Just the last step I can't figure out.
by paphus
2015-08-21T12:13:29-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

Great, I got it to work, but still need to be able to do it simpler, convert -alpha extract *.png mask.png mogrify -flatten blink*.png composite -compose CopyOpacity mask-0.png blink00.png good.png Mask the final video good, http://www.botlibre.com/media/a1159578.webm but there are 60 files, blink00...
by paphus
2015-08-21T11:07:53-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

Thanks but it makes it worse, it looses part of the edges. http://www.botlibre.com/media/a1156752.webm http://www.botlibre.com/media/a1156753.png I tried 1% as well, then it looses some image, and gets a halo... The flatten image and video looks good, it just is missing the alpha. Is there any way t...
by paphus
2015-08-20T12:34:24-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

Here is one with the right extension,

http://www.botlibre.com/media/a1153704.png
by paphus
2015-08-20T12:33:16-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

Oops, actually the file is a png, the file extension is wrong. You can save it using .png it does have the alpha transparency.
by paphus
2015-08-20T10:59:33-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

The source images are a png image series, all like, http://www.botlibre.com/avatars/a1153644.jpg The issue is the background color used to render the image was black but with a transparent alpha. Flatten overlays a white background with the png image with transparency, so the black becomes white, wh...
by paphus
2015-08-20T08:57:54-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

Re: png transparent background is black

Thanks, that works, but I get a weird halo around the image. My guess is there are semi transparent pixls. With, > mogrify -background white *.png > mogrify -alpha Background *.png I get this webm, which looks good in Chrome, but has a halo in Firefox http://www.botlibre.com/media/a1153572.webm same...
by paphus
2015-08-19T07:24:14-07:00
Forum: Users
Topic: png transparent background is black
Replies: 19
Views: 26151

png transparent background is black

I'm trying to convert a png image series with a transparent background to an mpeg and webm video. The transparent background shows as black in the video but I want it to be white. I know I can convert the background to white using, mogrify -flatten *.png But I want to preserve the transparency for v...