【问题标题】:How to increase quality of image through imagemagick binary convert?如何通过 imagemagick 二进制转换提高图像质量?
【发布时间】: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


    【解决方案1】:

    认为锐化的工作方式类似于模糊,并接受 {radius}x{sigma} 的参数

    你用的是什么版本?也许看看一些与之对应的文档......

    http://www.imagemagick.org/Usage/blur

    【讨论】:

      猜你喜欢
      • 2018-06-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-08
      • 1970-01-01
      • 1970-01-01
      • 2016-06-30
      • 1970-01-01
      相关资源
      最近更新 更多