|
Posted by Andy Hassall on 08/06/05 13:51
On 5 Aug 2005 18:25:07 -0700, "AaronV" <aaron.vanderpoel@gmail.com> wrote:
>Hello, I'm having a probelm output wbmp images. Something seems to keep
>going wrong with the encoding, because I start with a good jpeg and get
>a nonworking wbmp on the other end.
>
>here is my code:
>
>$image_p = imagecreatetruecolor($new_width, $new_height);
>$image = imagecreatefromjpeg($filename);
>imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width,
>$new_height, $width, $height);
>
>// Output new image
>imagewbmp($image_p, "..path..");
>
>
>Replacing the imagewbmp with imagejpeg will output a valid jpeg file,
>or I can output a valid PNG as well. But outputing a wbmp never works,
>I get a busted image. Anyone know what's going on here? Am I missing
>some color conversion step?
OK, in what way is it busted?
Zero length file? Or actually producing a corrupted file in some way?
Anything obvious in the file itself like error messages? (Presumably not since
it's using the path argument in the GD call, but worth a quick look).
--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Navigation:
[Reply to this message]
|