iPad stack file size and image pixellation

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
yeldarb
Posts: 43
Joined: Thu Dec 14, 2017 5:39 pm

iPad stack file size and image pixellation

Post by yeldarb » Wed Feb 28, 2018 4:08 pm

So I'm doing a mobile app that's some classic clocks. I want it to work nicely on the iPad, so the stack size is 768 x 1024.

I did the clock images as 1536 x 2048 PNGs, then scaled them by 1/2 in the stack, and set the resizeQuality to best. My thinking was that when they scaled up on the ipad they wouldn't be pixellated.

However, I discovered two things:

1. Even though the image is actually 1536 x 2048, it's still quite pixellated on the ipad, and
2. The 24 bit uncompressed PNGs make my stack HUGE (for a mobile app) -- 77MB.

I think I can solve the first issue by making the stack's native size 1536 x 2048.

I'm using PNGs because I've got an alpha channel so the user can set the clock's background color. I can use JPEGs but I won't be able to have transparency.

Are there any simple solutions to overcome these issues?

yeldarb
Posts: 43
Joined: Thu Dec 14, 2017 5:39 pm

Re: iPad stack file size and image pixellation

Post by yeldarb » Wed Feb 28, 2018 4:11 pm

Ok, I just came across a thread about referenced (2x) images, so that should work for the ipad. However, that means an even LARGER file, since I apparently need both a 1x and 2x version...

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”