<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Currently, there are multiple different image APIs in the Java ecosystem: AWT, JavaFX, Android, etc.</div><div>What's worse, the Android platform does not provide support for AWT, making the Java ecosystem even more fragmented.</div><div><br></div><div>There are some obvious problems with the current situation:</div><div><br></div><div>* Third-party libraries that need an image API are difficult to be universal.</div><div>  A practical example: Apache Commons Imaging has been in the alpha stage and cannot release version 1.0. </div><div>  The main reason is that it depends on `java.awt.image`, so it doesn't work on Android.</div><div>  We hope to solve this problem before the official release.</div><div>* Different image APIs have to repeatedly implement support for reading the same image format (such as JPEG).</div><div>  In fact, AWT, JavaFX, and Android now each implement reading JPEG images.</div><div>  This is a waste.</div><div><br></div><div>I thought we might be able to create a new module independent of java.desktop that provides a common abstraction for images.</div><div>It should:</div><div><br></div><div>* Provides common Image and ImageProvider interfaces that can be implemented by different providers.</div><div>* Provides a unified abstraction for colors, color spaces, pixel formats, etc.</div><div>* Provides general and extensible image I/O support.</div><div>  Read/write support should only need to be implemented once per image format.</div><div>  It should be bidirectionally compatible with `javax.imageio`:</div><div>  The implementation of either API can be accessed through the other API.</div><div><br></div><div>I want to know if this is an idea worth putting into practice?</div><div>I'm not an expert in this field, so I'm worried about creating designs with many flaws.</div><div>Therefore, I haven't attempted to implement it yet.</div><div>If anyone is willing to implement it, I'd like to help.</div><div><br></div><div>I had sent an email a few days ago but no one responded, so I re-edited it and sent this one.</div><div><br></div><div>Glavo</div><div><br></div></div></div></div>