hello,
i should convert some psd files with channel. i'm using the convert command, but it don't take the channel e show image with wrong color.
can i convert this files?
PSD channel convert
Re: PSD channel convert
Not quite sure what you are asking; post your code, version and method e.g. php, shell, batch file etc.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: PSD channel convert
gignux wrote:hello,
i should convert some psd files with channel. i'm using the convert command, but it don't take the channel e show image with wrong color.
can i convert this files?
Your psd file may be in CMYK format? Check the identify -verbose yourimage.
If it is cmyk, then you may need to convert to sRGB first.
As Bonzo said, it would be most helpful to know your system, IM version, full command line, what you want to do, and also if you can post a link to your input image.
Do you want to extract a channel or a layer?
Re: PSD channel convert
the version is ImageMagick 6.7.8-7 by shell. Ubuntu SERVER 10.10.
i need to created a thumbnails of this files that are a psd multichannel.
i use convert -resize 300x300 image.psd image.jpg
the file have a lot of channel and i should take them for generated a thumbnails
the file is:
psd
Image: PJ1008.psd
Format: PSD (Adobe Photoshop bitmap)
Class: DirectClass
Geometry: 100x100+0+0
Resolution: 322x645
Print size: 0.310559x0.155039
Units: PixelsPerCentimeter
Type: TrueColor
Endianess: Undefined
Colorspace: RGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 0 (0)
max: 255 (1)
mean: 238.35 (0.934704)
standard deviation: 43.3239 (0.169897)
kurtosis: 5.25054
skewness: -2.49173
Green:
min: 0 (0)
max: 255 (1)
mean: 238.388 (0.934854)
standard deviation: 43.6846 (0.171312)
kurtosis: 5.31912
skewness: -2.50532
Blue:
min: 0 (0)
max: 255 (1)
mean: 33.2077 (0.130226)
standard deviation: 59.0924 (0.231735)
kurtosis: 1.40442
skewness: 1.55021
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 169.982 (0.666595)
standard deviation: 49.2518 (0.193144)
kurtosis: 37.638
skewness: -7.44052
i need to created a thumbnails of this files that are a psd multichannel.
i use convert -resize 300x300 image.psd image.jpg
the file have a lot of channel and i should take them for generated a thumbnails
the file is:
psd
Image: PJ1008.psd
Format: PSD (Adobe Photoshop bitmap)
Class: DirectClass
Geometry: 100x100+0+0
Resolution: 322x645
Print size: 0.310559x0.155039
Units: PixelsPerCentimeter
Type: TrueColor
Endianess: Undefined
Colorspace: RGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 0 (0)
max: 255 (1)
mean: 238.35 (0.934704)
standard deviation: 43.3239 (0.169897)
kurtosis: 5.25054
skewness: -2.49173
Green:
min: 0 (0)
max: 255 (1)
mean: 238.388 (0.934854)
standard deviation: 43.6846 (0.171312)
kurtosis: 5.31912
skewness: -2.50532
Blue:
min: 0 (0)
max: 255 (1)
mean: 33.2077 (0.130226)
standard deviation: 59.0924 (0.231735)
kurtosis: 1.40442
skewness: 1.55021
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 169.982 (0.666595)
standard deviation: 49.2518 (0.193144)
kurtosis: 37.638
skewness: -7.44052
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: PSD channel convert
Note the input should come right after convert and before any operator such as -resize for proper IM 6 syntax.
see http://www.imagemagick.org/Usage/basics/#cmdline
still not sure whether you want the RGB channels or the layers.
If the rgb channels, try
convert image.psd -resize 300x300 -separate result.jpg
That will give you each of the RGB channels as result-0.jpg, result-1.jpg result-2.jpg
If you just want a thumbnail for the image then,
convert image.psd -resize 300x300 result.jpg
or
convert image.psd -thumbnail 300x300 result.jpg
Note your colors may be off, if you have a profile in your file. See the verbose information for ICC profiles or similar such things. Then to convert properly, you may need to use profiles in your command. As you do not show the full verbose information, it is hard to tell.
Also if you can provide a link to your input and output results, then others can test.
see http://www.imagemagick.org/Usage/basics/#cmdline
still not sure whether you want the RGB channels or the layers.
If the rgb channels, try
convert image.psd -resize 300x300 -separate result.jpg
That will give you each of the RGB channels as result-0.jpg, result-1.jpg result-2.jpg
If you just want a thumbnail for the image then,
convert image.psd -resize 300x300 result.jpg
or
convert image.psd -thumbnail 300x300 result.jpg
Note your colors may be off, if you have a profile in your file. See the verbose information for ICC profiles or similar such things. Then to convert properly, you may need to use profiles in your command. As you do not show the full verbose information, it is hard to tell.
Also if you can provide a link to your input and output results, then others can test.
Re: PSD channel convert
I tried the commando.
this is the link of tar.gz with the result. http://www.sermatech.it/PJ008.tar.gz
the original file is PJ0008.tar.gz
using command convert pj0008.psd -thumbnail 300x300 a.jpg return the file a.jpg but incorrect
using command convert pj008.psd -resize 300x300 -separate a.jpg return the a-0 a-1 a-2 jpg
according to me it take only the first tree rgb channel and not the other
the goal of my project is create thumbnail of psd,psb and raw.
this is the link of tar.gz with the result. http://www.sermatech.it/PJ008.tar.gz
the original file is PJ0008.tar.gz
using command convert pj0008.psd -thumbnail 300x300 a.jpg return the file a.jpg but incorrect
using command convert pj008.psd -resize 300x300 -separate a.jpg return the a-0 a-1 a-2 jpg
according to me it take only the first tree rgb channel and not the other
the goal of my project is create thumbnail of psd,psb and raw.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: PSD channel convert
According to Photoshop CS, your file PJ1008.psd has only one layer and 3 channels -- Red, Green, Blue. So I am not sure what you are trying to do. Your a.jpg file looks perfectly like the psd file for me in Mac OSX Preview, Safari and Firefox. a-0.jpg a-1.jpg and a-2.jpg look exactly like the channels shown in Photoshop. I do not see any psb or raw files contained in the PJ1008.psd.
So I am not sure what the issue is. Please clarify.
So I am not sure what the issue is. Please clarify.
Re: PSD channel convert
sorry the original file is http://www.sermatech.it/PJ1008.psd.
the original file is blue and after the conversion is yellow
Thanks for help me
the original file is blue and after the conversion is yellow
Thanks for help me
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: PSD channel convert
gignux wrote:sorry the original file is http://www.sermatech.it/PJ1008.psd.
the original file is blue and after the conversion is yellow
Thanks for help me
Looking at your image in Photoshop, your channels are not Red, Green, Blue. They are labeled: rosso, bianco and fondo. In Italian, these translate to red, white and background, though I am not sure what the language actually is. But I suspect that this may be confusing IM.
I tried to rename the channels to red, green and blue, strip all meta data and save the image. But in the end the thumbnail still has changed colors.
So perhaps these channels are bogus? I really do not know what they are.
Sorry I cannot help any further. I don't know what to suggest. Perhaps some other expert on Photoshop and IM can help you more than I.