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

refactor: replace image-size with image-meta #4767

Merged
merged 1 commit into from
Jan 23, 2025
Merged

refactor: replace image-size with image-meta #4767

merged 1 commit into from
Jan 23, 2025

Conversation

TrySound
Copy link
Member

Image-size is barely supported, works only in node.js.

Image-meta is a fork from unjs community, without dependencies, can work in browsers, we already use it inside of ipx.

Image-size is barely supported, works only in node.js.
Image-meta is a fork from unjs community, without dependencies, can work
in browsers, we already use it inside of ipx.
@TrySound TrySound requested review from kof and istarkov January 21, 2025 06:37
@kof
Copy link
Member

kof commented Jan 21, 2025

They copied code from the original package without even mentioning it in the readme ... red flag!!!

@kof
Copy link
Member

kof commented Jan 21, 2025

essentially they just copied one function and made it a separate package that works with streams, image-size has the same function to work with a buffer + has a fs api, that's why you thought its node only

@kof
Copy link
Member

kof commented Jan 21, 2025

image-size also had comits just last month

@kof
Copy link
Member

kof commented Jan 21, 2025

I think this behavior is shameless from image-meta authors

@TrySound
Copy link
Member Author

Mentioned in license, all good
https://github.com/unjs/image-meta/blob/main/LICENSE#L5-L6

@TrySound TrySound merged commit ac90f03 into main Jan 23, 2025
15 checks passed
@TrySound TrySound deleted the image-meta branch January 23, 2025 05:33
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 this pull request may close these issues.

2 participants