# optipng > PNG文件优化工具。 > 更多信息:。 - 使用默认设置压缩PNG: `optipng {{path/to/file.png}}` - 使用最佳压缩压缩PNG: `optipng -o{{7}} {{path/to/file.png}}` - 使用最快压缩压缩PNG: `optipng -o{{0}} {{path/to/file.png}}` - 压缩PNG并添加交错: `optipng -i {{1}} {{path/to/file.png}}` - 压缩PNG并保留所有元数据(包括文件时间戳): `optipng -preserve {{path/to/file.png}}` - 压缩PNG并移除所有元数据: `optipng -strip all {{path/to/file.png}}`