如何在Linux命令行中合并图像? [英] How to merge images in Linux command line?

查看:109
本文介绍了如何在Linux命令行中合并图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试 CSS Sprite 技术,将几个缩略图作为单个图片加载。所以我需要在服务器中离线合并单个文件中的几个缩略图。



假设我有10张相同大小的缩略图。你可以尝试使用ImageMagic ,非常适合创建CSS sprites。有关此问题的一些教程此处。示例

  convert image1.png image2.png image3.png -append result / result-sprite.png 


I would like to try the CSS Sprite technique to load a few thumbnails as a single image. So I need to "merge" a few thumbnails in a single file offline in the server.

Suppose I have 10 thumbnails of the same size. How would you suggest I "merge" them from Linux command line?

解决方案

You can also try ImageMagic which is great for creating CSS sprites. Some tutorial about it here. Example

convert image1.png image2.png image3.png -append result/result-sprite.png

这篇关于如何在Linux命令行中合并图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆