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
vinhhrv opened this Issue Mar 29, 2017 · 5 comments

Comments

Projects
None yet
5 participants
@vinhhrv
Copy link

vinhhrv 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

This comment has been minimized.

Copy link

HelmuthWcs commented Mar 29, 2017

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

This comment has been minimized.

Copy link
Member

JimBobSquarePants commented Jun 28, 2017

@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)

@JimBobSquarePants JimBobSquarePants referenced this issue Jul 10, 2017

Merged

WIP Replace Jpeg Decoder #274

4 of 4 tasks complete

antonfirsov added a commit that referenced this issue Aug 31, 2017

antonfirsov added a commit that referenced this issue Aug 31, 2017

@tocsoft tocsoft closed this in e2d26eb Sep 14, 2017

@brianpopow

This comment has been minimized.

Copy link
Contributor

brianpopow commented May 15, 2018

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

This comment has been minimized.

Copy link
Member

antonfirsov commented May 15, 2018

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

@antonfirsov antonfirsov referenced this issue May 15, 2018

Merged

Swap jpeg decoders #571

4 of 4 tasks complete
@brianpopow

This comment has been minimized.

Copy link
Contributor

brianpopow commented May 15, 2018

nice, i am glad to hear that!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment