sharp icon indicating copy to clipboard operation
sharp copied to clipboard

How to add a spot color channel to a picture?

Open 826327700 opened this issue 2 years ago • 5 comments

What are you trying to achieve?

How to add a spot color channel to a picture?like this in photoshop: image

826327700 avatar Mar 21 '22 02:03 826327700

Did you see the composite operation? You can use it to layer an image containing a single colour with alpha over or under another image.

lovell avatar Mar 21 '22 08:03 lovell

Did you see the composite operation? You can use it to layer an image containing a single colour with alpha over or under another image.

I don't think my problem is layer combinations. my quesition is a cmyk color mode picture needs to added a spot color channel when printing. emmmm,I don't know if my description is correct. My English is not very good.

I expect the feature to be like this: https://github.com/libvips/libvips/issues/1760

826327700 avatar Mar 22 '22 06:03 826327700

Did you see the composite operation? You can use it to layer an image containing a single colour with alpha over or under another image.

I don't think my problem is layer combinations. my quesition is a cmyk color mode picture needs to added a spot color channel when printing. emmmm,I don't know if my description is correct. My English is not very good.

I expect the feature to be like this: libvips/libvips#1760

I find a quesition same as me in stackoverflow: https://stackoverflow.com/questions/61608764/how-to-add-an-extra-channel-to-tiff-in-c-sharp-from-another-tiff-image his expected same as me. can sharpjs implement this feature?

826327700 avatar Mar 22 '22 07:03 826327700

Thank you for the extra context, I had misunderstood the original question, apologies.

The ifthenelse operation in libvips is not yet exposed in sharp but would make a good addition and a PR would be most welcome, if you're able.

https://www.libvips.org/API/current/libvips-conversion.html#vips-ifthenelse

The existing recomb operation might provide a suitable exanple as to how to implement this.

lovell avatar Mar 22 '22 10:03 lovell

May I ask if it can be achieved now?

muyichuanqi avatar Mar 18 '24 04:03 muyichuanqi