garydgregory commented on PR #347:
URL: https://github.com/apache/commons-imaging/pull/347#issuecomment-1880041105

   > YRW @garydgregory ! <img alt="image" width="1300" 
src="https://private-user-images.githubusercontent.com/26158436/294746822-f71b37bd-f231-49bb-b362-53e35031ecd7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDQ2Mjk1ODYsIm5iZiI6MTcwNDYyOTI4NiwicGF0aCI6Ii8yNjE1ODQzNi8yOTQ3NDY4MjItZjcxYjM3YmQtZjIzMS00OWJiLWIzNjItNTNlMzUwMzFlY2Q3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTA3VDEyMDgwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwMjI5NjI5Mjk2YjFjNDliNjU4ODZlMmQxNDZlZDQ5ZmNiNmFjZjQxMmYyNDc3M2JjNTFlN2M1NzAxMDY2MmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dpKDHfMs4Z2ZlS2EaSGtpCqNbQCT5eMuLVY7pxaR5Y8";>
 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());
   >     }
   > ```
   
   I think you're in the best position to recreate one since you've run into 
the issue yourself. I don't have an image-generator-for-each-line-of-code 😉 


-- 
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]

Reply via email to