Is there a way in getting this sizes? Using command line. Thanks in advance. and can I ask something good tutorials in Dart?
Asked
Active
Viewed 1,355 times
2 Answers
2
I don't know a built-in feature that allows to do that except readying the content byte-wise and interpreting the values like explained for C++ in C++ How to get the Image size of a png file (in directory)
The image package seems to provide this functionality though. decodePng returns an image that has a width and height property.
Community
- 1
- 1
Günter Zöchbauer
- 558,509
- 191
- 1,911
- 1,506
1
The build-in function decodeImageFromList() can help you with that. Its callback contains an Image that includes the width and height.
Hugo Passos
- 6,455
- 2
- 26
- 45