CMYK with Alpha Tiff resize problem.
CMYK with Alpha Tiff resize problem.
I'm having trouble to resize CMYK image with transparent background.
I search the similar topics but still not find the exact solution.
When I resize the original tiff image, its background(transparent) part get white and some foreground part get transparent.
I tried the following.
convert -channel CMYKA orig.tif -resize 1000x1000 -alpha on -colorspace CMYK result.tif
The files are here.
https://www.dropbox.com/s/0n3zj64kz1g6z7v/Data.zip?dl=0
I'm using ImageMagick-7.0.8-34-Q16-x86-dll on Windows10.
Please help me which convert command options I should use.
Thanks.
I search the similar topics but still not find the exact solution.
When I resize the original tiff image, its background(transparent) part get white and some foreground part get transparent.
I tried the following.
convert -channel CMYKA orig.tif -resize 1000x1000 -alpha on -colorspace CMYK result.tif
The files are here.
https://www.dropbox.com/s/0n3zj64kz1g6z7v/Data.zip?dl=0
I'm using ImageMagick-7.0.8-34-Q16-x86-dll on Windows10.
Please help me which convert command options I should use.
Thanks.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: CMYK with Alpha Tiff resize problem.
I do not know what you expect to see. What are the correct colors? Photoshop shows a yellow cat on transparency. But extracting the layers to PNG shows a gray cat with pink ears?
I cannot reproduce what I see in Photoshop using any of
with IM 6.9.10.34 Q16 Mac OSX
I will need to defer this to the IM developers. It is possible that -define tiff:alpha is not being set correctly
I cannot reproduce what I see in Photoshop using any of
Code: Select all
convert orig.tif -define tiff:alpha=unspecified|associated|unassociated new.tif
I will need to defer this to the IM developers. It is possible that -define tiff:alpha is not being set correctly
Re: CMYK with Alpha Tiff resize problem.
Hi, thanks for quick reply.
As you can see, the orig.tif file is opened in PS with transparent background, but result.tif is opened with white background.
I want the result.tif is opened as the same as the orig.tif in the Photoshop.
As you can see, the orig.tif file is opened in PS with transparent background, but result.tif is opened with white background.
I want the result.tif is opened as the same as the orig.tif in the Photoshop.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: CMYK with Alpha Tiff resize problem.
I still do not know what exact color the cat should be? Is it yellow?
Re: CMYK with Alpha Tiff resize problem.
Yes, yellow with pink ears.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: CMYK with Alpha Tiff resize problem.
My photoshop show yellow cat with orange ears!
Shows the same but the transparency is gone and is white background. With the define set to associate or unassociated alpha and negating the alpha channel the cat becomes gray with blue eyes and pink ears.
So what is the correct view. Can you export what you expect from Photoshop as JPG or PNG? And put a link to that image here.
Code: Select all
convert orig.tif -define tiff:alpha=unspecified new.tif
So what is the correct view. Can you export what you expect from Photoshop as JPG or PNG? And put a link to that image here.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: CMYK with Alpha Tiff resize problem.
That is not what the preview window of Photoshop shows.
Nevertheless, do
and that will give you want you want.
Nevertheless, do
Code: Select all
convert orig.tif +reverse result.tif
Re: CMYK with Alpha Tiff resize problem.
OHHHHHH!
Great!!!!!!
Thanks. It works fine.
Great!!!!!!
Thanks. It works fine.
Re: CMYK with Alpha Tiff resize problem.
Hello.
I just found that the white channel of orig.tif file has disappeared in result.tif.
Could you kindly tell me how to keep the white channel?
Thanks.
I just found that the white channel of orig.tif file has disappeared in result.tif.
Could you kindly tell me how to keep the white channel?
Thanks.
Re: CMYK with Alpha Tiff resize problem.
Hello. I was very appreciated for your help yesterday.
But I'm sorry that I want to keep the last channel.
Here is my problem again.
Last time I tested from Photoshop Element 2018 and the two images were look same.
( convert orig.tif +reverse -result.tif)
But when I tried with [PhotoShop CC 2015.5] at macOS, the result was unexpected.
the orig.tif file was yellow cat, but result.tif was white-blue cat.
the difference is that result.tif lost the white channel of the orig.tif.
Please help me with this problem.
Thanks.
But I'm sorry that I want to keep the last channel.
Here is my problem again.
Last time I tested from Photoshop Element 2018 and the two images were look same.
( convert orig.tif +reverse -result.tif)
But when I tried with [PhotoShop CC 2015.5] at macOS, the result was unexpected.
the orig.tif file was yellow cat, but result.tif was white-blue cat.
the difference is that result.tif lost the white channel of the orig.tif.
Please help me with this problem.
Thanks.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: CMYK with Alpha Tiff resize problem.
Currently, ImageMagick cannot deal with extra channels or spot colors.