Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Reading and Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2007, 09:30 AM   #16
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by andym View Post
2. convert jpegs etc to gif
The problem is that, although gif file sizes vary, the "typical" 64KB gif image from a full color illustration is about 320x320. The gif optimizers I have looked at reduce the file size (for a fixed image size) by reducing the quality of the image. So, why not instead use a format like jpeg which is designed for lossy compression in the first place?

This seems to be what MobiPocket concluded too. Their original approach to importing images larger that ~64KB was to first convert them to .gif and then reduce the number of pixels in the image until the gif was small enough to fit in ~64KB. In addition to small images (itself a loss of image fidelity), you could also get variable image sizes from the same original image size in pixels. MobiPocket's new approach is to leave jpegs in the jpeg format but (presumably) increase their compression without reducing the image size to get them to fit in ~64KB.

There are cases where gif might be superior, e.g. sharp-edged line art with a limited number of colors. These may already be smaller than 64KB, and if not reducing the size of the image may be the best lossy compression technique available.

I am embarrassed that I did not reference the Illustrations in mobipocket thread, particularly since I posted to it. However, its example ebook illustrates the problem. Most of the internal images are ink drawings and are less than 64KB in .png or .gif, but the cover image is a 110KB jpeg. Once again, mobigen without -jpeg produces a much smaller cover image.
Attached Thumbnails
Click image for larger version

Name:	mobigen.gif
Views:	393
Size:	158.6 KB
ID:	6184   Click image for larger version

Name:	mobigen-jpeg.gif
Views:	414
Size:	278.6 KB
ID:	6185  
wallcraft is offline   Reply With Quote
Old 10-12-2007, 09:35 AM   #17
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Wallcraft, exactly what code did you put into the HTML file to get the large image?
JSWolf is offline   Reply With Quote
Advert
Old 10-12-2007, 09:59 AM   #18
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
The original image was a jpeg. The HTML was from the example posted in the Illustrations thread:
Code:
<p><IMG style="WIDTH: 375px; HEIGHT: 500px" hspace=0 
src="BdIm__1.jpg" align=baseline border=0></p>
The 375x500 size is only honored by MobiPocket (according to their documentation) if it reduces the size of the image. In this case it was originally 510x680, and so far as I can tell it is still 510x680 in the -jpeg case. Either this particular size syntax isn't recognized, or the Desktop Reader does not reduce image sizes.

I used the command
Code:
mobigen.exe file.html -c1 -s0 -jpeg
to produce the attached .prc files (one without -jpeg).
Attached Files
File Type: zip RockwellCarey_TomCorbett-01-StandMars_gif.zip (820.0 KB, 348 views)
File Type: zip RockwellCarey_TomCorbett-01-StandMars_jpg.zip (902.5 KB, 328 views)
wallcraft is offline   Reply With Quote
Old 10-12-2007, 10:06 AM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
So if I was to make a PRC file with an image larger then the screen of say some PDA, what would happen to that image?
JSWolf is offline   Reply With Quote
Old 10-12-2007, 10:34 AM   #20
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
What the documentation says is:
Quote:
When images are displayed in the HTML flow, if they are too big to fit the screen (which is usually the case with photos or diagrams for examples), they are automatically resized to fit the PDA screen.
This is the case with the Windows Reader, but I don't have a PDA to test other versions of the software.
wallcraft is offline   Reply With Quote
Advert
Old 10-12-2007, 10:37 AM   #21
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
What you could try however is resize the desktop window and see if it resizes.
JSWolf is offline   Reply With Quote
Old 10-12-2007, 10:43 AM   #22
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by JSWolf View Post
What you could try however is resize the desktop window and see if it resizes.
It does.
Attached Thumbnails
Click image for larger version

Name:	mobigen-jpeg-small.gif
Views:	345
Size:	113.0 KB
ID:	6188  
wallcraft is offline   Reply With Quote
Old 10-12-2007, 10:46 AM   #23
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Nice! Now what I need to do is figure out how to do this so I'll get a nice PRC and a nice LRF (html2lrf) fromt he same HTML file.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML + Images = MOBI without Images SunLight Amazon Kindle 5 08-25-2012 02:27 PM
Creator Does Mobipocket not support graphic images? cyberbaffled Kindle Formats 5 02-09-2010 03:35 AM
Anyone Have mobipocket desktop? Mobipocket server is down. Ireadfreely Kindle Formats 3 10-27-2008 10:29 AM
Images non affichées dans fichier Mobipocket Frogman Cybook 9 08-11-2008 02:03 PM
Mobipocket Reader 4.8 and Mobipocket eNews Creator Mobipocket Reading and Management 1 01-29-2004 08:03 AM


All times are GMT -4. The time now is 05:47 AM.


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