I’m having problems with the images I’m creating for buttons and the title bar and other UI things. They look fine in Photoshop but when I look at them on the device they are fuzzy/not crisp. The text looks especially fuzzy or blurry.
My images are at 72ppi and saved as 24 bit PNG.
Does Corona compress the images when it builds the app? What am I doing wrong? Help or advice would be appreciated…
[import]uid: 3800 topic_id: 363 reply_id: 300363[/import]
device.png is a screenshot of the app on my device.
emulator.png is a screenshot of the app on the Corona emulator.
example-of-device-native-UI.png is a screenshot of the iPhone photo library app, just for comparison. Take note of the way the characters on the photo library button are much more crisp than on the screenshots above where my button says “Calendar”. The “Calendar” button text is slightly blurry. It’s only slightly, but not unnoticable.
titleBar-background.png is one of the png’s used by the app.
titleBar-button.png is the button png used by the app.
TitleBar-PSD.png is a png of the title bar and button together directly from the PSD.
TitleBar.psd is the original PSD file (in Adobe Photoshop CS4 format).
I just tried an experiment. I doubled the pixel sizes of my PNG’s and then in my code I scaled them back down and now they look great! They’re nice and crisp!
One problem is that some images only had to be scaled in half, e.g.
Without scaling the images appeared gigantic on the emulator screen, almost covering the whole screen. These images were about 640x98 pixels. Also, when I scale and place these images properly in the emulator, they disappear on the device. So this solution on seems to work in the emulator… [import]uid: 3800 topic_id: 363 reply_id: 644[/import]
The top title bar image is from Photoshop. The bottom is from a screenshot of my app on the device (iPhone).
The bottom image looks a little fuzzy. The white text is a little grey and there’s areas near the top of the bar where there’s a 1px line in the photoshop image that looks like it’s been anti-aliased, so it appears thicker in the device image.
I think this is still broken (I’m using absolute positioning and still having the same problem). Any official word as to what resolution we should build images at?
Cheers,
Marcus [import]uid: 4543 topic_id: 363 reply_id: 757[/import]
I have found that you can never have good clean images working at 72 ppi -I usually work real size at 300 ppi in Photoshop and then bump down to 160 ppi to export as pngs, and they are all crystal clear.
My thinking is that its better to work at higher rez since I may want to port all these to the larger iTablet or Android screens later, and you can always go down in resolution, but never up.
-Will [import]uid: 2862 topic_id: 363 reply_id: 762[/import]
I have blurriness problems as well. Related not just to PNG, it seems like like it might be related to setReferencePoint()
When I leave it the default “center” text and images look crisp. When is setReferencePoint to upper left, things get blurry. I have some sample images.
Once I started using even pixel dimensions my images started clearing up… even the standard Photoshop saved 72ppi 24-bit pngs. [import]uid: 4621 topic_id: 363 reply_id: 5137[/import]
72 dpi works fine, just follow my old post, odd pixel sizes for height or width can cause the image to render blurred.
It’s because each pixel in the image is being drawn over 2 half pixels. This can make the png look funny.
I always do even pixel sizes now, if my image can’t resize to the width I need I just leave a 1px transparent row at the bottom
[import]uid: 5354 topic_id: 363 reply_id: 5138[/import]