Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get image width from imaging #147

Open
plftzk opened this issue Jul 31, 2021 · 1 comment
Open

How to get image width from imaging #147

plftzk opened this issue Jul 31, 2021 · 1 comment

Comments

@plftzk
Copy link

plftzk commented Jul 31, 2021

How to get image width from imaging

@bk-oak
Copy link

bk-oak commented Aug 2, 2021

	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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants