This is a request for the addition of a scripting command to return the resolution of a .paa or .jpg image given a PBO file path. This command may work as follows:
Description: Returns the resolution (width and height) of the .paa or .jpg image specified by the given file path. [0, 0] is returned if the given file path is not an image or does not exist.
Syntax: getImageResolution filepath
- filepath <STRING>
Return Value: Resolution of the image [width, height]. <ARRAY>
getImageResolution "\a3\ui_f\data\igui\cfg\actions\eject_ca.paa"; // -> [64, 64] getImageResolution "\a3\editorpreviews_f\data\cfgvehicles\b_soldier_f.jpg"; // -> [455, 256]