Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 08-05-2017, 08:37 AM   #1
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
PNG in AZW?

I have an epub2 with some png images. I used Sigils's kindlegen plugin (i.e., running Amazon's program) to make an AZW (not including mobi/kf7).

Looking at the resulting AZW in calibre's viewer, it indicates the images have been converted to either gif or jpegs, with some loss of quality and larger size.

So does AZW just not support PNG? I searched for a while, but I couldn't find a definitive statement.
I'm holding out a faint hope that it's an option but not default. A bit pathetic if Amazon doesn't support png 20 years after it was released.

Otherwise, back to making gifs.

Last edited by AlanHK; 08-05-2017 at 08:42 AM.
AlanHK is offline   Reply With Quote
Old 08-05-2017, 10:44 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by AlanHK View Post
So does AZW just not support PNG? I searched for a while, but I couldn't find a definitive statement.
Kindlegen does support .png images, but will convert them if their size exceeds 64-128KB. For details see this related thread.

As jhowell has correctly pointed out, KindleGen does NOT support .png files and will convert them regardless of the file size.

(BTW, you might be able to reduce the file size of your image files with Toxaris's ePub Optimizer.)

Last edited by Doitsu; 08-05-2017 at 02:15 PM.
Doitsu is offline   Reply With Quote
Advert
Old 08-05-2017, 11:43 AM   #3
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Doitsu View Post
Kindlegen does support .png images, but will convert them if their size exceeds 64-128KB.
Hmm. All of my pngs were converted, to gif, or jpeg. None were larger than 13 kB. One png was 3409 bytes, converted to an 8.8kB jpeg.

I used kindlegen plugin, set to make AZW only.
Also tried Kindle previewer, same result with the images.

This all using Kindlegen 2.9

Made another test file with a bunch of PNG, all were converted to jpeg or gif.

I optimise my images with Irfanview, which also lets you target sizes (for jpegs anyway).

Last edited by AlanHK; 08-05-2017 at 11:46 AM.
AlanHK is offline   Reply With Quote
Old 08-05-2017, 12:27 PM   #4
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,497
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
I believe that since the original MOBI format only supports images in GIF, BMP and JPEG formats that kindlegen will convert other formats for backward compatibility with older Kindles.
jhowell is offline   Reply With Quote
Old 08-05-2017, 01:16 PM   #5
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by jhowell View Post
I believe that since the original MOBI format only supports images in GIF, BMP and JPEG formats that kindlegen will convert other formats for backward compatibility with older Kindles.
I was making pure AZW, not mobi or hybrid.
It's all incompatible with old Kindles.

Last edited by AlanHK; 08-05-2017 at 02:50 PM.
AlanHK is offline   Reply With Quote
Advert
Old 08-05-2017, 02:48 PM   #6
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Doitsu View Post
As jhowell has correctly pointed out, KindleGen does NOT support .png files and will convert them regardless of the file size.
That does appear to be the case.
But we only know this from "I believe "? Suck-it-and-see? There really isn't any spec?

I had thought that, aside from the cover, that azw3 was just epub in drag.
But it looks like Amazon chose to screw it up in at least this way.

So, back to the 80s and Compuserve gif for diagrams then.

Last edited by AlanHK; 08-05-2017 at 02:51 PM.
AlanHK is offline   Reply With Quote
Old 08-05-2017, 05:39 PM   #7
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by AlanHK View Post
That does appear to be the case.
But we only know this from "I believe "? Suck-it-and-see? There really isn't any spec?

I had thought that, aside from the cover, that azw3 was just epub in drag.
But it looks like Amazon chose to screw it up in at least this way.

So, back to the 80s and Compuserve gif for diagrams then.
Well at least the patent has expired. Gif is still a good format for diagrams and drawings. Simple and easy to use with good compression.

Dale
DaleDe is offline   Reply With Quote
Old 08-05-2017, 11:36 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC both mobi and azw3 support PNG images. Various older kindle renderers have issues with some PNG images, which is probably why kindlegen doesn't support them. You can use PNG images even in plain MOBI files via an option in the MOBI Output section of the conversion dialog in calibre.
kovidgoyal is offline   Reply With Quote
Old 08-06-2017, 12:36 AM   #9
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by kovidgoyal View Post
IIRC both mobi and azw3 support PNG images. Various older kindle renderers have issues with some PNG images, which is probably why kindlegen doesn't support them.
I think it very likely that these troublesome "renderers" would be limited to mobi/kf7 anyway, so to enforce this conversion for AZW3 is pretty annoying.

Though since the standard setting is to make a hybrid file with both kf7 and kf8, that would mean duplication of some images (I'm assuming that the images are shared between formats; only the text different, I could well be wrong). I'm currently just doing some books to load on my own Kindle. I do occasionally code books for publishing though, so I need to follow the standards Amazon set, implicitly or otherwise.

Many ebook designers do use png in making epubs, then just convert using kindlegen. And their images are silently degraded.

Last edited by AlanHK; 08-06-2017 at 01:48 AM.
AlanHK is offline   Reply With Quote
Old 08-07-2017, 10:51 AM   #10
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by AlanHK View Post
I'm assuming that the images are shared between formats; only the text different, I could well be wrong
An easy thing to experimentally test. Add, say, a 100k JPEG file to your ePub book and then re-convert it. If the images are shared between Mobi7 and KF8, the size of the resulting Mobi file will increase by 100k; if it's not shared, it'll increase by 200k.
HarryT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading a png file dragon123 Kindle Developer's Corner 1 12-06-2013 12:22 PM
Conversion to jpeg/png Fallingwater Calibre 4 07-31-2013 08:15 AM
ERROR: ... .png saytionne ePub 17 10-04-2010 07:13 PM
hotlinking png image bobcdy Sigil 21 09-21-2010 04:56 AM
where to get autorun.xml, icon.png, key.png, lut.bin for PRS-505 obender Sony Reader Dev Corner 2 01-25-2009 03:20 PM


All times are GMT -4. The time now is 01:03 AM.


MobileRead.com is a privately owned, operated and funded community.