ipad - 从应用程序中提取图像?

发布于 2024-10-10 17:48:15 字数 68 浏览 3 评论 0原文

有没有办法从我下载的应用程序中提取图像?

我可以在 Android 上执行此操作,但 iPad 上可以吗?

is there a way to extract images from an app I downloaded?

I can do this on Android, but iPad?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

等往事风中吹 2024-10-17 17:48:15

是的。在“音乐/iTunes/移动应用程序”文件夹中找到 app .ipa 文件。在某处复制一份并将其重命名为 .zip 文件。解压缩文件。在 Payload 文件夹中,右键单击 .app 文件并选择“显示包内容”。您现在可以访问该应用程序的所有资源。

PNG 文件将针对 iPhone 进行编码,并且需要进行转换才能在 Mac/PC 上查看。有几个实用程序可以实现此目的。

我已经使用 atPeek 来自动化整个过程,但它不是一个免费的应用程序(我认为它是 5 美元): http://www.at Purpose.com/atPeek/

Yes. Find the app .ipa file in your "Music/iTunes/Mobile Applications" folder. Make a copy somewhere and rename it to a .zip file. Unzip the file. In the Payload folder, right click on the .app file and select "Show Package Contents." You can now access all of the app's resources.

PNG files will be encoded for the iPhone and need to be converted to be viewable on your Mac/PC. There are several utilities for this.

I've used atPeek to automate this entire process, but it isn't a free application (I think it's $5): http://www.atpurpose.com/atPeek/

碍人泪离人颜 2024-10-17 17:48:15

从 iOS SDK 3.2(及更高版本)开始,您可以使用 pngcrush 撤消 iOS PNG 优化。

使用命令:

$ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -revert-iphone-optimizations "~/Path/To/The/Apps.app/Image.png" "~/Path/To/Place/The/Reverted/Image.png"

请参阅 http://developer.apple.com/library /ios/#qa/qa1681/_index.html 了解完整信息。

iOS SDK 可在以下位置免费下载: http://developer.apple.com/devcenter /ios/index.action

您可以下载 pngcrush,而无需从以下位置下载 iOS SDK:http://pmt.sourceforge.net/pngcrush/

Starting with iOS SDK 3.2 (and up) you can use pngcrush to undo the iOS PNG optimizations.

Use the command:

$ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -revert-iphone-optimizations "~/Path/To/The/Apps.app/Image.png" "~/Path/To/Place/The/Reverted/Image.png"

See http://developer.apple.com/library/ios/#qa/qa1681/_index.html for complete info.

The iOS SDK is available for free download at: http://developer.apple.com/devcenter/ios/index.action

You can download pngcrush without downloading the iOS SDK from: http://pmt.sourceforge.net/pngcrush/

吻安 2024-10-17 17:48:15

在最新的 xcode 中,路径为:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush

...因此请确保在中编辑路径png粉碎.png

另外,(对于菜鸟来说),如果由于文件还不是可执行文件而导致权限被拒绝,请执行chmod +x [文件名]

In the latest xcode the path is:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush

... so make sure you edit the path in pngcrush.

Also, (for noobs), if you get permission denied its because the file is not an executable yet, do chmod +x [filename]

兮子 2024-10-17 17:48:15

好吧,Cédric Luthi 有一个很棒的 github 项目可以做到这一点:

https://github.com/0xced /UIKit-Artwork-Extractor

它可以浏览和提取iOS内部图稿以及iTunes中任何ipa文件的图稿。

Well, there's a great github project by Cédric Luthi to do this:

https://github.com/0xced/UIKit-Artwork-Extractor

It can browse and extract the iOS internal artwork as well as the artwork of any ipa file in iTunes.

澜川若宁 2024-10-17 17:48:15
  • 提取 ipa 文件的内容(根据 @TomSwift 的答案)

  • 我编写了这个 PHP cmd 行脚本,该脚本将转换/uncrush目录中的所有图像。这是一个命令行脚本,仅在 OSX 上进行了测试。

参数:

--indir(包含 PNG 的目录)

--outdir(将放置转换后的 PNG 的目录)

--pngcrushpath [可选](pngcrush的路径,如果未指定,则默认为标准)

使用示例:

php uncrush.php --indir /MyIPAs/MyApp.app/ --outdir
/MyIPA/转换/

脚本来源:

<?php

$args = getopt('', array(
    'indir:',
    'outdir:',
    'pngcrushpath::'
));


$inDir = @rtrim($args['indir'], '/');
$outDir = @rtrim($args['outdir'], '/');
$pngCrushPath = isset($args['pngcrushpath']) ? $args['pngcrushpath'] : '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush';

if(!is_dir($inDir)){
    error('INPUT DIR IS NOT VALID - DIRECTORY NOT FOUND ' . $inDir);
}

if(!is_dir($outDir) && !mkdir($outDir)){
    error('OUTPUT DIR IS NOT VALID - DIRECTORY WAS NOT FOUND AND COULD NOT BE CREATED ' . $outDir);
}

if(!is_file($pngCrushPath)){
    error('PNGCRUSH BINARY NOT FOUND');
}

$pngs = glob($inDir . '/*.png');

foreach($pngs as $png){
    msg('CONVERTING - ' . $png);
    convert($png, $outDir . '/' . basename($png));
}

msg('DONE');
exit;


function error($str){
    $f = fopen('php://stderr', 'w');
    fwrite($f, $str . "\n");
    fclose($f);
    exit;
}

function msg($str){
    $f = fopen('php://stdout', 'w');
    fwrite($f, $str . "\n");
    fclose($f);
}

function convert($inPng, $outPng){
    global $pngCrushPath;

    exec($pngCrushPath . ' -revert-iphone-optimizations -q ' . $inPng . ' ' . $outPng);
}

?>

我今天编写了这个脚本供自己使用,我希望它对其他人有用。请随意修改并重新发布到其他地方,但请链接回此答案。

  • Extract the contents of the ipa file (as per @TomSwift's answer)

  • I wrote this PHP cmd line script that will convert/uncrush all images in a directory. It's a cmd line script and is tested on OSX only.

Arguments:

--indir (directory containing PNGs)

--outdir (directory where converted PNGs will be placed)

--pngcrushpath [optional] (path to pngcrush, if not specified it will default to the standard)

Example Use:

php uncrush.php --indir /MyIPAs/MyApp.app/ --outdir
/MyIPAs/Converted/

Script Source:

<?php

$args = getopt('', array(
    'indir:',
    'outdir:',
    'pngcrushpath::'
));


$inDir = @rtrim($args['indir'], '/');
$outDir = @rtrim($args['outdir'], '/');
$pngCrushPath = isset($args['pngcrushpath']) ? $args['pngcrushpath'] : '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush';

if(!is_dir($inDir)){
    error('INPUT DIR IS NOT VALID - DIRECTORY NOT FOUND ' . $inDir);
}

if(!is_dir($outDir) && !mkdir($outDir)){
    error('OUTPUT DIR IS NOT VALID - DIRECTORY WAS NOT FOUND AND COULD NOT BE CREATED ' . $outDir);
}

if(!is_file($pngCrushPath)){
    error('PNGCRUSH BINARY NOT FOUND');
}

$pngs = glob($inDir . '/*.png');

foreach($pngs as $png){
    msg('CONVERTING - ' . $png);
    convert($png, $outDir . '/' . basename($png));
}

msg('DONE');
exit;


function error($str){
    $f = fopen('php://stderr', 'w');
    fwrite($f, $str . "\n");
    fclose($f);
    exit;
}

function msg($str){
    $f = fopen('php://stdout', 'w');
    fwrite($f, $str . "\n");
    fclose($f);
}

function convert($inPng, $outPng){
    global $pngCrushPath;

    exec($pngCrushPath . ' -revert-iphone-optimizations -q ' . $inPng . ' ' . $outPng);
}

?>

I wrote this script for my own use today, I hope it is of use to someone else. Feel free to modify and repost elsewhere, but please link back to this answer on SO.

不必了 2024-10-17 17:48:15

这里有一篇文章如何在 shell 脚本中使用 pngcrush,循环和转换所有图像

希望这有帮助。

Here an article how to use pngcrush in shell script, looping and converting all images founded:

hope this helps.

情定在深秋 2024-10-17 17:48:15

我发现从 iPad/iPhone 应用程序中提取图像并直接从设备访问图像的最佳工具是 iFunBox
访问 http://www.i-funbox.com/ 获取

The best tool I found to extract images from iPad/iPhone apps accessing them directly from the device is iFunBox
Get it at http://www.i-funbox.com/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文