note 92826 modified in ming.swfbitmap by danbrown
| From: | danbrown@php.net | Date: | Tue, 11 Aug 2009 15:23:22 +0000 |
| Subject: | note 92826 modified in ming.swfbitmap by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159333@lists.php.net to get a copy of this message | ||
I found a workaround for the load jpg problem for SWFBitmap.
Error message:
(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:
<?php
$f = $s->addFill(new SWFBitmap( file_get_contents("image.jpg")));
?>
But this will works fine:
<?php
$f = $s->addFill(new SWFBitmap((fopen('image.jpg','rb')));
?>
--was--
I found a workaround for the load jpg problem for SWFBitmap.
Error message:
(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:
<?php
$f = $s->addFill(new SWFBitmap( file_get_contents("image.jpg")));
?>
But this will works fine:
<?php
$f = $s->addFill(new SWFBitmap((fopen('image.jpg','rb')));
?>
http://php.net/manual/en/ming.swfbitmap.php