Help need with image2wbmp() arguments

From: Date: Mon, 17 Dec 2001 21:08:33 +0000
Subject: Help need with image2wbmp() arguments
Groups: php.general 
Request: Send a blank email to php-general+get-172906@lists.php.net to get a copy of this message
There is a problem with PHP 4.3.4 under Windows by image2wbmp() example from PHP Manual. Example 1. image2wbmp() example ------------------------------------------------------------------------------------------- <?php $file = 'php.jpg'; header('Content-type: ' . image_type_to_mime(IMAGETYPE_WBMP)); image2wbmp($file); // output the stream directly ?> ------------------------------------------------------------------------------------------- First of all, the header must be: header ("Content-type: ".image_type_to_mime_type (IMAGETYPE_WBMP)); The second, I do not understand why this don't work: <?php $file = 'php.jpg'; header ("Content-type: ".image_type_to_mime_type (IMAGETYPE_WBMP)); image2wbmp($file); ?> by reporting: "image2wbmp(): supplied argument is not a valid Image resource"!? This is working correctly but there is not the same result as in example above: <?php $file = 'php.jpg'; jpeg2wbmp($file,"php.wbmp",64,120,4); ?> Is it bug in image2wbmp() or something with my php setings is wrong? Ivan Dermanov, dermanoff@beotel.yu 17.dec.2003. Belgrade,

« previous php.general (#172906) next »