note 92826 modified in ming.swfbitmap by danbrown

From: Date: Wed, 16 Sep 2009 16:35:25 +0000
Subject: note 92826 modified in ming.swfbitmap by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160729@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

« previous php.notes (#160729) next »