![]() |
#1 |
Enthusiast
![]() Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
|
A question about comic2ltr/epub
Two questions really:
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. |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,271
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
comic2lrf has a --landscape option
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() 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" |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Enthusiast
![]() Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
|
|
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,271
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Doesn't the -w option do that already?
|
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
|
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 |
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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."
|
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() 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 ? |
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
#14 | |
Enthusiast
![]() Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#15 |
Enthusiast
![]() Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
|
Ticket http://calibre.kovidgoyal.net/ticket/1331 created
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |