Reading TIF frames. Is there a way to ignore 'compression not supported' error? #1355
Replies: 3 comments 2 replies
-
Can you share a file that can be used to reproduce this issue? And |
Beta Was this translation helpful? Give feedback.
-
Thank you for responding. My samples are all private documents that I can't post. I can't create a sample because I don't have the library that created them. If it helps, I have successfully used tifffile in python on a OSX to extract the bytes from a frame. The result was a JP2 file in the frames that could be viewed in OSX Preview. However, on a Windows 10 or Ubuntu 20.04 the JP2 file comes out as a 0 byte file. ImageMagick is reported to support JP2 but for some reason this JP2 is not supported. My goal is to get the frames out as JP2 using Magick.Net and then find some open source library that will convert the JP2 to a standard JPEG. Example Python that extracts frame bytes on OSX:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a TIF that has frames that Imagemagik/Magick.Net does not support.
I want to use Magick.Net to read the TIF and extract the frame bytes to be processed by another library. However, I can't get Magick.Net to ignore the frame compression/format. I haven't found any .Net library that will read a TIF and ignore the frame compression/format (bitmircle libtiff, etc)
ChartGPT is saying this should work but it's not an option for ReadSettings:
And this also throws the error:
Please let me know if you have any ideas or suggestions.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions