mirror of
https://github.com/fumiama/imgsz.git
synced 2026-06-05 00:32:53 +08:00
13 lines
385 B
Markdown
13 lines
385 B
Markdown
# imgsz
|
|
Image size analyzer for jpg/png/gif/webp
|
|
|
|
# Usage
|
|
|
|
```go
|
|
// DecodeSize decodes the dimensions of an image that has
|
|
// been encoded in a registered format. The string returned is the format name
|
|
// used during format registration. Format registration is typically done by
|
|
// an init function in the codec-specific package.
|
|
func DecodeSize(r io.Reader) (Size, string, error)
|
|
```
|