note 73201 deleted from ming.swfbitmap by bjori
| From: | bjori@php.net | Date: | Tue, 13 Feb 2007 10:27:41 +0000 |
| Subject: | note 73201 deleted from ming.swfbitmap by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123311@lists.php.net to get a copy of this message | ||
Note Submitter: php at webpicasso dot de
----
I found a workaround for the load jpg problem for SWFBitmap.
Errormessage:
(Catchable fatal error: SWFMovie::save() [function.SWFMovie-save]: Initial Jpeg marker not found! in
/loalhost/test/swfjpg/swfjpg.php on line 23
)
This doesnt work:
$f = $s->addFill(new SWFBitmap( file_get_contents("image.jpg")));
But if you set imagedata to a variable first, it will works fine:
$img = file_get_contents("image.jpg");
$f = $s->addFill(new SWFBitmap( $img ));
Greets
Christian
http://www.webpicasso.de