swftools-common
[Top][All Lists]
Advanced

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

[Swftools-common] Sizing problems with borders in swfbbox, a patch to se


From: edA-qa mort-ora-y
Subject: [Swftools-common] Sizing problems with borders in swfbbox, a patch to set a strict size
Date: Sat, 05 Jul 2008 22:49:22 +0200
User-agent: Mozilla-Thunderbird 2.0.0.6 (X11/20071113)

I, like many people, am having problems with bounding boxes: there just
seems to be an empty padded area around my actual image.

I used swfmill to look at the structure of the file, and the program I
use to export them (Corel) simply decides the bounding box of each item
is simply larger than it is. swfbbox seems to use these bounding boxes,
not the actual vector extents as some posts indicate, to calculate the
real movie size.

Therefore running with -c won't actually remove these borders.

Curiously though, since I know the borders are on all sides, if I were
to simply remove this border size from the bounding boxes, I would have
the true size.

This is where my patch to swfbbox comes in. I introduced a "-z" option
which allows specifically setting an overall bounding box, all other
bounding boxes are clipped to this size. Thus I was finally able to get
rid of that damn padding!

Example:

> swfbbox -B  help_3.swf
Real Movie Size: 491.70 x 491.80 :-11.95 :-12.00
Original Movie Size: 667.85 x 467.80 :0.00 :0.00

> (Calc 491.70-2*11.95=467.8, 491.80-2*12=467.8 )
> swfbbox -z 467.8,467.8,0,0 help_3.swf -o help_3_out.swf

Now I would actually love if swfbbox could do that quick calculation for
me (though I suspect it is rather Corel specific).  Nonetheless, would
my patch for the explicit size be useful? (I suspect however, it'd be
far quicker for the author to add these few lines on his own rather than
use my actual patch ;)

-- 
edA-qa mort-ora-y
http://disemia.com/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Have a look in my brain:
        http://brainbrain.eu/
        
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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