Imagemagick:转换为固定宽度,比例高度 [英] Imagemagick: Convert to fixed width, proportional height

查看:147
本文介绍了Imagemagick:转换为固定宽度,比例高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用imagemagick convert命令,如何将图像调整为固定宽度和比例高度,例如:使用-resize或-thumbnail选项?

Using the imagemagick convert command, how can I resize an image to a fixed width and proportional height e.g. using the -resize or the -thumbnail option?

推荐答案

使用 -resize 100x 将图像的宽度调整为100像素,同时保持高度的宽高比。

Use -resize 100x to resize images to 100 pixels in width while maintaining the height's aspect ratio.

阅读罚款 ImageMagick手册了解详情。

这篇关于Imagemagick:转换为固定宽度,比例高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆