如何使用 ffmpeg 或 irfanview 在新文件中保存图像大小(宽度和高度)?
我希望它像这样保存:
img.png 800 600
img2.png 640 480
....
提前致谢。
最佳答案
如果您准备使用免费且适用于 Windows 的 ImageMagick,您可以通过此工具实现您的目标
identify -format "%f %w %h\n" *png > someFile.txt
输出
baddies.png 500 500
bar.png 4422 480
blobs.png 500 500
board.png 100 100
datebar.png 100 60
explain.png 1769 480
顺便说一句,Windows 记事本和其他可能会更好地使用 Windows 样式的行尾,因此您可以替换
\
n 在我的回答中 \r\n
让他们更快乐。
关于windows - 用批处理在txt文件中写入图像的宽度和高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29028882/