Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PNG quality looks horrible on iPhone

I've created some avatars from vector artwork and saved them as transparent PNGs. If I place the PNGs in interface builder, the quality is perfect. When I place them using code, the edges are horribly jagged, as if the AA has been removed, yet it's the same image. Is there any way to place them with code and maintain nice smooth edges?

I've attached a screenshot below with the iphone ver on the right. Image

Thanks,

Chris

like image 793
edhog Avatar asked Jan 24 '11 07:01

edhog


People also ask

Do PNG images work on iPhone?

Whenever you take an iPhone screen capture, the image is automatically saved to the Camera Roll in PNG format. You can then open it on your phone and view it without the need for any third-party software. No, that was not a misprint. The iPhone supports the PNG format right out of the box.

Can you improve the quality of a PNG?

To change the quality of a PNG, all you have to do is adjust the only option, where you can enter the desired percentage of the new quality. Decreasing values from 99% to 0% reduces the quality of the PNG. Increasing values from 101% to 200% improves the quality of the PNG.

How do I make my PNG high resolution?

Select File > Export as > PNG from the menu. Change the Zoom to a higher percentage, 200% or 300%, for example. Set the other options as you need, then click Export. When you use the PNG image in a document or on the web, restrict its dimensions to effectively display the image at a higher resolution (DPI).

How do you get PNG files to work on iPhone?

In the “Albums” section, tap “Camera Roll” to bring up thumbnails of all the photos and videos saved in your iPhone's photo library. Step 3. Proceed to click on the thumbnail to display the full-sized PNG picture file(s).


1 Answers

Apple compresses pngs using a special optimization formula. It is possible that this formula is causing your images to alter from the original. If you notice a difference that you cannot live with, turn off the optimization by going into your target's info panel and unchecking the Compress PNG files option under the build tab. enter image description here

like image 123
coneybeare Avatar answered Sep 23 '22 02:09

coneybeare