JPEXS Free Flash Decompiler Issue Tracker

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.

List of issuesList of issues

#1378 How to export pdf/gif/etc. with a transparent background?
Date created:
Type: question
Visibility: Everybody
Assigned to:
State: closed Help

Hello, I recently downloaded this program, and it all works great, except for this one thing that I cant figure out. In the editor, the images all have a perfect transparent background, however, when I export anything, the images get a gray background to them. All png, gif, and everything else, look transparent in the editor, but when I export they get a gray background, no matter what I have tried. Can anyone help me with this? Thanks! :D
user
This is when trying to export the "DefineSprite" files.
developer
As a workaround you can export it as png and convert with a 3rd party tool.
user
When exporting as a PNG, they still do not have the transparent background. However, I noticed that when I export from the "Image" files, they have the correct transparent background. Is there just something wrong with the DefineSprite files?
developer
When you export the image there is no GIF or PDF option, only: - PNG/GIF/JPEG, which means the original format as it is in the SWF file - PNG, which supports transparency, and it should work - JPEG - BMP
user
I am having exactly the same problem. How can I export sprites to png with transparent background?
user
I found a way to export them, but it's a bit tedious compared to the usual method. if you open the DefineSprite file you want to export in JPEXS(it should say "SWF Preview Mode" at the top), there's a button in the bottom right with a camera on it. use that to take a snapshot of the Sprite, this saves it to your clipboard. Then open a photo editor such as GIMP or Photoshop and paste the image into it, you can save the image from there.
DownloadCapture.PNG (59 KiB)
user
Got the same problem when trying to export a DefineSprite to PNG. I tried the Gmjjr tips but it do not work (my photoshop past it with black Background) I decompile game file, so can't just take the image they are to different. Someone have an issue ?
user
I got the same issue, so I fixed it in the source code Here's the PR: https://github.com/jindrapetrik/jpexs-decompiler/pull/76
admin
I accepted the PR with few changes. Now PNG/GIF exported sprites should be transparent. See nightly 1721.
State: new→upgraded
admin
State: upgraded→closed