Opened 16 years ago

Closed 16 years ago

#2540 closed defect (fixed)

OFFSITE pixels are not transparent using AGG

Reported by: sdlime Owned by: tbonfort
Priority: normal Milestone: 5.2 release
Component: AGG Version: svn-trunk (development)
Severity: normal Keywords:
Cc: warmerdam

Description

It appears that the AGG renderer doesn't make OFFSITE pixels transparent for RASTER layers. I'm not sure if the problem lies in the AGG code or in the GDAL code. My test is limited to a series of TIFF images (8-bit palleted, 24-bit RGB and 48-bit RGB). The layer def looks like:

LAYER

NAME 'TEST_IMAGE' TYPE RASTER DATA 'test_color.tiff' OPACITY 50 OFFSITE 0 0 255 STATUS DEFAULT

END

With 16-bit channels I include PROCESSING "SCALE=AUTO". I'll upload a couple of samples with and without AGG and the source image. GDAL seems to be processing the OFFSITE colors correctly as they turn from blue to black but the offsite pixels aren't transparent with AGG.

Steve

Change History (4)

comment:1 by sdlime, 16 years ago

Friggin' Trac won't allow attachments over about 250K. Contact me if you'd like to see sample output.

Steve

comment:2 by sdlime, 16 years ago

Component: MapServer C LibraryAGG
Owner: changed from sdlime to tbonfort

comment:3 by sdlime, 16 years ago

Cc: warmerdam added

comment:4 by tbonfort, 16 years ago

Milestone: 5.2 release
Resolution: fixed
Status: newclosed

fixed in r7765.

the resampling logic was expecting GD formatted pixels for the temporary image, but the call to msImageCreate was creating it with AGG format (ie alpha=0 instead of 127)

Note: See TracTickets for help on using tickets.