How to get a pic parameters?

Hi there.
I'm know an id and an image name. How can I get a picture parameters like a width/height, origin, X and Y coordinates via the script command?
Code:
$gameScreen.picture(id)._x
$gameScreen.picture(id)._y
$gameScreen.picture(id)._origin
width/height?
why do you even need that?
as a developer you can check those values before you use the picture, and ploan the game accordingly.

It would be much better if you explain what you want to do (using ingame terms of what the player should see) instead of how you want to do "something undescribed". Then we could point out to you how to do what you want.
Code:
ImageManager.loadPicture($gameScreen._pictures[id].name()).width
ImageManager.loadPicture($gameScreen._pictures[id].name()).height
My problem is solved.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-a-pic-parameters.95324/