You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Eugene Walden (JIRA)" <ji...@apache.org> on 2013/03/20 02:29:15 UTC

[jira] [Created] (FLEX-33437) Embed image with compression=true causes artifacts around transparent edges (like a halo)

Eugene Walden created FLEX-33437:
------------------------------------

             Summary: Embed image with compression=true causes artifacts around transparent edges (like a halo)
                 Key: FLEX-33437
                 URL: https://issues.apache.org/jira/browse/FLEX-33437
             Project: Apache Flex
          Issue Type: Bug
          Components: Embedded Asset Transcoding
    Affects Versions: Adobe Flex SDK 4.6 (Release)
         Environment: MacOS, Flash Builder 4.6
            Reporter: Eugene Walden


In Flex, if you embed a PNG image, you use the following tag:

[Embed(source="compressionbug.png")]

Unfortunately, the image is compiled into a raw bitmap, which is much larger than the source PNG. In order to solve this, you typically add the compression parameter: 

[Embed(source="compressionbug.png", compression="true")]

This solves the filesize issue, but there's a bug that occurs with some images with transparency. 

This image, for example:

http://content.madefire.com/jira/CompressionBug/originalimage.html

will cause the problem to occur if compression is true. 

Here is the Flex page that exhibits the halo around the image edges:

http://content.madefire.com/jira/CompressionBug/CompressionBug.html

The Flex project source is here:

https://s3.amazonaws.com/content.madefire.com/jira/CompressionBug.zip



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira