You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also hit this issue. Switching from OpenJDK to Oracle got me past this specific exception; however, I ran into another problem. When I read a jpg image and save it as a jpg image (yes jpg -> jpg), it comes out as all black when I open it using Ristretto Image Viewer on Xubuntu. When I open it in Firefox, it comes out pink.
From SO comments:
BTW, OpenJDK does have a native JPEG encoder. And if you try to save 32-bit-color file - it fails. And Sun JDK does not fail, but form tinted file. Not sure what is better. – Andrey Regentov Apr 25 '13 at 11:02
If you are getting a pink effect, it is likely because you use a BufferedImage with an alpha-channel while JPG does not support that. Make sure you use a BufferedImage.TYPE_INT_RGB and not BufferedImage.TYPE_INT_ARGB – Guillaume Polet Jul 31 '12 at 13:26
In a basic leiningen project that includes a file
sample.jpg
:Am I doing something wrong?
The text was updated successfully, but these errors were encountered: