Diffferent image depth by "identify -format %z"?
Posted: 2009-10-07T01:43:03-07:00
Dear Board
Problem:
When executing the command "identify -format %z", on two different IM versions, I got two different values for the image depth.
Examples:
@server 1, ImageMagick 6.4.1 05/27/08 Q16
identify -format %z original.eps[0] => 16
identify -format %z converted.eps[0] => 16
@server 2, ImageMagick 6.4.1 08/19/08 Q16
identify -format %z original.eps[0] => 4
identify -format %z converted.eps[0] => (NULL)
Information:
- I know, that the original.eps is a 16bit image.
- The image "converted.eps" was created with the command "convert -depth 16 original.eps converted.eps"
PHP erxample script:
<?php
$result = array();
echo "identify version:\n";
$command = "identify -version";
exec($command, $result);
print_r($result);
$result = array();
echo "original.eps:\n";
$command = "identify -format %z original.eps[0]";
exec($command, $result);
print_r($result);
$result = array();
echo "converted.eps:\n";
$command = "identify -format %z converted.eps[0]";
exec($command, $result);
print_r($result);
?>
Does anybody have any suggestions? Thank you!
Greetings
Problem:
When executing the command "identify -format %z", on two different IM versions, I got two different values for the image depth.
Examples:
@server 1, ImageMagick 6.4.1 05/27/08 Q16
identify -format %z original.eps[0] => 16
identify -format %z converted.eps[0] => 16
@server 2, ImageMagick 6.4.1 08/19/08 Q16
identify -format %z original.eps[0] => 4
identify -format %z converted.eps[0] => (NULL)
Information:
- I know, that the original.eps is a 16bit image.
- The image "converted.eps" was created with the command "convert -depth 16 original.eps converted.eps"
PHP erxample script:
<?php
$result = array();
echo "identify version:\n";
$command = "identify -version";
exec($command, $result);
print_r($result);
$result = array();
echo "original.eps:\n";
$command = "identify -format %z original.eps[0]";
exec($command, $result);
print_r($result);
$result = array();
echo "converted.eps:\n";
$command = "identify -format %z converted.eps[0]";
exec($command, $result);
print_r($result);
?>
Does anybody have any suggestions? Thank you!
Greetings