Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有一个充满标志的目录(大约 200 个)。每个标志都有这个边框......上下12px,左右1px......像这样:
我如何使用 imagemagick 来喜欢...从 64x64 到 60x40 裁剪每一个 .PNG 图像
你有自动裁剪:mogrify -trim flag.png. 如果它没有达到您想要的效果,请使用裁剪:(mogrify -crop 60x40+2+12 flag.png即剩下2 个像素)。
mogrify -trim flag.png
mogrify -crop 60x40+2+12 flag.png