Code: Select all
convert -colorspace RGB -interlace none testcard.pdf test1.jpg
now im trying to do the same from php with this:
Code: Select all
$pdf='testcard.pdf';
$im = new imagick($pdf.'[0]');
$im->setColorSpace( imagick::COLORSPACE_RGB );
$im->setImageColorSpace( imagick::COLORSPACE_RGB );
$im->setImageFormat( "jpg" );
header( "Content-Type: image/jpeg" );
echo $im;
It show works the same, right?