There are currently too many steps involved in getting the resolution of an image. As far as I know there are only two options:
- The 9-slice editor widget available for
ImageLabelandImageButtoninstances provides the resolution of an image. - If you create an EditableImage you can read the ‘Size’ property of the instance.
Neither options are great. Option 1 involves creating an ImageLabel, setting its Image property to the image id, setting ScaleType to Slice and then clicking on the newly revealed SliceCenter property to open the 9-slice editor widget. Option 2 involves waiting until you’re at least 13 years old, then sending Roblox your id card and a photo to ID-verify, then writing code to create a new EditableImage and reading its Size property.
Getting the resolution of an image is a fundamental operation in game development as you may need it to calculate the aspect ratio of an image or to calculate a scaling factor required to display an image at the right size, or just to figure out what resources are too intensive for optimization purposes. And especially on Roblox where most group development takes place in a Team Create session, most developers won’t have the original image files on their PC to check the resolution in their OS’s file explorer.
A similar feature request has been made in the past, but what I am asking for here is a studio-specific way of getting the resolution of an image that can be done in a single action. If I have the id of an image I just want some easily accessible button or field that tells me the resolution of the image, without friction.
