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 04-13-2018, 04:48 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
Control image conversion

I'm making an ePub with a largish map.
Using Sigil to edit and then create AZW3 with the Kindlegen plugin to read on a PW3.

Original format was JPEG, which was about 500 KB.

I loaded it in Photoshop and sharpened and cleaned it it a bit and saved to a GIF file. Reduced the colour depth to 8 colours, which was all that was necessary, getting a 200 kB GIF that looks better than the original JPEG.
(Would have used PNG, but I know Kindlegen doesn't support that.)
Normally I thought Kindlegen will just pass through GIFs unaltered, but it converted my map into a 120 kB JPEG (looking at the AZW using Calibre to see the resources in it).

Also this JPEG was resized from the original 1456x2004 to 934x1285 px.

Why the **** is it doing this? Is the image too big, in kB or pixels?

With 300 dpi Kindles like the PW3 having 1440x1080 screen, maybe the idea is that larger images are just redundant. But if I zoom and pan I can use much larger images at full resolution--if they let me. If you use a Kindle app on a tablet, etc, you can view much larger high res images.

Surely, for instance, art books, graphic novels would demand high quality images. How do they get them through?

Last edited by AlanHK; 04-13-2018 at 07:29 AM.
AlanHK is offline   Reply With Quote
Old 04-13-2018, 09:44 AM   #2
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,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
What version of kindlegen are you using?
What options does the plugin apply when it runs kindlegen?
Can you post the conversion log?

I did a test using kindlegen(Windows) V2.9 build 1029-0897292 with an EPUB containing a 3MB 1800x2681 GIF image. The resulting MOBI has it converted to a 3MB JPEG, still at 1800x2861 resolution.
jhowell is offline   Reply With Quote
Advert
Old 04-13-2018, 10:30 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 jhowell View Post
What version of kindlegen are you using?
What options does the plugin apply when it runs kindlegen?
Can you post the conversion log?
Amazon kindlegen(Windows) V2.9 build 1029-0897292
OPTIONS:
X Don't add source files
Compression:v2
X Verbose output
_ Western
_ Convert JPEG to GIF
X Add fake ASIN
X Generate AZW3
_ Generate Mobi7
X Generate Thumbnail 450 px


LOG:

Only mention of the file is:
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\map-8.gif"
same as for all the other image files.

Spoiler:
Running KindleGen ... please wait

************************************************** ***********
Amazon kindlegen(Windows) V2.9 build 1029-0897292
A command line e-book compiler
Copyright Amazon.com and its Affiliates 2014
************************************************** ***********

Info:I9007ption: -c2: Kindle Huffdic compression
Info:I9018ption: -donotaddsource: Source files will not be added
Info:I9014ption: -verbose: Verbose output
...

Info(prcgen):I1002: Parsing files 0000053
Info(prcgen):I1003: Parsing file URL: Bkepub3_fm-sup_r1.xhtml
Warning(htmlprocessor):W28004: Absolute value specified for CSS property in content is not supported by Kindle readers. Please use % or refer Kindle Publishing Guidelines about usage of property: 'line-height' in file: \OEBPS\Styles\Style.css
Warning(htmlprocessor):W28001: CSS style specified in content is not supported by Kindle readers. Removing the CSS property: 'max-height' in file: \OEBPS\Styles\Style.css
Warning(htmlprocessor):W28001: CSS style specified in content is not supported by Kindle readers. Removing the CSS property: 'max-width' in file: \OEBPS\Styles\Style.css
Warning(htmlprocessor):W28004: Absolute value specified for CSS property in content is not supported by Kindle readers. Please use % or refer Kindle Publishing Guidelines about usage of property: 'line-height' in file: \OEBPS\Styles\Bkepub3_css_r1.css
Info(prcgen):I1003: Parsing file URL: Bkepub3_tp_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_cop_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_toc_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_map_r1.xhtml
Info(cssparser):I10004: @rules other than @import, @charset and @font-face are not supported.
Info(prcgen):I1003: Parsing file URL: Bkepub3_p001_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c001_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c002_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c003_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c004_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c005_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c006_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c007_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_p002_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c008_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c009_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c010_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c011_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c012_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c013_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c014_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c015_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c016_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c017_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_p003_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c018_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c019_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c020_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c021_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c022_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c023_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c024_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c025_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c026_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c027_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c028_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_p004_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c029_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c030_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_c031_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_epl_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_ded_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_ack_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_app_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_app1_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_app2_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_app3_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_app4_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_app5_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_app6_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_app7_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_adc_r1.xhtml
Info(prcgen):I1003: Parsing file URL: Bkepub3_ata_r1.xhtml
Info(prcgen):I1015: Building PRC file
Info(prcgen):I1006: Resolving hyperlinks
Info(prcgen):I1010: Writing hyperlinks
Info(prcgen):I1008: Resolving start reading location
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_001_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_002_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_001_cvi.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_006_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\map-8.gif"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_007_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_008_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_009_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_010_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_011_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_012_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_013_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_014_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_015_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_016_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_017_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_018_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_019_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_020_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_021_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_022_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_023_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_024_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_025_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_026_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_027_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_028_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_029_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_030_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_031_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_032_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_033_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_034_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_035_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_036_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_037_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_038_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_039_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_040_r1.jpg"
Info(prcgen):I1013: Converting and merging image file "\OEBPS\Images\Bkepub3_041_r1.jpg"
Info(prcgen):I1014: Converting and merging media file "C:\WINDOWS\TEMP\mbt7E2_4_D_16_7_1E_69_173C_16E0_C 20F.tmp"
Info(pagemap):I8000: No Page map found in the book
Info(prcgen/inflections):I1012: Compiling inflections
Info(prcgen):I1019: Building index into record 0000000 Index name: $NCX
Info(prcgen):I1026: Unicode index using utf-8 encoding
Info(prcgen):I1045: Computing UNICODE ranges used in the book
Info(prcgen):I1046: Found UNICODE range: Basic Latin [20..7E]
Info(prcgen):I1046: Found UNICODE range: General Punctuation - Windows 1252 [2018..201A]
Info(prcgen):I1046: Found UNICODE range: Latin-1 Supplement [A0..FF]
Info(prcgen/compress):I4001: Compiling source text for compression (4096 passes max). Pass 0000001
Info(prcgen/compress):I4001: Compiling source text for compression (4096 passes max). Pass 0000002
Info(prcgen/compress):I4001: Compiling source text for compression (4096 passes max). Pass 0000004
Info(prcgen/compress):I4001: Compiling source text for compression (4096 passes max). Pass 0000008
Info(prcgen/compress):I4001: Compiling source text for compression (4096 passes max). Pass 0000016
Info(prcgen/compress):I4001: Compiling source text for compression (4096 passes max). Pass 0000032
Info(prcgen/compress):I4001: Compiling source text for compression (4096 passes max). Pass 0000064
Info(prcgen/compress):I4001: Compiling source text for compression (4096 passes max). Pass 0000128
Info(prcgen/compress):I4001: Compiling source text for compression (4096 passes max). Pass 0000256
Info(prcgen/compress):I4001: Compiling source text for compression (4096 passes max). Pass 0000332
Info(prcgen/compress):I4002: Compression pass 0000001
Info(prcgen/compress):I4002: Compression pass 0000002
Info(prcgen/compress):I4002: Compression pass 0000003
...

Info(prcgen/compress):I4002: Compression pass 0000011
Info(prcgen/compress):I4006: Text compressed to (in % of original size): 33.04%
Info(prcgen/compress):I4007: Compression dictionary statistics: 000033484 bytes 000002691 entries
Info(prcgen):I1044: Uncompressed record size: 0004096
Info(prcgen/compress):I4005: Advanced compression successful (decoded and verified).
Info(prcgen):I2001: Final stats - TEXT: 000425858 bytes 000000319 records
Info(prcgen):I2002: Final stats - PICTURES: 000000000 bytes 000000000 records
Info(prcgen):I2003: Final stats - INDEXES: 000002856 bytes 000000003 records
Info(prcgen):I2004: Final stats - TRAILING: 000002236 bytes 000000316 records
Info(prcgen):I2005: Final stats - FRAMES: 000000088 bytes 000000002 records
Info(prcgen):I2006: Final stats - OTHER: 003427086 bytes 000000047 records
Info(prcgen):I2007: Final stats - TOTAL: 003858124 bytes 000000371 records
Info(prcgen):I1039: Final stats - text compressed to (in % of original size): 33.04%
Info(prcgen):I1040: The document identifier is: "Bk"
Info(prcgen):I1041: The file format version is V6
Info(prcgen):I1031: Saving PRC file
Info(prcgen):I1032: PRC built successfully
Info(prcgen):I1016: Building enhanced PRC file
Info(prcgen):I1007: Resolving mediaidlinks
Info(prcgen):I1011: Writing mediaidlinks
Info(prcgen):I1009: Resolving guide items
Info(prcgen):I1014: Converting and merging media file "\OEBPS\Images\Bkepub3_001_r1.jpg"
Info(prcgen):I1019: Building index into record 0000000 Index name: $FRAG
Info(prcgen):I1019: Building index into record 0000003 Index name: $SKEL
Info(prcgen):I1019: Building index into record 0000005 Index name: $GUIDE
Info(prcgen):I1019: Building index into record 0000008 Index name: $NCX
Info(prcgen):I1029: The default lookup index is: "$FRAG"
Info(prcgen/compress):I4001: Compiling source text for compression (4096 passes max). Pass 0000512
...
Info(prcgen/compress):I4006: Text compressed to (in % of original size): 34.75%
Info(prcgen/compress):I4007: Compression dictionary statistics: 000034500 bytes 000002839 entries
Info(prcgen):I2001: Final stats - TEXT: 000474697 bytes 000000338 records
Info(prcgen):I2003: Final stats - INDEXES: 000014848 bytes 000000011 records
Info(prcgen):I2004: Final stats - TRAILING: 000002332 bytes 000000335 records
Info(prcgen):I2005: Final stats - FRAMES: 000000148 bytes 000000003 records
Info(prcgen):I2006: Final stats - OTHER: 000010727 bytes 000000004 records
Info(prcgen):I2007: Final stats - TOTAL: 000502752 bytes 000000356 records
Info(prcgen):I1039: Final stats - text compressed to (in % of original size): 34.75%
Info(prcgen):I1041: The file format version is V8
Info(prcgen):I15000: Approximate Standard Mobi Deliverable file size : 0003750KB
Info(prcgen):I15001: Approximate KF8 Deliverable file size : 0003809KB
Info(prcgen):I1036: Mobi file built successfully


************************************************** ***********
kindlegen warnings:
************************************************** ***********
Warning(htmlprocessor):W28004: Absolute value specified for CSS property in content is not supported by Kindle readers. Please use % or refer Kindle Publishing Guidelines about usage of property: 'line-height' in file: \OEBPS\Styles\Style.css
Warning(htmlprocessor):W28001: CSS style specified in content is not supported by Kindle readers. Removing the CSS property: 'max-height' in file: \OEBPS\Styles\Style.css
Warning(htmlprocessor):W28001: CSS style specified in content is not supported by Kindle readers. Removing the CSS property: 'max-width' in file: \OEBPS\Styles\Style.css
Warning(htmlprocessor):W28004: Absolute value specified for CSS property in content is not supported by Kindle readers. Please use % or refer Kindle Publishing Guidelines about usage of property: 'line-height' in file: \OEBPS\Styles\Bkepub3_css_r1.css

ASIN:XX added

Thumbnail copied to: G:/ebooks/-AZW\thumbnail_X_EBOK_portrait.jpg
AZW3 file copied to G:/ebooks/-AZW\X_X.azw3

Please click OK to close the Plugin Runner window.


Attached the GIF.
I inserted it on its own page using "InsertImageSVG" plugin, but I also tried just:

Code:
<body>
<div>
<img alt="map-8" src="../Images/map-8.gif"/>
</div>
</body>
Same result.
Attached Thumbnails
Click image for larger version

Name:	map-8.gif
Views:	263
Size:	215.7 KB
ID:	163470  

Last edited by AlanHK; 04-13-2018 at 10:33 AM.
AlanHK is offline   Reply With Quote
Old 04-13-2018, 05:35 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,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
I tried with your image and it works as expected for me.

Did you look for the image in the HDImages folder?
jhowell is offline   Reply With Quote
Old 04-13-2018, 10:57 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 tried with your image and it works as expected for me.

Did you look for the image in the HDImages folder?
That prodded me to use KindleUnpack rather then Calibre's viewer to extract the files.

And you're right: in the unpacked files the map is named as a jpeg, but is actually a gif 6 bytes larger than the source. (Using IrfanView to get the specs.)

Quote:
Originally Posted by jhowell View Post
I did a test using kindlegen(Windows) V2.9 build 1029-0897292 with an EPUB containing a 3MB 1800x2681 GIF image. The resulting MOBI has it converted to a 3MB JPEG, still at 1800x2861 resolution.
-- I think you'll find that is also really a GIF.

So, sorry about that. I had the habit of using Calibre's ebook viewer to check out conversions, but it seems my assumption that it just unpacked and then viewed the file was wrong.

The reason I was checking this out is that the AZW was rather smaller than the epub, when it's usually the other way.

So I looked at the other unpacked AZW images, and found that while the gif was the same, for some jpegs compression had been changed.
e.g.
In the ePub -- 87 kB, quality 98
in the AZW -- 42 kB, quality 80.

The cover image though was the same spec, same size, quality still 98.

So, unless I've made another dumb assumption, it looks like Kindlegen does leave GIFs as-is, and (always?) cover images, but other jpegs may recompress.
And I found earlier that PNGs are converted to either GIFs or JPEGs, which is why I started to use GIFs rather than PNG for most diagrams and maps to keep them sharp.

Last edited by AlanHK; 04-13-2018 at 11:10 PM.
AlanHK is offline   Reply With Quote
Advert
Old 04-19-2018, 10:03 AM   #6
graycyn
Wizard
graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 11250344
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Forma, Kindle Oasis 2, Sony PRS-T2
Quote:
Originally Posted by AlanHK View Post
That prodded me to use KindleUnpack rather then Calibre's viewer to extract the files.

And you're right: in the unpacked files the map is named as a jpeg, but is actually a gif 6 bytes larger than the source. (Using IrfanView to get the specs.)


-- I think you'll find that is also really a GIF.

So, sorry about that. I had the habit of using Calibre's ebook viewer to check out conversions, but it seems my assumption that it just unpacked and then viewed the file was wrong.

The reason I was checking this out is that the AZW was rather smaller than the epub, when it's usually the other way.

So I looked at the other unpacked AZW images, and found that while the gif was the same, for some jpegs compression had been changed.
e.g.
In the ePub -- 87 kB, quality 98
in the AZW -- 42 kB, quality 80.

The cover image though was the same spec, same size, quality still 98.

So, unless I've made another dumb assumption, it looks like Kindlegen does leave GIFs as-is, and (always?) cover images, but other jpegs may recompress.
And I found earlier that PNGs are converted to either GIFs or JPEGs, which is why I started to use GIFs rather than PNG for most diagrams and maps to keep them sharp.
I have noticed that when I convert my home-rolled ePubs with Kindle Previewer, the JPEGs are most definitely being compressed further! Greyscale images where I have carefully cleaned up the backgrounds to pure white will, after conversion, and viewed on a tablet in the Kindle app, show annoying grey speckles in what *should* be a pure white background. Said images are also considerably softer looking than they should be.

Whereas the ePub retains the image quality, and backgrounds remain pure white even with max brightness set on either my iPad Pro or Pixel C tablets. And images remain sharp and crisp!

If anyone knows a way to prevent the rather profound loss of image quality when converting to Kindle dual mobi format, I would love to know about it!

The difference is pretty sad really, and can easily be noticed between my Kobo Aura ONE and Kindle Voyage as well as on the tablets.

Sent from my Pixel C using Tapatalk
graycyn is offline   Reply With Quote
Old 04-19-2018, 05:09 PM   #7
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Hmmmm, could it be the PNGs are lower than 8-bit?

I remember years ago, GrannyGrump's post about 4-bit PNGs being buggy in ADE:

https://www.mobileread.com/forums/sh....php?p=2633151

and I know I ran across some oddities with Kindlegen with my Formulas to PNG (mostly with transparent backgrounds):

https://www.mobileread.com/forums/sh...d.php?t=223254

I detailed my method of saving as 17 colors, so it forced any sort of PNG compression/optimizers to treat it as 8-bit PNGs.

And from what I remember... MAAAANY YEARS ago, Kindlegen didn't support PNGs. Many years back, Kindlegen added PNG support, and sometimes did Color->JPG + Grayscale/Indexed->GIF... and when I last tested a few years back, my PNGs were not converted to JPG or GIF by Kindlegen.

Thought 1: Hmmmm could it also be a regression in Kindlegen recently? I must admit, I haven't done a lot of conversions with images lately (~the past year and a half).

Thought 2: I haven't poked around in these images specifically... do you have an Alpha channel or a strange Indexed PNG with transparency in it?

Thought 3: Taking another stab in the dark here... but could it also be PNGs over a certain filesize get compressed by Kindlegen? See if there's a limit of something like 256 KB where the PNG won't get converted.

Last edited by Tex2002ans; 04-19-2018 at 05:23 PM.
Tex2002ans is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Size Control In Reader odt >> ePub Foothills Conversion 5 08-24-2012 09:58 AM
How to control picture resize during conversion? DrChiper Calibre 5 12-22-2011 01:08 PM
How to control the font size during conversion? Japes Conversion 9 07-11-2011 03:16 PM
Control image quality Peter_BE Calibre 1 12-15-2010 08:50 AM
Help please! on image control paulgodard Workshop 14 12-25-2009 06:13 PM


All times are GMT -4. The time now is 07:08 AM.


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