note 73201 added to ming.swfbitmap

From: Date: Tue, 13 Feb 2007 09:20:53 +0000
Subject: note 73201 added to ming.swfbitmap
Groups: php.notes 
Request: Send a blank email to php-notes+get-123305@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 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 ---- Server IP: 217.13.201.10 Probable Submitter: 194.97.157.130 (proxied: unknown) ---- Manual Page -- http://www.php.net/manual/en/ming.swfbitmap.php Edit -- https://master.php.net/note/edit/73201 Del: integrated -- https://master.php.net/note/delete/73201/integrated Del: useless -- https://master.php.net/note/delete/73201/useless Del: bad code -- https://master.php.net/note/delete/73201/bad+code Del: spam -- https://master.php.net/note/delete/73201/spam Del: non-english -- https://master.php.net/note/delete/73201/non-english Del: in docs -- https://master.php.net/note/delete/73201/in+docs Del: other reasons-- https://master.php.net/note/delete/73201 Reject -- https://master.php.net/note/reject/73201 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123305) next »