Coder Social home page Coder Social logo

Preserve Jpeg color profile about caire HOT 6 CLOSED

purplefish32 avatar purplefish32 commented on September 28, 2024
Preserve Jpeg color profile

from caire.

Comments (6)

esimov avatar esimov commented on September 28, 2024

What do you mean by color space is not preserved? Could you explain? Even better would be if you could attach the source image and the resulted output.

from caire.

purplefish32 avatar purplefish32 commented on September 28, 2024

The first one (in) is in Adobe RGB (1998) colour profile, the second one (out) becomes sRGB ICE61966-2.1

Notice the colours are also less vibrant.

Screenshot 2022-09-22 at 14 55 25

This is the command I am using :

caire -in beach.jpg -width 1969 -out beach2.jpg -debug=1

So here are the two images :

beach
beach (1)

from caire.

purplefish32 avatar purplefish32 commented on September 28, 2024

Once uploaded to Github, both the in and out image seem to be more or less the same, I think the Github image preview is reincoding them or something,

You can try a download one and use caire on it to reproduce the issue

from caire.

purplefish32 avatar purplefish32 commented on September 28, 2024

And sorry it is the colour profile that changes, not the colour space

from caire.

esimov avatar esimov commented on September 28, 2024

I've done a little research, but unfortunately the image package does not preserve the color profile of the original image on encoding. There are other tools like exiftool where you can modify the color profile of an image or libvips which actually has a go binding also, but I'm not planning of integrating into Caire.

from caire.

purplefish32 avatar purplefish32 commented on September 28, 2024

OK, thank you for taking the time to investigate

from caire.

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.