Coder Social home page Coder Social logo

Comments (2)

JimBobSquarePants avatar JimBobSquarePants commented on May 25, 2024 1

As I'm sure you are aware. CR2 files are raw files that use the Tiff format internally.

The reference you highlighted is just some metadata in the jpg file indicating the raw file it originated from. We don't have dedicated CR2 decoders nor encoders.

However.... We can actually open the file if we remove the sanitation check and treat the default SOI offset as zero. However, we parse the dimensions of the file as defined in the IFD0 marker as 5184x3456 (The image is rotated 90degrees CW for display) not as described by Windows as 5202x3464

I think we are doing the correct thing here by only decoding the valid pixels but that's open to interpretation. Would that behaviour be expected by you?

image

from imagesharp.

am11 avatar am11 commented on May 25, 2024

@JimBobSquarePants, thank you for the update. I think having the CR2 encoder/decoder (derived from TIFF?) would be a good fit for ImageSharp library. Compliance with standard, instead of Windows behavior, makes sense to me as well. File explorer example was just a reference point where this format is supported.

from imagesharp.

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.