【发布时间】:2015-04-12 17:30:12
【问题描述】:
我正在使用 imageMagick binary convert 进行图像转换。当我将小图像调整为大图像并提高图像质量时。
这是我的示例代码:
$img = 'old_image.png';
$path1= 'new_img.png';
exec("convert $img -quality 100% -density 600 -resize 2480x3508 -depth 400 $path1");
当我使用此命令时,它工作正常,它会转换质量损失的大图像。
当我需要通过在exec 命令中使用sharpen 50% 代码来提高质量时,它不会创建正确的图像并且在exec command 中没有响应。
$img = 'old_image.png';
$path1= 'new_img.png';
exec("convert $img -sharpen 99% -quality 100% -density 600 -resize 2480x3508 -depth 400 $path1");
这里我使用的是image magick binary convert。如何达到这种图像质量。任何帮助将不胜感激。
【问题讨论】:
标签: php image imagemagick exec imagemagick-convert