PNG works on iPhone but not through computer

0

I downloaded an app from Cydia called "Conway's Game of Life" to both my iPhone and my computer. On the iPhone it renders correctly, but on the computer some of the PNG files of the Cydia .deb archive are corrupt. Their thumbnails are totally black and when opened with a simple program like Windows Photo Viewer they appear blank, but in the correct height and width measures. I looked into that and these signs indicate that they are corrupted (also GIMP couldn't open it saying it's corrupted). The same thing happened when I tried downloading different apps.

I don't actually run the .deb files on my computer, but I unzip them and check their contents (I tried with two programs, 7-Zip and AnytoISO, and they both produced the same corruption results, so problem doesn't lie in the unzipping programs).

Any ideas why and how I can solve this? I need them to display correctly on the computer.

Dimen Shaw

Posted 2012-10-03T10:51:57.977

Reputation: 23

Which computer operating system are you running? Please define "corrupt". You can't post an image yet, but can you post a link to a screenshot showing the corruption. – ChrisF – 2012-10-03T10:59:55.177

I'm running windows 7. Corrupt = the image is all black, and when opened it's just blank, but still maintains the original height and width. – Dimen Shaw – 2012-10-03T11:09:11.940

Edit this information into your question – ChrisF – 2012-10-03T11:09:49.927

1How do you have an IOS app running on a computer? – Journeyman Geek – 2012-10-03T11:24:23.037

Though now I re-read your comment I'm also wondering how you have an iOS/OSX application running on Windows. – ChrisF – 2012-10-03T11:29:10.267

Edited into question. – Dimen Shaw – 2012-10-03T11:33:46.817

Related question from same user: Corrupt PNG files after unzipping

– Karan – 2012-10-03T16:52:30.587

Answers

2

I think I know what the problem is. Both in OS X and iOS, apple does something to png files. Apple optimizes a lot of their files so that the perform better inside of apps. However, according to Cydia and Pod2G, optimized pngs will NOT open correctly on a computer. This is similar to how you can't edit themes if you have optimized them in advanced settings. There is no way to view them correctly.

You can try this though. If you know the location from where you got the app, you can use wget to download the file directly to your computer. You may be able to open it there. However you will need a program such a Cygwin to use the command on Windows. Great program actually.

Josiah

Posted 2012-10-03T10:51:57.977

Reputation: 1 674

So Apple creates non-standard proprietary PNGs? Does anyone know the encoding details? Shouldn't be difficult to develop a PC-based viewer if the format details are known. – Karan – 2012-10-03T16:54:34.373

Most people probably don't know. First of all, only jailbreak users are going to be aware of such a feature and how many of them tried to figure out how Apple's optimization works. If anyone does know, that would be very helpful. – Josiah – 2012-10-03T17:14:05.480

1

Everybody who's looking for information about Apple's png standard: http://iphonedevwiki.net/index.php/CgBI_file_format. The optimization is specific for iPhone's apps.

– Dimen Shaw – 2012-10-04T09:28:21.287