Page 1 of 1
Locating images - please help!
Posted: Wed Jun 23, 2010 9:26 pm
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!
Re: Locating images - please help!
Posted: Thu Jun 24, 2010 11:31 am
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".
Re: Locating images - please help!
Posted: Fri Jun 25, 2010 10:11 pm
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!
Re: Locating images - please help!
Posted: Mon Jun 28, 2010 12:35 pm
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