src/main/java/org/apache/xmlgraphics/image/codec/png/PNGImageDecoder.java [449:475]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                    String type = chunk.getTypeString();
                    byte[] data = chunk.getData();
                    if (encodeParam != null) {
                        encodeParam.addPrivateChunk(type, data);
                    }
                    if (emitProperties) {
                        String key = "chunk_" + chunkIndex++ + ':' + type;
                        properties.put(key.toLowerCase(Locale.getDefault()), data);
                    }
                }
//            } catch (Exception e) {
//                e.printStackTrace();
//                String msg = PropertyUtil.getString("PNGImageDecoder2");
//                throw new RuntimeException(msg);
//            }
        } while (true);

        // Final post-processing

        if (significantBits == null) {
            significantBits = new int[inputBands];
            for (int i = 0; i < inputBands; i++) {
                significantBits[i] = bitDepth;
            }

            if (emitProperties) {
                properties.put("significant_bits", significantBits);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/xmlgraphics/image/codec/png/PNGRed.java [458:479]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                String type = chunk.getTypeString();
                byte[] data = chunk.getData();
                if (encodeParam != null) {
                    encodeParam.addPrivateChunk(type, data);
                }
                if (emitProperties) {
                    String key = "chunk_" + chunkIndex++ + ':' + type;
                    properties.put(key.toLowerCase(Locale.getDefault()), data);
                }
            }
        } while (true);

        // Final post-processing

        if (significantBits == null) {
            significantBits = new int[inputBands];
            for (int i = 0; i < inputBands; i++) {
                significantBits[i] = bitDepth;
            }

            if (emitProperties) {
                properties.put("significant_bits", significantBits);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



