简体   繁体   English

Linux中的批量适合图像(例如GIMP)

[英]Batch fit image in Linux (e.g. GIMP)

How can I batch fit an image under Linux? 如何在Linux下批处理图像?

Please note that I explicitly ask for batch fitting images independent of the actual orientation of the image (eg always fit to 800x600 px max, taken into account different orientations of the images). 请注意,我明确要求独立于图像实际方向的批量拟合图像(例如,考虑到图像的不同方向,始终适合800x600 px max)。

Thanks in advance! 提前致谢!

You can solve this task and many others with imagemagick 您可以使用imagemagick解决此任务以及其他许多任务

For example 例如

 ls *.jpg | xargs -I'{}' convert -resize 800X600 -quality 80 {} {}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM