[Geoserver-devel] [jira] (GEOS-5703) TurboJPEG issue: BandSelect on images with alpha

Daniele Romagnoli created BugGEOS-5703
TurboJPEG issue: BandSelect on images with alpha

Issue Type:

BugBug

Affects Versions:

2.2.5

Assignee:

Andrea Aime

Components:

Community modules

Created:

12/Mar/13 12:19 PM

Description:

JPEG encoding doesn’t support alpha band.
Before sending the image to the TurboJPEGImageWriter, bandSelect is performed by TurboJPEGImageWorker to remove the alpha band.
When Medialib is available the result is good.

However, when MediaLib isn’t available the resulting image isn’t good (it is a bit stretched and dark lines are present).
It seems like the pure java BandSelect op doesn’t properly operate on the underlying DataBuffer when creating a child of the original tile or some other strange things are occurring within the Oracle ByteInterleavedRaster class.

We should investigate on it or create an utility method inside the TurboJpegImageWorker which uses a different approach to do bandSelect when no MediaLib is available.

Fix Versions:

2.2.x

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Daniele Romagnoli

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa) For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)