Re: makeswf generates a swf with wrong dimensions

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

 



The movie at the url you report is sized 6000x4000 (twips)
which is 300x200 pixels. So it's the actual bitmap fill being
sized wrong.

Please try the attached patch and let us know if it fixes it.

--strk;

On Mon, Jan 14, 2008 at 07:18:55PM -0800, Archon810 wrote:
> Hello,
> 
> I'm trying to make a swf out of several jpegs sized 100x75 and am using this
> command:
> makeswf 0000001*.jpg -s100x75 -v9 -r15
> 
> Output file name: out.swf
> Output compression level: 9
> Output SWF version: 9
> Adding bitmap 00000010.jpg to frame 0... done.
> Adding bitmap 00000011.jpg to frame 1... done.
> Adding bitmap 00000012.jpg to frame 2... done.
> Adding bitmap 00000013.jpg to frame 3... done.
> Adding bitmap 00000014.jpg to frame 4... done.
> Adding bitmap 00000015.jpg to frame 5... done.
> Adding bitmap 00000016.jpg to frame 6... done.
> Adding bitmap 00000017.jpg to frame 7... done.
> Adding bitmap 00000018.jpg to frame 8... done.
> Adding bitmap 00000019.jpg to frame 9... done.
> Saving output to out.swf... done.
> 
> But the SWF that comes out is sized vertically, no matter what. It just reverses
> the X and Y and makes it 75x100. If I do 300x200, the result is the same but
> bigger. Here's a sample SWF it produced: http://beerpla.net/for_www/out.swf.
> 
> If I try to reverse the height and width in the -s command, the output is the
> same (vertical swf).
> 
> I'm using the latest 0.4.0 beta5.
> 
> Thank you!
>  
> Sincerely,
> Artem Russakovskii
> 
> 
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Ming-users mailing list
> Ming-users@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/ming-users

-- 

 ()   ASCII Ribbon Campaign
 /\   Keep it simple! 

Index: util/makeswf.c
===================================================================
RCS file: /cvsroot/ming/ming/util/makeswf.c,v
retrieving revision 1.44
diff -U2 -r1.44 makeswf.c
--- util/makeswf.c	30 Oct 2007 12:17:08 -0000	1.44
+++ util/makeswf.c	15 Jan 2008 07:31:53 -0000
@@ -649,7 +649,7 @@
 	fill = SWFShape_addBitmapFill(shape, bm, SWFFILL_CLIPPED_BITMAP);
 	SWFShape_setRightFill(shape, fill);
-	SWFShape_drawLineTo(shape, 0, width);
-	SWFShape_drawLineTo(shape, height, width);
-	SWFShape_drawLineTo(shape, height, 0);
+	SWFShape_drawLineTo(shape, width, height);
+	SWFShape_drawLineTo(shape, width, height);
+	SWFShape_drawLineTo(shape, 0, height);
 	SWFShape_drawLineTo(shape, 0, 0);
 
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Ming-users mailing list
Ming-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ming-users

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux