Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-30-2008, 02:27 PM   #1
moggie
Enthusiast
moggie is on a distinguished road
 
moggie's Avatar
 
Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
A question about comic2ltr/epub

Two questions really:
  1. Should I be converting files to epub or ltr, which is the better format.
  2. I don't actually have the sony reader yet, I bought it today but it's a Christmas present ( My wife is buying for me ), however I did take a SD card to the shop to make sure I would be happy with it. I discovered the landscape option but I noticed that comic2ltr didn't seem to be putting enough pixels in and the reader was interpolating. Would it be possible to put enough pixels in the image so that it had to reduce the image for portrait viewing but there was enough pixels so that in landscape I could see them all ?

Ps I told the people at the Sony shop about caliber so they could mention it to other customers who had mac's or Linux systems.
moggie is offline   Reply With Quote
Old 11-30-2008, 02:43 PM   #2
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: 79,531
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I find the 505 does a pretty good job dithering more than 8 shades.It may depend on how many colors the conversion is using. if you convert to LRF, use lrf2lrs to get at the images and see what happened to them. See if the resizing and/or dithering might be what the problem is.
JSWolf is offline   Reply With Quote
Advert
Old 11-30-2008, 02:51 PM   #3
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: 45,271
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
comic2lrf has a --landscape option
kovidgoyal is offline   Reply With Quote
Old 11-30-2008, 06:16 PM   #4
moggie
Enthusiast
moggie is on a distinguished road
 
moggie's Avatar
 
Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
I am using the following code:


Code:
#!/bin/bash
IN=$1
OUT=`echo $IN| sed -e 's/\.cb.$/\.lrf/' `
if [  -f "$OUT" ];
then
        echo skipping $OUT
        exit 0
fi

comic2lrf -w  -l -r  "$IN" -o "$OUT"
What I mean is that the screen is nominally 584x754 pixels, if comic2lrf generated images that where 754x1168 would ( well 754x973 ) would the reader display them correctly in portrait mode but also show them better in landscape as it has enough information to show the picture better ?
moggie is offline   Reply With Quote
Old 11-30-2008, 06:40 PM   #5
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: 45,271
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah you want images that work in both portrait and landscape mode. It's a trade-off. comic2lrf performs rescaling and dithering that (typically) result in an image that has more legible text than the rescaling routines on the reader. It could generate images larger than the screen size and have the reader rescale, but you would lose quality.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-30-2008, 07:06 PM   #6
moggie
Enthusiast
moggie is on a distinguished road
 
moggie's Avatar
 
Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
Quote:
Originally Posted by kovidgoyal View Post
Ah you want images that work in both portrait and landscape mode. It's a trade-off. comic2lrf performs rescaling and dithering that (typically) result in an image that has more legible text than the rescaling routines on the reader. It could generate images larger than the screen size and have the reader rescale, but you would lose quality.
I understand that a large computer can do a better job than a little one . What I want to know is is it possible to generate a lrf which looks okay in portrait mode but looks best in landscape ( where the reader show half a page at one time, I don't know if this is what you call landscape, but I saw the option under settings/advance/orientation ).
moggie is offline   Reply With Quote
Old 11-30-2008, 08:35 PM   #7
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: 45,271
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm not sure why you want that? In any case, it isn't possible with comic2lrf
kovidgoyal is offline   Reply With Quote
Old 12-01-2008, 04:29 AM   #8
moggie
Enthusiast
moggie is on a distinguished road
 
moggie's Avatar
 
Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
Quote:
Originally Posted by kovidgoyal View Post
I'm not sure why you want that? In any case, it isn't possible with comic2lrf
I had a quick thought overnight, why couldn't you use a different profile effectively to optimise for the screen the other way round ?
moggie is offline   Reply With Quote
Old 12-01-2008, 04:37 AM   #9
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: 45,271
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Doesn't the -w option do that already?
kovidgoyal is offline   Reply With Quote
Old 12-01-2008, 04:49 AM   #10
moggie
Enthusiast
moggie is on a distinguished road
 
moggie's Avatar
 
Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
Quote:
Originally Posted by kovidgoyal View Post
Doesn't the -w option do that already?
I don't believe so, run a file though the filter twice. Once with and once with out the -w flag and compare the files sizes. The one for landscape should be significantly bigger as I would expect it to have more pixels in it.

Code:
comic2lrf -w  -l -r  foo.cbz -o foo-w.lrf
comic2lrf  -l -r  foo.cbz -o foo.lrf
-rw-r--r--  1 jb23  jb23  1760754  1 Dec 09:46 foo-w.lrf
-rw-r--r--  1 jb23  jb23  4775249  1 Dec 09:45 foo.cbz
-rw-r--r--  1 jb23  jb23  1760753  1 Dec 09:47 foo.lrf
moggie is offline   Reply With Quote
Old 12-01-2008, 04:56 AM   #11
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: 45,271
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What the -w option does is "Keep aspect ratio and scale image using screen height as image width for viewing in landscape mode."
kovidgoyal is offline   Reply With Quote
Old 12-01-2008, 05:04 AM   #12
moggie
Enthusiast
moggie is on a distinguished road
 
moggie's Avatar
 
Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
Maybe I am not being clear, and remember this is from observations for about 10 minutes.

I want the file to be optimised for landscape, that is to have enough pixels so that in landscape mode then the image will not be resized. I realise that the image will be resized if viewed in portrait mode.

I am sorry if I am not being clear does the above make sense as a request ?
moggie is offline   Reply With Quote
Old 12-01-2008, 05:32 AM   #13
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: 45,271
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah I think I understand now. You want a profile that sets the image width <= screen height and image height <= 2*screen width

Is that right?
kovidgoyal is offline   Reply With Quote
Old 12-01-2008, 05:58 AM   #14
moggie
Enthusiast
moggie is on a distinguished road
 
moggie's Avatar
 
Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
Quote:
Originally Posted by kovidgoyal View Post
Ah I think I understand now. You want a profile that sets the image width <= screen height and image height <= 2*screen width

Is that right?
Yes, although I have a suspicion that it will not be exactly that because of the bits of the screen used for the user interface are slightly different in the two modes.

moggie is offline   Reply With Quote
Old 12-01-2008, 10:57 AM   #15
moggie
Enthusiast
moggie is on a distinguished road
 
moggie's Avatar
 
Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
Ticket http://calibre.kovidgoyal.net/ticket/1331 created
moggie is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iPad ePub transfer Question DaK2 Apple Devices 49 07-03-2012 08:23 AM
PRS-650 epub formatting question scribblenauts Sony Reader 11 11-01-2010 01:47 PM
Epub conversion question supercarl Calibre 2 09-02-2010 11:28 PM
B&N epub question SameOldStory PocketBook 3 05-20-2010 06:42 PM
Probably a dumb ePub question... questionfear ePub 8 11-03-2009 06:33 PM


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


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