Re: Help need!

From: Date: Wed, 17 Dec 2003 17:44:29 +0000
Subject: Re: Help need!
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-22598@lists.php.net to get a copy of this message
Hi Ivan! Please ask PHP related questions at php-general@lists.php.net. The webmaster email address is for questions and suggestions related to the PHP.net site and subsites. Happy holidays! Gabor Hojtsy Ivan Dermanov wrote:
There is a problem by the example above in PHP4 under Windows. First of all, the header has to be: header ("Content-type: ".image_type_to_mime_type (IMAGETYPE_WBMP)); The second, I do not understand why this don't work: <?php $file = 'tasa.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: <?php $file = 'tasa.jpg'; jpeg2wbmp($file,"tasa.wbmp",199,180,4); ?> NOTE: int threshold is value from 0 to 8. If you want to get a wbmp picture with details, than you need to discover int threshold value by trying. Ivan Dermanov, dermanoff@beotel.yu 17.dec.2003. Belgrade,


« previous php.mirrors (#22598) next »