当前位置: 首页 > news >正文

免费的png打包plist工具CppTextu,一款把若干资源图片拼接为一张大图的免费工具

经常做游戏打包贴图的都知道,要把图片打包为一张或多张大图,要使用打包工具TexturePacker。

TexturePacker官方版可以直接导入PSD、SWF、PNG、BMP等常见的图片格式,主要用于网页、游戏和动画的制作,它可以将多个小图片汇聚成一个大图,等上传的时候,速度会非常快,当然功能远不止这些,在此就不再多讲,大家可以自行百度。

CppTextu是一款免费的图片打包工具,软件小巧易用,主流游戏图片格式,如bmp,jpg,png可以打包为png大图,采用命令行格式,简单的命令如下:

usage: CppTextu --input_dir=string [options] ...
options:-i, --input_dir                  input dir (string)-n, --ouput_name                 output atlas name (string [=out])-o, --ouput_dir                  output dir (string [=./])-p, --base_image_path            base image path (string [=])-f, --image_format               output image format (string [=png])-w, --max_width                  max atlas width (unsigned int [=4096])-h, --max_height                 max atlas height (unsigned int [=4096])-r, --enable_rotate              enable rotate (bool [=0])-s, --force_square               force square (bool [=0])--border_padding             border padding (unsigned char [= ])--shape_padding              shape padding (unsigned char [= ])--inner_padding              inner padding (unsigned char [= ])-b, --reduce_border_artifacts    reduce border artifacts (bool [=0])-t, --trim_mode                  trim pixel alpha less than input value (unsigned char [= ])-e, --extrude                    extrude (unsigned char [= ])-?, --help                       print this message

举例说明:

1.生成单张图片,将456文件夹下的所有图片打包输出到789文件夹,输出文件名称为test,图片最大尺寸4096,命令如下:

CppTextu -i 456 -n test -o 789  -w 4096 -h 4096

此命令仅生成一张最大尺寸(为宽4096,高4096)的图片,最大尺寸取值范围为(1~65535),如果456文件夹中的图片非常多,超过了设置的最大值,可以使用下面的命令,生成多张大图,以此来满足需要。

2.生成多张图片,这里同样使用上面的文件夹来做演示,如下命令:

CppTextu -i 456 -n test%d -o 789  -w 4096 -h 4096

这样便可以生成多张最大尺寸(为宽4096,高4096)的图片,最大尺寸取值范围为(1~65535)

有兴趣的可以下载使用,点击下载。

http://www.lryc.cn/news/140005.html

相关文章:

  • 深层次分析字符数组和字符串的区别是什么?
  • Redis 的主从复制、哨兵模式、集群脑裂
  • Pycharm通过SSH配置centos上Spark环境
  • leetcode做题笔记98. 验证二叉搜索树
  • C# 中Lambda中的的匿名函数
  • 铰接式车辆的横向动力学仿真提供车辆模型研究(Matlab代码实现)
  • Ubuntu20 安装 libreoffice
  • HTTP协议(JavaEE初阶系列15)
  • 机器学习基础10-审查回归算法(基于波士顿房价的数据集)
  • 基于 CentOS 7 构建 LVS-DR 群集。配置nginx负载均衡。
  • 【云原生】Docker的数据管理(数据卷、容器互联)
  • 使用vlc在线播放rtsp视频url
  • copy is all you need前向绘图 和疑惑标记
  • 【附安装包】Vred2023安装教程
  • ASP.NET Core 中的 Dependency injection
  • 优化物料编码规则,提升物料管理效率
  • Jetbrains IDE新UI设置前进/后退导航键
  • 借助frp的xtcp+danted代理打通两边局域网p2p方式访问
  • 2023年高教社杯数学建模思路 - 案例:FPTree-频繁模式树算法
  • 批量根据excel数据绘制饼状图
  • C++头文件和std命名空间
  • 浏览器有哪几种缓存?各种缓存之间的优先级
  • 【C++】list
  • 剪枝基础与实战(2): L1和L2正则化及BatchNormalization讲解
  • C语言学习笔记---指针进阶01
  • 【Go 基础篇】Go 语言字符串函数详解:处理字符串进阶
  • GAN原理 代码解读
  • HTML的label标签有什么用?
  • docker在阿里云上的镜像仓库管理
  • html-dom核心内容--四要素