GithubHelp home page GithubHelp logo

Comments (4)

haraldk avatar haraldk commented on July 20, 2024

Hi @joeydaowang!

If I understand correctly, the bug report is that we now read a (non-spec) JPEG that we didn't before? I don't see the problem in that. If you add a warning listener while reading, you will get a lot of warnings though.

The problem seems to be that the APP1/XMP segment (before the first APP2/ICC_PROFILE) has a size much larger (19392) than the actual segment, so that the first ICC Profile segment is missed (and thus the entire ICC Profile is unreadable). If I manually fix the segment to its correct size (12662), the file seems entirely fine.

I believe the new behavior is fine (and desirable). Why do you think it's a bug?

from twelvemonkeys.

joeydaowang avatar joeydaowang commented on July 20, 2024

Hi @haraldk,

Thanks for replying so quickly.
I am not sure whether it is a bug. I would argue that if the image can't be opened by image viewer, then reader should throw exception as it is fatal error instead of warning?

from twelvemonkeys.

haraldk avatar haraldk commented on July 20, 2024

There are so many semi or non-compliant JPEGs that can be read by various software. It's a goal for this plugin to be lenient about such issues. If you only want to read spec-compliant JPEGs, you can use the built-in JPEG plugin, I'm sure it will throw exception for this image..

If we can actually read the image, why would you consider that a "fatal error"? I'm happy with the current behavior, so I'm closing this issue for now.

from twelvemonkeys.

joeydaowang avatar joeydaowang commented on July 20, 2024

Fair enough. I will use build-in JPEG reader for additional validation.
Thanks.

from twelvemonkeys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.