note 73202 deleted from function.swfbitmap.construct by nlopess

From: Date: Tue, 13 Feb 2007 22:55:27 +0000
Subject: note 73202 deleted from function.swfbitmap.construct by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123340@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

« previous php.notes (#123340) next »