Forum Moderators: open

Message Too Old, No Replies

Getting a decent looking Gif

ImageFormat.Gif produces garbage

         

garann

10:59 pm on May 14, 2003 (gmt 0)

10+ Year Member



Hi,

Does anyone know a way to get a decent looking Gif from an Image object? I have no trouble displaying nice looking Jpgs, Bmps, Pngs, and Tifs, but all the Gifs I produce are horribly grainy. I can go the opposite direction, Gif to any other format, with no problems. What kind of code do I need to make the outputted Gifs look good?

I did try calling the clone(Rectangle, PixelFormat) method, using a PixelFormat of 8 bits-per-pixel Indexed, but that blew up, apparently because the Rectangle was too big. Should I keep trying that route, or will something else produce a nicer result?

Thanks!
g.

RainMaker

3:17 pm on May 16, 2003 (gmt 0)

10+ Year Member



.NET image object?

garann

4:13 pm on May 16, 2003 (gmt 0)

10+ Year Member



Yes, I'm using ASP.NET - sorry.

Maybe a better question would be whether anyone knows of a DLL - freeware or for purchase - that builds a palette for a Gif from the palette of the original image. Trying to duplicate the results I'm getting in Photoshop, it appears the problem is mostly that .NET automatically uses the Windows palette (CMIIW?). Can anyone recommend software that builds the equivalent of a Photoshop perceptual or selective palette?

Thanks,
g.

Xoc

6:06 am on May 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



*bump*