nanfangfanqie commented on PR #347: URL: https://github.com/apache/commons-imaging/pull/347#issuecomment-1879995094
YRW @garydgregory ! <img width="1300" alt="image" src="https://github.com/apache/commons-imaging/assets/26158436/f71b37bd-f231-49bb-b362-53e35031ecd7"> I meet this error when i try to getBufferedImage from a tiff file, but it's not root cause. Next code is useful, but the file is privacy, i don't know how to create a file like it, can you help me? ```java private static BufferedImage getBufferedImage(final TiffDirectory directory) throws ImageReadException, IOException { if (directory.hasJpegImageData()) { JpegImageData jpegImageData = directory.getJpegImageData(); return Imaging.getBufferedImage(jpegImageData.getData()); } return directory.getTiffImage(new TiffImagingParameters()); } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
