#dimension #image #tool #landscape #cli-tool #tell #aspect-ratio

app resport

CLI工具,告诉您图像的尺寸或宽高比,或它是否为横向或纵向

1 个稳定版本

1.0.0 2023年1月15日

#805图像

MIT/Apache

10KB
137

resport

一个简单的CLI工具,告诉您图像的尺寸、宽高比或它是否为横向。支持image crate支持的所有图像格式。

$ resport orientation -i "..\wallpaper.jpg"
landscape
$ resport aspect-ratio -i "..\wallpaper.jpg"
16:9
$ resport dimensions -i "..\wallpaper.jpg"
1920x1080

$ resport
CLI tool that tells you an images dimensions, aspect-ratio or if it is landscape

Usage: resport.exe <COMMAND>

Commands:
  dimensions    prints 1920x1080
  width         prints 1920
  height        prints 1080
  aspect-ratio  prints 16:9
  orientation   prints landscape
  is-portrait   prints false
  is-landscape  prints true
  help          Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

安装

通过Cargo

cargo安装 resport

或从GitHub下载版本

许可证

MIT或Apache 2

依赖项

~15MB
~94K SLoC