I want to resize an image to a particular width and height without losing its image quality in iphone.
Asked
Active
Viewed 667 times
0
-
can you please elaborate the question??? – Jean-Luc Godard May 04 '11 at 06:03
-
do you want to scale up or down or what? – Todd Hopkinson May 04 '11 at 06:13
-
i am importing images from ipad photo library and displaying that image in a uiimageview. So i want to resize the selected image for fitting it to the uiimageview – Priyanka V May 04 '11 at 06:18
-
See my solution here it could help you..http://stackoverflow.com/questions/6530573/how-to-crop-uiimage-on-oval-shape-or-circle-shape/10816352#10816352 – Dilip Rajkumar May 31 '12 at 11:00
1 Answers
0
Resize the frame of the image view that contains the image. The image won't change, but it will get smaller. This way you can use the same image for older iPhone screens and Retina Display screens.
If you want to resize the image (so that it takes up less storage space) you'll always lose quality.

nevan king
- 112,709
- 45
- 203
- 241
-
The best option is to use the property uicontentmodescaletoaspectfit – Priyanka V May 24 '11 at 05:29