Expose setting ICC profile via withMetadata
See original GitHub issueWhen 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:
- Created 8 years ago
- Reactions:4
- Comments:35 (19 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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. 🌇 😍