Page MenuHomeFeedback Tracker

Command request: A command to get image/texture meta data
Closed, DuplicatePublic

Description

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.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

R3vo created this task.Jun 10 2021, 2:08 PM
BIS_fnc_KK changed the task status from New to Assigned.

no promises

getTextureInfo "texture"
returns [w, h]
rev 147746

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jun 11 2021, 12:38 PM
BIS_fnc_KK changed the task status from Assigned to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.