If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.

#990 Incorrect colors after exporting image
Author:
Serj

Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed 

> What steps will reproduce the problem?
Open attached file and exprot image with character id 4 (en.starling.icon_cm_promo)
> What is the expected output? What do you see instead?
Expected as it shown in SWF preview
Instead of it i see black border arond image and grate quality losses.
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
I tried 6.0.1 and nightly 6.0.1 778
> Please provide any additional information below. If the problem is related to a SWF
file, attach it here, otherwise we can't help you.
I attached swf.
Tnx for grate decompiller )

OS is win 8.1 x64
In SWF preview you may copy it to clipboard. And it copies correctly but does not save
alpha chanel.
Seems like easy to fix bug. Nah ?
Not really, i tried to fix it in the past some hours :S
The problem is that the values are premultiplied with the alpha channel.
So why not to div like RGB / A ? )
And java's imageIO saves it wrong. I tried to reverse the multiplication, but the problem
is that it is not reversible, because the premultiplied values are cutted to be in 0-255
range.
Maybe a new getImage method is needed which returns the image without premultiplied
alphas, but i don't like this idea. I'll try to find a better way.
Clear :-) Is there something i could do to help you ?
I checked export to fla. Same problem there.
But in internal ffdec preview and image list everything looks good.
Strange.
Could you please try the latest nightly build? (782 or later)
Downloaded 782.
I tried to export to png and fla. results are the same :(
Are you sure? For me it seems to be ok. See the attahced image

I tried again.
Downloaded zip 782.
Extracted it in different folder.
Result is the same.
Check the pic.

Downloaded this one /www.free-decompiler.com/flash/download/ffdec_6.0.1_nightly782.zip
Please ensure that you have the following files:
ffdec.jar: 1877173 bytes
lib/ffdec_lib.jar: 2764772 bytes
I have both. sizes are the same.
please attach the exported PNG here.
Is it same as the one from honfika post?
I found it ) Cache images was on.
Now it is ok!
Everything seems to be grate.
Thank you!
Export to png works good.
But exprot to fla has a problem
the same problem :(
Where is cache folder btw?
Images are cached in memory, there is no cache folder. Now it should work with enabled
image cache, too. (Nightly 783)
Fla export is fixed too in nightly 784 (will be released automatically in a few minutes)
Oh, thank you!
I already downloaded it )
Is it ok? May I close this issue?
State: new→upgraded
Yes! All is fine!
State: upgraded→closed