Skip to content

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

Description

@vinh84

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:

Activity

  1. HelmuthWcs commented on Mar 29, 2017

    @HelmuthWcs

    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

  2. self-assigned this
    on Mar 29, 2017
  3. JimBobSquarePants commented on Jun 28, 2017

    @JimBobSquarePants
    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)
    
    
  4. added a commit that references this issue on Jun 28, 2017
    e2d26eb
  5. added 3 commits that reference this issue on Aug 31, 2017
  6. brianpopow commented on May 15, 2018

    @brianpopow
    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.

  7. antonfirsov commented on May 15, 2018

    @antonfirsov
    Member

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

  8. brianpopow commented on May 15, 2018

    @brianpopow
    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.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions