ai、psdファイルをjpgファイルに変換するためにImagick()を使用してプレビューサムネイル用に表示しようとしています.ppsファイルをjpgに変換するのに成功しましたが、 aiファイルをjpgに変換する方法はありません。ここでphpを使用して.aiファイルを.jpgファイルに変換する
iは
$im = new Imagick('asd.psd');
$im->setIteratorIndex(0);
$im->stripImage();
$im->setImageCompressionQuality(80);
$im->writeImage('1.jpg');
をJPGためにPSDを変換するために使用するPHPコードである私は、AIファイルを変換するために、同じコードの上に使用しようとしたが、それは誤り下のショーだった::
Fatal error: Uncaught exception 'ImagickException' with message 'PDFDelegateFailed `[ghostscript library] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pam" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dUseCIEColor "-sOutputFile=/tmp/magick-250295ZIcan0qH3a0p%d" "-f/tmp/magick-250295BABXRURgbnUr" "-f/tmp/magick-250295HPtOsqaxXIOt"': -dname= must be followed by a valid token @ error/pdf.c/InvokePDFDelegate/263' in /home/genioomy/public_html/demo/testing-area/test.php:55 Stack trace: #0 /home/genioomy/public_html/demo/testing-area/test.php(55): Imagick->__construct('asd.ai') #1 {main} thrown in /home/genioomy/public_html/demo/testing-area/test.php on line 55