如何使用ImageMagic绘制标志

发布于 2025-02-13 19:06:40 字数 569 浏览 1 评论 0原文

我正在尝试从命令行创建标志图像文件,这些文件看起来像这样:

在彼此上方/下方排列5或4个矩形,每个矩形都有不同的颜色(HEX或RGB)

我可以使用此命令来生成具有标志相同尺寸的单个纯色的矩形:

convert -size 1800x900 xc:#990000 flag.png

“在此处输入图像描述”

但是如何在列表中对齐多种不同的颜色?例如:#C72B40,#E7919D,#0A8683,#E7919D

I am trying to create flag image files from the command line that look something like this:
enter image description here

Having 5 or 4 rectangles arranged above/below each other, where each rectangle has a different color (hex or rgb)

I can use this command to generate a rectangle with a single solid color having the same dimensions of a flag:

convert -size 1800x900 xc:#990000 flag.png

enter image description here

But how can I align multiple different colors in say a list? Such as: #c72b40,#e7919d,#0a8683,#e7919d

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

埋葬我深情 2025-02-20 19:06:43

该命令将制作一个简单的水平条纹的标志,均匀间隔...

convert xc:#36399A xc:#EF1897 xc:#FEDF12 xc:#FFFFFF xc:#A77BCA -append -scale 1800x900! +repage flag.png

它在标志中创建每个颜色的单个像素,垂直附加它们,并将结果扩展到1800x900。

This command will make a flag of simple horizontal stripes, evenly spaced...

convert xc:#36399A xc:#EF1897 xc:#FEDF12 xc:#FFFFFF xc:#A77BCA -append -scale 1800x900! +repage flag.png

That creates a single pixel of each color in the flag, appends them vertically, and scales the result to 1800x900.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文