Open plftzk opened 3 years ago
How to get image width from imaging
img, err := imaging.Open(filepath.Join(origImgPath, fileInfo.Name()), imaging.AutoOrientation(true)) if err != nil { return err } b := img.Bounds() width := b.Max.X height := b.Max.Y
How to get image width from imaging