note 92827 added to ming.swfbitmap
| From: | david dot jiang at muchdj dot com | Date: | Tue, 11 Aug 2009 02:31:06 +0000 |
| Subject: | note 92827 added to ming.swfbitmap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159305@lists.php.net to get a copy of this message | ||
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 this will works fine:
$f = $s->addFill(new SWFBitmap((fopen('image.jpg','rb')));
----
Server IP: 134.129.167.88
Probable Submitter: 218.104.194.73
----
Manual Page -- http://www.php.net/manual/en/ming.swfbitmap.php
Edit -- https://master.php.net/note/edit/92827
Del: integrated -- https://master.php.net/note/delete/92827/integrated
Del: useless -- https://master.php.net/note/delete/92827/useless
Del: bad code -- https://master.php.net/note/delete/92827/bad+code
Del: spam -- https://master.php.net/note/delete/92827/spam
Del: non-english -- https://master.php.net/note/delete/92827/non-english
Del: in docs -- https://master.php.net/note/delete/92827/in+docs
Del: other reasons-- https://master.php.net/note/delete/92827
Reject -- https://master.php.net/note/reject/92827
Search -- https://master.php.net/manage/user-notes.php