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

detecting image-type and dimensions, recommended approach #177

Open
gabor opened this issue Apr 12, 2019 · 0 comments
Open

detecting image-type and dimensions, recommended approach #177

gabor opened this issue Apr 12, 2019 · 0 comments

Comments

@gabor
Copy link

gabor commented Apr 12, 2019

i need to get the width/height/image_type of a Buffer. this module works great for this, because the returned structure does have a type attribute that i can use. but it is not documented in the README, so i'm a little worried about using it.
could you please document it in the README?

or, if it's not recommended to use the .type attribute, what alternative approach do you recommend?

(i found issue #29 that might be related to this, and that one recommend using other modules to do the file-type detection, but i need both dimensions and file-type, and it seems suboptimal to parse the Buffer twice. also it was 4 years ago, perhaps things have changed since)

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

1 participant