https://github.com/pkg6/gorimage
Gorimage resizing, converting, and managing a large number of image files
https://github.com/pkg6/gorimage
Last synced: about 2 months ago
JSON representation
Gorimage resizing, converting, and managing a large number of image files
- Host: GitHub
- URL: https://github.com/pkg6/gorimage
- Owner: pkg6
- License: apache-2.0
- Created: 2025-02-14T02:06:28.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-14T02:11:03.000Z (11 months ago)
- Last Synced: 2025-02-14T03:22:42.408Z (11 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 特点
1.批量图像资源和转换
3.丰富的格式支持:JPG,JPEG,PNG,GIF,BMP,TIF,TIFF and WebP
4.多种重采样滤波器:NearestNeighbor, Box, Linear, Hermite, MitchellNetravali, CatmullRom, BSpline, Gaussian, Lanczos, Hann, Hamming, Blackman, Bartlett, Welch, Cosine
# 命令行
~~~
./gorimage --help
Usage of ./gorimage:
-AutoOrientation
If auto orientation is enabled, the image will be transformed after decoding according to the EXIF orientation tag (if present).
-C string
Process all image files in the directory
-CPUMemUsage int
Medium CPU & Memory cost, default process speed.
-GIFNumColors int
Maximum number of colors used in the GIF encoded image. NumColors ranges from 1 to 256 inclusive, higher is better.
-JPEGQuality int
Encoding parameter for JPG, JPEG images. Quality ranges from 1 to 100 inclusive, higher is better.
-PNGCompression int
Default Compression, No Compression, Best Speed, Best Compression
-TIFFCompression int
Uncompressed, Deflate, LZW, CCITTGroup3, CCITTGroup4
-f string
Processing individual image files
-filter int
Filter example:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
-format int
Format example: 1,2,3,4,5,6
-height int
Output image height
-path string
Output path will remain the same as the original file by default.
-width int
Output image width
~~~