How to find image in ibook

Whenever I try to upload my ibook to itunes connect, I get an error message stating there is a .png file (image file) whos name is too large to be uploaded. I've looked through the book to try to find it but can't seem to find it. I think it might be behind something. Is there any way to find an image or file inside of an ibook just by looking for it by name?

MacBook Pro, Mac OS X (10.7.4), Running Mountain Lion

Posted on Aug 4, 2012 9:21 PM

Reply
3 replies

Aug 5, 2012 2:30 AM in response to winningwashingtonian

I do not know of any built-in option that does support this, but once I found the file names of the image files by opening a copy of the .iba file in a text editor that lets you view binary files, for example in Aquamacs Emacs. The image filenames will clearly stick out, even if all other content is a mess:

For example, searching for jps:

User uploaded file

Or even simpler, use the Terminal to dump the iba-file with "strings" and search with "grep" for ".png":

Enter this line: (replace the red line by the path to a copy of your iba file)

strings ~/Documents/myDocuments/iBooks/Rezepte.iba | grep ".png"

this found:

Classic_Glyph-1.png

Classic_Glyph-1.pngPK


or

strings ~/Documents/myDocuments/iBooks/Rezepte\ copy.iba | grep ".jpg"

Beim Abschiedsdinner, Kobe.jpg

Colored_paper_backgrounds-1.jpg

92837758a-1.jpg

92818816b-1.jpg

Light-parchment-paper_a-1.jpg

Am Lake Chuzenchiko, Nikko.jpg

Weinprobe mit Chianti Classico.jpg ....


To create the pathname to your file you can simply drag it from the Finder into the Terminal window after typing "strings ".


Regards

Léonie

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to find image in ibook

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.