Hi Luca, I have read your thread, in my case the imageview has not fixed dimensions but it is variable depending on screen size as it *anchor horizontally for the full width of the screen.
Recompile an image will result in quality loss with any software but in another other hand i cannot let load a 3872*2592 image, so for that resizing is the way, at least for what i can understand, i am really a rookie about images.
I want to find a way to resize an image proportionally, covering all the width of my view and maintaining the aspect ratio, that formula should to that.
Of course if the image is smaller than the view then it will be stretched, or maybe in this case i could add an *exception to center the image without stretching. ?
Should i make all this calculations by myself or there is another way? i am wrong?