mickleness / pumpernickel

This Java project includes classes related to desktop applications, Swing, performance, image processing, data structures, and other misc topics.
https://mickleness.github.io/pumpernickel/
MIT License
66 stars 12 forks source link

JPEG: attempt to support more thumbnails in com.sun.imageio.plugins.jpeg.JPEGImageReader #113

Open mickleness opened 2 months ago

mickleness commented 2 months ago

This codebase's JPEGMetaData class can parse some thumbnails in JPEGs that the default JPEGImageReader does not.

This codebase's implementation achieves this just by calling ImageIO's default reader with a targeted InputStream.

In theory (ha!) this seems like it could be a relatively simple enhancement to the existing JPEGImageReader.

This ticket is to explore enhancing JPEGImageReader to do the same thing JPEGMetaData is already doing. The first several drafts should try using forked code (from the sun classes). If that much is successful: we can pitch this to the OpenJDK lib group. If that is successful: we can delete JPEGMetaData from this codebase.