question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose setting ICC profile via withMetadata

See original GitHub issue

When I resize a CMYK TIFF, and output to TIFF the output file is RGB not CMYK.

Do I need to configure the output somehow to enable CMYK output?

Here is the code I am using:

var outputImage = sharp(source)
                .resize(outputSize.w,outputSize.h)
                .sharpen()
                .withMetadata()
                .interpolateWith(sharp.interpolator.bicubic)
                .toFile(outputFile,function(err) {
                    ...
                });

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:4
  • Comments:35 (19 by maintainers)

github_iconTop GitHub Comments

7reactions
jkkcommented, Sep 23, 2017

Chiming in with my use case: ideally I would like to retain the embedded profile of the input image (no conversion), and strip all other metadata. I’m generating thumbnails for photos that photographers are uploading, and the color should be accurate, but none of the other metadata matters. I’m using imagemagick currently and this seems to be the only feature that sharp can’t match.

4reactions
samkellehercommented, Nov 21, 2016

Thanks for chiming in @lovell , this is what I sussed out in my tests last night. So if a withIcc() method or some sorts could be introduced, it would be great to use Sharp to be able to manipulate P3 tagged images without automatically downgrading them to sRGB in the process.

Been using the new devices and the difference of a sunset photo in a P3 image vs one that has been downgraded to sRGB is surprisingly dramatic when compared side by side. 🌇 😍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using ICC Profiles in Windows
ICC profiles essentially modify the graphics card's Look Up Table (LUT) and gamma table so that the monitor displays different and ideally ...
Read more >
Work with metadata in Adobe Bridge
Adobe Bridge provides two ways of working with metadata: through the Metadata panel and through the File Info dialog box.
Read more >
Creating ICC Profiles with Color Targets - YouTube
Have you ever wondered about how to build a color profile for your camera? Ever been curious about when it makes sense to...
Read more >
Using Color Management For Color Adjustment – Synthetic ...
Change what those numbers mean, by changing image's ICC profile. Using abstract or synthetic profiles, you can make massive changes to an image...
Read more >
SciELO - Brazil
Welcome to the new SciELO website! If you wish to access the previous version, go to old.scielo.br. Open menu. Brazil.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found