coobird / thumbnailator

Thumbnailator - a thumbnail generation library for Java
MIT License
5.08k stars 780 forks source link

the .pict file is not supported #209

Closed vulner910 closed 1 year ago

vulner910 commented 1 year ago

Expected behavior

Please describe what you are expecting the library to perform.

Actual behavior

Please describe the actual behavior you are experiencing, including stack trace and other information which would help diagnose the issue.

Steps to reproduce the behavior

Please enter step-by-step instructions for reproducing the actual behavior. Including code can be helpful in diagnosing issue, but please keep the code to a minimal that will reproduce the behavior.

Environment

Please provide vendor and version information for the Operating System, JDK, and Thumbnailator. Please feel free to add any other information which may be pertinent.

coobird commented 1 year ago

@vulner910 , Thumbnailator relies on Image I/O plugins available at runtime for reading and writing images. The default Java environment doesn't have support for the PICT format, so Thumbnailator cannot handle them.

If you want to handle other image formats, you'll need to add the appropriate Image I/O plugins to support them. For example, if you need PICT support, TwelveMonkeys ImageIO has support for them. You'll basically just need to add a Maven dependency to the PICT plugin ("imageio-pict") and that should be all you'll need to do.

For more information, please refer to the FAQ on this topic.