如何使用批量转换命令,一次干净的正则表达式扫描?
我有一堆像 PHO_123456_12345678.jpg 的图像,我想生成名为 THUMB90_123456_12345678.jpg 的新图像,这是我想使用的命令,但我不知道如何批量执行此操作。
convert SRC.JPG -resize 90x90^ \ -gravity center -extent 90x90 DST.JPG
有没有办法用正则表达式来做到这一点,还是必须是 shell 脚本?
I have a bunch of images that loo like PHO_123456_12345678.jpg and I want to generate new images called THUMB90_123456_12345678.jpg, this is the command I want to use except I don't know how to do this in bulk.
convert SRC.JPG -resize 90x90^ \ -gravity center -extent 90x90 DST.JPG
Is there a way to do it with regular expressions or does it have to be a shell script?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
让我们看看...我认为这应该有效:
Let's see... I think this should work:
它必须是 shell 脚本内正则表达式的组合。
It would have to be a combination of a regular expression [inside] a shell script.