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

Image file size on disk #171

Closed
boxdox opened this issue Apr 11, 2024 · 2 comments · Fixed by #173
Closed

Image file size on disk #171

boxdox opened this issue Apr 11, 2024 · 2 comments · Fixed by #173

Comments

@boxdox
Copy link
Contributor

boxdox commented Apr 11, 2024

Hi, I was looking for a way to calculate image size (estimated). I looked into the docs, but couldn't find any function that can help me out. Running on wasm.

@boxdox
Copy link
Contributor Author

boxdox commented Apr 12, 2024

After some research, I guess we can add a function that can calculate an estimated size from the PhotonImage type itself. A naive way. If it's of interest to anyone, I can work on a PR

@boxdox boxdox changed the title Image Size Image file size on disk Apr 12, 2024
@silvia-odwyer
Copy link
Owner

@boxdox That would be great, if you're interested in making a PR, this project is always welcome to new contributions ✅

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

Successfully merging a pull request may close this issue.

2 participants