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
In addition to returning a size, it would be useful to return the image type (PNG, JPG, etc).
The implementation of ImageSizeGetter.getSize seems to cycle though each image format, to check if it's a valid image, and then return the size for the first valid one. It would be useful to also return the image type, so this can be used by the caller.
Why
To validate the image is the expected file format, or to just determine the file format.
The text was updated successfully, but these errors were encountered:
Sorry for the long time no reply.
The problem is, images come in many formats, and the library provides custom decoders, so I can't predict all types.
In this case, I can't use enumerations to define all image types, and using string I can't enjoy strong typing when using.
Platforms
dart
Description
In addition to returning a size, it would be useful to return the image type (PNG, JPG, etc).
The implementation of
ImageSizeGetter.getSize
seems to cycle though each image format, to check if it's a valid image, and then return the size for the first valid one. It would be useful to also return the image type, so this can be used by the caller.Why
To validate the image is the expected file format, or to just determine the file format.
The text was updated successfully, but these errors were encountered: