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,
[EMAIL PROTECTED]

17.dec.2003.
Belgrade,

Reply via email to