Reply to Re: WBMP output doesn't work

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация