Skip to content
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

Load Image Exception Jpg ImageSharp.Formats.Jpg.MissingFF00Exception #159

Closed
4 tasks done
vinh84 opened this issue Mar 29, 2017 · 5 comments
Closed
4 tasks done

Load Image Exception Jpg ImageSharp.Formats.Jpg.MissingFF00Exception #159

vinh84 opened this issue Mar 29, 2017 · 5 comments

Comments

@vinh84
Copy link

vinh84 commented Mar 29, 2017

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of ImageSharp
  • I have verified if the problem exist in both DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

Description

Load Image Error

jpg_bug

ImageSharp.Formats.Jpg.MissingFF00Exception

Steps to Reproduce

using (var file = File.OpenRead("files/jpg_bug.jpg")) { var image = Image.Load(file); }

Attach file

System Configuration

  • ImageSharp version: 1.0.0-alpha5-00046
  • Other ImageSharp packages and versions:
  • Environment (Operating system, version and so on): win10
  • .NET Framework version: netcoreapp
  • Additional information:
@HelmuthWcs
Copy link

I'm getting the same error on some pictures taken with the samsung gear 360. Failed with alpha2 so I updated, and still failing with latest alpha5
4

@JimBobSquarePants
Copy link
Member

@vinhhrv @HelmuthWcs

The causes that throw that exception are different in both images.

The first image is actually correct and highlight a bug in the decoder.

The seconds image however is buggy and will require a workaround. Here's the output from JpegSnoop

*** Decoding SCAN Data ***
  OFFSET: 0x0000D03B
  Scan Decode Mode: Full IDCT (AC + DC)

  Scan Data encountered marker   0xFFD9 @ 0x00785631.0
*** ERROR: Can't find huffman bitstring @ 0x0078562F.1, table 1, value [0xffffb200]
*** ERROR: Bad huffman code @ 0x0078562F.0
*** ERROR: Bad scan data in MCU(449,224): Chr(Cr) CSS(0,0) @ Offset 0x0078562F.1
           MCU located at pixel=(7184,3584)

@brianpopow
Copy link
Collaborator

unfortunately i am still getting this error: MissingFF00Exception.

The image is the following:

25246205

It occurs in beta3 and in the current master branch.

I have tested the image with JpegSnoop and imagemagick identify, both do not report any issue with the image.

@antonfirsov
Copy link
Member

@brianpopow should be fixed as soon as we merge #571 (very soon!)

@brianpopow
Copy link
Collaborator

nice, i am glad to hear that!

I have tested it with the swap-jpeg-decoder branch and it did indeed fix the issue.

antonfirsov added a commit to antonfirsov/ImageSharp that referenced this issue Nov 11, 2019
antonfirsov added a commit to antonfirsov/ImageSharp that referenced this issue Nov 11, 2019
antonfirsov added a commit to antonfirsov/ImageSharp that referenced this issue Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants