"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/library/coverage/src/main/java/org/geotools/image/ImageWorker.java" between
geotools-21.1-project.zip and geotools-21.2-project.zip

About: GeoTools (The Open Source Java GIS Toolkit) is a Java code library which provides standards compliant methods for the manipulation of geospatial data.

ImageWorker.java  (geotools-21.1-project):ImageWorker.java  (geotools-21.2-project)
skipping to change at line 3923 skipping to change at line 3923
final boolean nativeAcc) final boolean nativeAcc)
throws IOException { throws IOException {
// Reformatting this image for jpeg. // Reformatting this image for jpeg.
if (LOGGER.isLoggable(Level.FINE)) { if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Encoding input image to write out as JPEG."); LOGGER.fine("Encoding input image to write out as JPEG.");
} }
// go to component color model if needed // go to component color model if needed
ColorModel cm = image.getColorModel(); ColorModel cm = image.getColorModel();
final boolean hasAlpha = cm.hasAlpha(); final boolean hasAlpha = cm.hasAlpha();
forceComponentColorModel(); forceComponentColorModel(false, true, true);
cm = image.getColorModel(); cm = image.getColorModel();
// rescale to 8 bit // rescale to 8 bit
rescaleToBytes(); rescaleToBytes();
cm = image.getColorModel(); cm = image.getColorModel();
// remove transparent band // remove transparent band
final int numBands = image.getSampleModel().getNumBands(); final int numBands = image.getSampleModel().getNumBands();
if (hasAlpha) { if (hasAlpha) {
retainBands(numBands - 1); retainBands(numBands - 1);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)