Extracting images from Apps in the AppStore

本文介绍了一种从iOS应用程序中提取原始图像的方法。通过使用特定工具解除Xcode在编译过程中对图像进行的优化,可以恢复图像到其原始状态。文章提供了一个名为appcrush的Ruby脚本,该脚本能自动化整个过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://idevrecipes.com/2010/12/06/extracting-images-from-apps-in-the-appstore/

 

 

To recreate features of existing apps, we can use a big clue: the images an app uses. This will often give us insight into how the feature was built.

You can right click on an App in iTunes and see the app’s .ipa file.

An .ipa file is just a zip file that is easily expanded resulting in a Payload folder that has the actual .app.

But we can’t just double click on the images and open them in something like Preview.app.

During app compilation Xcode optimizes all images so they aren’t readable by standard tools like Preview.app.

We need to undo the optimization and restore the images back to their original form.

The tool that the SDK uses to optimize the images is pngcrush and starting with the 3.2 SDK, Apple added the ‘revert-iphone-optimizations’ option to undo this optimization.

I wrote a quick ruby script called appcrush that automates this process.

Point appcrush at an .ipa file from the iTunes AppStore and it:

  • expands the zip file
  • finds all the images
  • runs pngcrush with the revert-iphone-optimizations option on each image
1appcrush '/Users/boctor/Music/iTunes/Mobile Applications/iBooks.ipa'

You can find appcrush here: https://github.com/boctor/idev-recipes/tree/master/Utilities/appcrush

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值