Would be nice to have such a command. It should return:
- resolution in x
- resolution in y
- aspect ratio (optional, can be calculated)
- extension
- horiz. dpi
- vert. dpi.
Could be very handy when scaling image controls according to the image displayed to prevent blurriness. Probably also other use-cases.