-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support AWT Image IO in native image #13567
Comments
Credit to @jerboaa who came up with the the instructions to get all of this working 👏. Note that as @jerboaa mentions in that issue, jpg is not yet fully working. More details in oracle/graal#3031. |
Just a note that we already have some ImageIO related tweaks in https://github.com/quarkusio/quarkus/blob/master/core/deployment/src/main/java/io/quarkus/deployment/ImageIOProcessor.java . |
Thanks @galderz Note that the config is highly dependent on the JDK code in use. JDK 11.0.8+11 might need slightly different config to JDK 11.0.10. Consider perhaps to drive the app from java first (with the |
@gsmet But according to the description of the issue in graalvm/mandrel#180, the tweaks available are not enough, otherwise you'd not get the Also, could this be a good first native issue for the community? |
@galderz I wasn't saying no additional work was needed, just that we had preliminary work there. BTW, this is blocking the GraalVM 20.3 upgrade, things that used to work don't work anymore: |
I tested the code examples from graalvm/mandrel#180 (comment) with GraalVM 20.2 as well and they don't work there either. So I think that this specific issue is not related to the 20.3 upgrade and doesn't need to be resolved for Quarkus to move to upgrade to 20.3. |
Thanks for testing it, @zakkak. I would have been surprised if it was any other way. |
Quarkus 1.11 CR1 is released, it comes with GraalVM 20.3 support. Is this going to get fixed before .Final? |
An extension, new or existing, should add the following to support AWT Image IO in native image. See attached JSON files containing write and read registration registrations.
imageio-read-native-image-config.zip
imageio-write-native-image-config.zip
The text was updated successfully, but these errors were encountered: