-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlateDecode DeviceRGB Image not extracting properly #5
Comments
Try to rotate image before extracting |
I'm using the example code from README.md. Rotating the image object using the Image.RotateFlip before saving simply exports the same image rotated, with the same glitches. |
I am having the same issue.The only difference is the size of my image, everything else is identical. The result is a similar looking distortion to the image. Is there any progress on this? |
Well, as soon as I posted that comment, I ran across this page. |
After implementing all the PNG filter variation logic, I was able to get your image (and mine too). I first get the UnfilterValue from the stream. I created an array big enough to convert it to a 32bit image (this is probably not necessary but seemed easiest at the time), stepped through each line, got the PNG filter value from the first byte and filled in the new byte array based on what filter was applied to that line. That image uses every filter except for 3 (average) |
I have a PDF containing an image with FlateDecode encoding and DeviceRGB color space that does not extract as expected. With my limited understanding, I believe the color palette is not being read properly.
I understand that not all images can currently be extracted, but I believe this image meets the properties of generally extractable images.
98ccc0ea322f4e80aa38cf353de2cd6e[1].pdf
The text was updated successfully, but these errors were encountered: