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 detect the image resolution (dpi)? #18

Open
brunolemos opened this issue Dec 19, 2023 · 1 comment
Open

How to detect the image resolution (dpi)? #18

brunolemos opened this issue Dec 19, 2023 · 1 comment

Comments

@brunolemos
Copy link

brunolemos commented Dec 19, 2023

Is there a way to take an image uploaded by the user and get their dpi value in client side (without any server call)?

@asturur
Copy link
Collaborator

asturur commented Dec 19, 2023

There isn't an exported function but i can be easily added.
Instead of setting the bytes we should return the values from them.
This would work only for PNG and JPEG/JFIF not exif and i m not sure for WEB/P

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