in reply to Re: Image to SWF
in thread Image to SWF
Using your code I get an error now. The error is "Can't place the imported bitmap because it's size is unknown at swf.pl".
UPDATE Now I get an error that says it cannot get the height and width of the bitmap. I think it couldn't get the file before because I typed in the wrong file path. But now it can't get the dimensions. Is there a way for me to hack around it with image::info h&w params?
Any idea what this error means? I tried tossing it at google but nothing is coming back.#!/usr/bin/perl -w use strict; use CGI::Carp qw(fatalsToBrowser); use lib "/home/everyday/public_html/lib"; use SWF::Builder; my $movie = SWF::Builder->new ( FrameRate => 15, FrameSize => [0, 0, 400, 400], BackgroundColor => 'ffffff' ); my $jpeg = $movie->new_jpeg('spyder_avie.jpg'); $jpeg->place; $movie->save('winter.swf');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Image to SWF
by moklevat (Priest) on Feb 23, 2006 at 05:53 UTC | |
by sulfericacid (Deacon) on Feb 23, 2006 at 05:56 UTC |