You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

为何Imagemagick单命令与分两次命令缩放图片结果不同?

为何两次ImageMagick缩放操作的结果不同?

无法理解为何以下两个脚本会产生不同结果,第二个脚本仅是将第一个拆分为两个独立命令。

第一个脚本:

convert lena_std.tif -compress None -resize 160x160 -compress None -resize 32x32 test1.bmp

第二个脚本:

convert lena_std.tif -compress None -resize 160x160 test2.bmp
convert test2.bmp -compress None -resize 32x32 test3.bmp

我使用以下命令检查结果差异:

convert test1.bmp test3.bmp -metric AE -compare diff.bmp

环境信息:

  • 系统:Ubuntu 22.04
  • ImageMagick版本:Version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25

内容的提问来源于stack exchange,提问作者proprit

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.01 14:20:19