JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issuesList of issues

#2721 [Bug] Import PNG adds extra 1px trailing to DefineShape
Author:
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: new Help

FFDec version: nightly build 3516 (v26.0.0) OS: Windows 11 Java version: (Check in FFDec → Help → About) Bug description: I am importing clean, pixel-perfect PNG images into DefineShape tags using the "Replace" feature. The original images have no extra pixels or artifacts. However, after being imported and referenced by DefineShape, the resulting shape always generates an unwanted 1-pixel trailing/extension on the right edge, causing visual glitches (like a thin line on progress bars). Steps to reproduce: 1. Open FFDec nightly build 3516 2. Open any SWF file with a DefineShape tag 3. Use "Replace" to import a clean, integer-sized PNG (e.g. 280x16 px, no extra pixels) 4. Check the preview and shapeBounds: the right edge is always extended by 1px automatically, even though the source image is perfect. Expected behavior: The DefineShape should exactly match the dimensions of the imported PNG, with no extra pixels added. Actual behavior: The DefineShape automatically adds an extra 1-pixel artifact to the right edge of every imported image, regardless of the source PNG's quality or dimensions. Attachments: (My screenshots are attached below)
Download1.png (218 KiB)Download3.png (242 KiB)
Download2.png (217 KiB)Download4.png (236 KiB)