swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Fuzzy rendering with PNG2SWF


From: Jeff Seibert
Subject: Re: [Swftools-common] Fuzzy rendering with PNG2SWF
Date: Sun, 17 May 2009 13:32:42 -0700

Kent, I can confirm this issue - it was bad enough to make me convert everything to jpgs and use jpg2swf, which does not have the problem.

If this can be fixed, that would be huge...

Jeff

On May 17, 2009, at 1:19 PM, Kent Briggs wrote:

I'm testing the Windows version of png2swf to convert 32-bit PNG avatars to SWF files for display in an OpenLaszlo application. The only version of SWFTools that will create a clear SWF is 0.6.1. All newer versions produce a fuzzy rendering in OpenLaszlo.

Using a swfdump tool, one difference I see is that all versions after 0.6.1 are applying a -10,-10 twip (half a pixel) transform to the bitmap whereas 0.6.1 does not. I think this is causing the image to be smoothed when it should not be at 100% scale.

What is the purpose of this 10 twip transform? Below are the SWF dumps for 0.6.1 and 0.9.0.

**** PNG2SWF 0.6.1 ****************************************
Header
   FWS
   version: 5
   fileLength: 4677
   Rect [xMin: 0, xMax: 960, yMin: 0, yMax: 960]frameRate: 1
   frameCount: 1
End Header
Background Color Tag: #000000FF
DefineBitsLossless id_1 w:48 h:48
DefineShape4 id_2:
   shape bounds:Rect [xMin: 0, xMax: 960, yMin: 0, yMax: 960]
   Fill Styles:
Bitmap Fill id_1 type: RepeatingBitmap [sx:20.000 r0:0.000 r1:0.000 sy:20.000 tx:0 ty:0]
   Line Styles:
   Records:
       Style Change: dx:0 dy:0 fs0:1 fs1:0 ls: 0
       Line [dx: 960, dy: 0]
       Line [dx: 0, dy: 960]
       Line [dx: -960, dy: 0]
       Line [dx: 0, dy: -960]
       End Shape

Remove Object: 50
PlaceObject2 id:2 dp:50 [sx:1.000 r0:0.000 r1:0.000 sy:1.000 tx: 0 ty:0]
Show Frame
*************************************************

*** PNG2SWF 0.9.0 ************************************
Header
   FWS
   version: 5
   fileLength: 4673
   Rect [xMin: 0, xMax: 960, yMin: 0, yMax: 960]frameRate: 1
   frameCount: 1
End Header
Background Color Tag: #000000FF
DefineBitsLossless id_1 w:48 h:48
DefineShape4 id_2:
   shape bounds:Rect [xMin: 0, xMax: 960, yMin: 0, yMax: 960]
   Fill Styles:
Bitmap Fill id_1 type: ClippedBitmap [sx:20.000 r0:0.000 r1:0.000 sy:20.000 tx:-10 ty:-10]
   Line Styles:
   Records:
       Style Change: dx:0 dy:0 fs0:1 fs1:0 ls: 0
       Line [dx: 960, dy: 0]
       Line [dx: 0, dy: 960]
       Line [dx: -960, dy: 0]
       Line [dx: 0, dy: -960]
       End Shape

Remove Object: 50
PlaceObject2 id:2 dp:50
Show Frame
*************************************************

--
Kent Briggs, address@hidden
Briggs Softworks, http://www.briggsoft.com







reply via email to

[Prev in Thread] Current Thread [Next in Thread]