[mapguide-trac] #743: AGG Renderer does not properly handle transparency for non-PNG image formats

MapGuide Open Source trac_mapguide at osgeo.org
Mon Jun 6 02:39:52 EDT 2011


#743: AGG Renderer does not properly handle transparency for non-PNG image
formats
---------------------------------+------------------------------------------
   Reporter:  gingerbbm          |       Owner:       
       Type:  enhancement        |      Status:  new  
   Priority:  medium             |   Milestone:       
  Component:  Rendering Service  |     Version:  2.2.0
   Severity:  minor              |    Keywords:       
External_id:                     |  
---------------------------------+------------------------------------------

Comment(by jng):

 More sleuthing around reveals the problem
 [http://trac.osgeo.org/mapguide/browser/branches/2.2/MgDev/Common/Renderers/AGGImageIO.cpp#L1034
 here]

 Running the code down the else condition path (ie. call
 gdImageTrueColorToPalette() directly regardless). Will produce the correct
 transparent result for PNG8 and GIF.

 Running the code down the other path (ie. A base color palette has been
 defined) produces the image with an opaque background

 So the problem is either in:

 AGGImageIO::CreateGdImageWithPalette

 or

 AGGImageIO::ImageCopyForcePaletteGD

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/743#comment:12>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list