Locating images - please help!

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Kira
Posts: 2
Joined: Wed Jun 23, 2010 9:20 pm

Locating images - please help!

Post by Kira »

Hello-

When I try to verify my epub file, I get this error message:

"The file index-191_1.png does not appear to be of type image/png."

Does anyone know what that means? Any ideas about how to fix it?

I would really appreciate any suggestions at all. Thanks so much!
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Locating images - please help!

Post by adrian »

Hello,

It's possible that the file really isn't a PNG and someone simply changed its extension to '.png'.
You can extract that png from the epub and then use an image info tool such as this one: http://www.sno.phy.queensu.ca/~phil/exiftool/ to determine the real image type of the file.

If the real image type is JPEG, GIF or SVG(also supported by epub) you can simply change the file extension to that corresponding type.

If it isn't one of these then you will have to convert the image to one of the supported formats. This can be done with an image tool such as GIMP(http://www.gimp.org/).

Regards,
Adrian

PS: If you're using Windows Explorer and want to see and also be able to change file extensions go to Tools -> Folder Options -> View and clear the option "Hide extensions for known file types".
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Kira
Posts: 2
Joined: Wed Jun 23, 2010 9:20 pm

Re: Locating images - please help!

Post by Kira »

Thanks so much for your help! I think something was wrong with the png files, so I replaced them with jpgs. Now I'm getting an error message that says "non-standard image resource 'index-1_1.jpg' of type 'image/jpg'"

Did I make a mistake when updating the file for the jpg? My line of code reads:

<p><img src="index-1_1.jpg" class="calibre1" alt="Frontispiece."/></p>

Thanks!
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Locating images - please help!

Post by adrian »

Hello,

Apparently the type has to be 'image/jpeg' and not 'image/jpg', at least according to epubCheck. I know it seems a bit ridiculous but change the file extension to .jpeg and try again.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply