There are 7 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-220801ff-4b7b-4b51-bf5a-dd7e8b3cc4c1 XWIKI-21546 Closed

"Unsupported Image Type" warning in the logs when scaling some JPEG images

 
View issue   ยท   Add comment
 

7 updates

 
cid:jira-generated-image-avatar-af8a1f21-a2d7-44c2-850c-faf70606487d Changes by Vincent Massol on 05/Dec/24 15:07
 
Summary: WARN  c.x.x.p.i.ImagePlugin Failed to transform image attachment. javax.imageio.IIOException: " Unsupported Image Type " warning in the logs when scaling some JPEG images
Fix Version: 17.0.0-rc-1
Documentation in Release Notes: N/A
Documentation: N/A
Resolution: Fixed
Labels: bugfixingday
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-af8a1f21-a2d7-44c2-850c-faf70606487d Vincent Massol on 05/Dec/24 15:10
 

Fixed by adding the following dep:

    <!-- Use a better image parser than what is in the JDK with ImageIO (which doesn't support CMYK-encoded
         jpeg images for example. Just adding this dependency is enough for calls to ImageIO.read() to use
         twelvemonkeys's implementation. -->
    <dependency>
      <groupId>com.twelvemonkeys.imageio</groupId>
      <artifactId>imageio-jpeg</artifactId>
      <version>3.12.0</version>
    </dependency>