Opened 17 years ago

Closed 13 years ago

#2117 closed defect (fixed)

msSaveImageBufferGD should use the agg palette

Reported by: assefa Owned by: sdlime
Priority: normal Milestone:
Component: MapServer C Library Version:
Severity: normal Keywords:
Cc:

Description

msSaveImageBufferGD shoud also be upgarded to use the palettes. This function is called by php mapscript function when using something like $image->saveimage("") (this function Writes image object to specifed filename. If filename is empty then write to stdout).

The intention for now is to simply add the pallette logic in this function. Maybe some kind of common function would be needed specially if we add the palette support on other formats beside png.

Change History (3)

comment:1 by assefa, 17 years ago

commited fix for png output. Test with php mapscript (r6180)

comment:2 by sdlime, 17 years ago

Component: AGGMapServer C Library

Changing the component to the general C library since this is not AGG specific. The intention was to be able to support GIF and even JPEG as well. Should be doable since this is really format independent, rather a 24-bit to 8-bit conversion. I wonder, what, if anything would blow up with a 24-bit GIF definition?

Steve

comment:3 by tbonfort, 13 years ago

Resolution: fixed
Status: newclosed

all image saving code goes through a generic function now

Note: See TracTickets for help on using tickets.