swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] Problems with PNG placement


From: Chris Pugh
Subject: Re: [Swftools-common] Problems with PNG placement
Date: Wed, 3 Mar 2010 21:03:44 +0000

Mick,

Compile this,

   .flash filename="test_swfc.swf" version=6 fps=50 bbox=435x122
   #  .png img1 filename="test.png"
   #  .put img1
   .end

with swfc, then view the result. What you see should explain what is happening.

HTH.

Regards,


Chris.


On 3 March 2010 09:48, Mick <address@hidden> wrote:
> Greetings all,
>
> I have just started using swftools 0.9.0 and am having some trouble with
> placing PNG images on the stage. I compiled the following script with swfc:
>
> .flash filename="test_swfc.swf" version=6 fps=50 bbox=435x122
>   .png img1 filename="test.png"
>   .put img1
> .end
>
> When I view the generated file in a browser it seems that the first row and
> first column of pixels are duplicated and the last row and last column are
> missing. Please see the attached files to better understand what I mean by
> this. Load test.htm into a browser and look carefully at the two graphics.
> The top one has been generated with swfc.
>
> Out of curiosity I converted test.png to swf using png2swf. This works
> perfectly and the image renders correctly within the swf. This is displayed
> as the bottom graphic in test.htm.
>
> I also decided to extract the png from test_swfc.swf using swfextract to see
> if it had been corrupted. The extracted image was identical to the original
> confirming this was not the case.
>
> I was hoping someone may be able to shed some light on what may be going
> wrong.
>
> Attached files
> test.png - original  image file
> test.htm - markup placing test_swf.swf at top of screen and test_png2swf.swf
> below it
> test_swfc.swf - swf created with swfc
> test_png2swf.swf - swf created with png2swf
>
> Many thanks,
> Mick
>
>
>
>
>
>




reply via email to

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