In the compressed APK they're still 790kb. I... uh... I don't know why I said "extracting", earlier. I just meant viewing them in 7-zip. It's Monday. :P
It's mostly an academic issue now anyway, as I've modified our ant script to use 7-zip's commandline interface to manually extract the RGB png's and replace them with the indexed ones. A bit hacky, I know, but it works ok! I'm still curious as to why this is going on, though. I'm not using 1.5; I'm only using 1.1. Is it possible that aapt in 1.1 uses pngcrush as well, and is for some reason changing the colour mode of the pngs from indexed to full RGB? Cheers, Tom On May 4, 3:41 pm, Jeff Sharkey <[email protected]> wrote: > Is the compressed APK size comparable to the 400kB original size? The > 790kB you quoted seems to be the unpacked size. On the device, > resources are kept in their compressed state. Also, I believe that > aapt in 1.5 runs drawables through pngcrush, so I'm not sure why they > are growing. > > j > > > > On Sun, May 3, 2009 at 6:21 PM, piecewise <[email protected]> wrote: > > > I've got ~200 png files in the /res/drawable folder, mostly interface > > and sprite sheet stuff. They're all indexed pngs, and weigh in at a > > grand total of a bit over 400kb. > > > When I run aapt to package them into the apk, their filesize nearly > > doubles. Opening the apk up with 7zip and extracting the drawables > > confirms it: 790kb. > > > Does anyone have any idea why this would be happening? I thought the > > packaging process was meant to compress the pngs, not inflate them! :P > > > Cheers, > > Tom > > -- > Jeff Sharkey > [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

