You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear All, I have two questions about existing(?) features. I have a number of 5 channel images. The first 4 channels correspond to C, M, Y, and K in CMYK colorspace, the last channel is the alpha (transparency) channel. According to the API documentation I can create such an image by joining channels with raw data, and then converting the output to cmyk, the last channel being interpreted as alpha. However, when I query the metadata of the resulting image, it seems there are only 4 channels. Here is the code piece of this try:
I tried with tiff because it supports both cmyk and transparency. Although the colorspace is cmyk, number of channels is 4 and hasAlpha is false. Does sharp support such images currently? If yes, what is the correct way of achieving this?
Furthermore, I need to do image composition with these 5 channel images. I can do this with png images in sharp easily. Is composition supported in the same way with cmyk-alpha images?
The text was updated successfully, but these errors were encountered:
Dear All, I have two questions about existing(?) features. I have a number of 5 channel images. The first 4 channels correspond to C, M, Y, and K in CMYK colorspace, the last channel is the alpha (transparency) channel. According to the API documentation I can create such an image by joining channels with raw data, and then converting the output to cmyk, the last channel being interpreted as alpha. However, when I query the metadata of the resulting image, it seems there are only 4 channels. Here is the code piece of this try:
metadata()
forimgTif
is as follows:I tried with tiff because it supports both cmyk and transparency. Although the colorspace is cmyk, number of channels is 4 and
hasAlpha
isfalse
. Does sharp support such images currently? If yes, what is the correct way of achieving this?Furthermore, I need to do image composition with these 5 channel images. I can do this with png images in sharp easily. Is composition supported in the same way with cmyk-alpha images?
The text was updated successfully, but these errors were encountered: