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 , 16 years ago
comment:2 by , 16 years ago
Component: | MapServer C Library → AGG |
---|---|
Owner: | changed from | to
comment:3 by , 16 years ago
Cc: | added |
---|
comment:4 by , 16 years ago
Milestone: | → 5.2 release |
---|---|
Resolution: | → fixed |
Status: | new → closed |
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)
Friggin' Trac won't allow attachments over about 250K. Contact me if you'd like to see sample output.
Steve