How to get the original size of a image?

Please follow rules for composing messages: How to post in the Questions category - #7 by Andrew. Don’t you see that the code snippet doesn’t show the # that was initially written?

Since you need to measure original size, it makes no sense to constrain measure with currently available layout space/size.