ImageRectOffset/Size messes up resolution in-game

Not sure when this issue occurred, but only recently noticed - Using ImageRectOffset and ImageRectSize properties on an ImageLabel mess up the resolution of the image in-game.

Image 1 (my device screen):

Image 2 (emulated device screen):

Image 3 (in-game):

Expected behavior

The image (image 3) resolution should look normal like image 2

1 Like

Hey @EvolutionPower , could you share the asset ids for these images? Additionally, do you know the resolution they were when uploaded? (e.g. 800x400)

Hello,

The image IDs are
104685587435220
103460704373504
95800402561978
85975550853457

Sorry, I don’t remember what resolution they were uploaded in.

Ahh … If you don’t know the resolution though, then what sizes are you specifying for the offset/size?

Offset: 365, 0 (slightly differs between the icons)
Size: 300, 650

I have been experiencing the exact same problem just recently. It seems like some of the images are downscaled in resolution on some mobile devices to preserve memory, but it totally messes up the cropping when using ImageRectOffset/Size