You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not a heic/heif expert, so I don't know if this is an issue in the image or not. but the issue here seems to be that this image contains 2ispe boxes, while this library assumes that there should only be one such box.
I'm guessing that heic allows storing multiple images, and in this case the first image is a square thumbnail, while the second image is the actual image.
According to this heic does indeed support multiple images. So to fix this issue, we need to figure out which image is the master/primary image, and return dimensions of that.
Using an specific image with resolution 1600x3232 (definitely not square). image-size v1.1.1 reports the dimensions as 512x512.
Reproduce on WSL in Windows 10:
npm install image-size --global
if you haven't alreadyimage-size 2024-01-28_13.43.14.heic
Result:
This is not unique to the command-line. When using image-size as a node library, the dimensions are also reported to be 512x512.
Here is a screenshot of the image in a tool that shows the dimensions of the image:
The text was updated successfully, but these errors were encountered: