09-05-2007, 04:16 PM | #166 | |
Guru
Posts: 714
Karma: 1014039
Join Date: May 2007
Device: Sony PRS-500, Sony PRS-505, Kindle 3, Sony PRS350, iPad 64GB
|
Quote:
The trick of rasterfarian is not just the sharpness that dilation dpi is huge and it's not simply reducing the colors of an image, it remaps it with the 4-color pallette. Also, it uses one of the highest-quality image processing tools available, netpbm. I don't know which one pdflrf uses. I believe you made the sourcecode available at first. You still want to do that? Maybe I can take a look and give you some pointers on where the quality-enhancing stuff are? Last edited by athlonkmf; 09-05-2007 at 04:18 PM. |
|
09-05-2007, 04:30 PM | #167 |
Connoisseur
Posts: 77
Karma: 1393
Join Date: Aug 2007
Location: Santa Monica
Device: prs-500
|
Yeah, I looked into the rasterfarian code (old and new) when writing my tool. As far as image processing goes, I'm using CImg (simply because it is easy to integrate). The process goes like this
generate images at 300 dpi dilate (using CImg) resize (using Cimg's cubic interpolation) convert to gif using (libgd) I believe you are correct in that things can be improved. I was looking at using the lanczos filter to do resizing. Also remapping to the 4-color palette as opposed to using whatever libgd does may be a better thing to do. I'll also add sharpen. I want to get a stable code base before releasing the source. If you are interested I can add a output-debug-image option that will save out bmps at each step of processing. This is probably more useful to you too. |
09-05-2007, 04:37 PM | #168 | |
Guru
Posts: 714
Karma: 1014039
Join Date: May 2007
Device: Sony PRS-500, Sony PRS-505, Kindle 3, Sony PRS350, iPad 64GB
|
Quote:
You might want to use catrom instead nevertheless. One of the best thing of rasterfarian is that it uses multiple processes so it can make optimal use of the available processor. That might a be a good idea for you too? But the reason I'm sticking with rasterfarian must be the TOC-feature. Unfortunately, that is the thing that uses the pdftools which caused the whole ruckus... Also.. converting the images to png and then using some png-optimizer could give even better result. |
|
09-06-2007, 12:26 AM | #169 |
Enthusiast
Posts: 30
Karma: 50
Join Date: Aug 2007
Device: SonyPrs-500/Palm T|X
|
So does that mean that the pdfs that I gave you the sample for cannot be done with your tools cacapee?
|
09-06-2007, 01:09 AM | #170 |
Connoisseur
Posts: 77
Karma: 1393
Join Date: Aug 2007
Location: Santa Monica
Device: prs-500
|
Hi, I just tested your file and fixed the bug. I'll release the fixed version within the next couple of days.
|
09-06-2007, 01:25 AM | #171 |
Enthusiast
Posts: 30
Karma: 50
Join Date: Aug 2007
Device: SonyPrs-500/Palm T|X
|
SWEET!!!!!!! Thanks a bazillion I can't wait to get my hands on it!!!
|
09-06-2007, 01:33 AM | #172 |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Would it be possible to examine a PDF and if you see a page that has a full color image, convert to JPG and not GIF and allow truecolor as an option on the color bits? It seems to me that would give us a better looking image. The Reader does a pretty good job at dithering from a full color image.
|
09-06-2007, 01:55 AM | #173 | |
Guru
Posts: 714
Karma: 1014039
Join Date: May 2007
Device: Sony PRS-500, Sony PRS-505, Kindle 3, Sony PRS350, iPad 64GB
|
Quote:
I've noticed that I can only get like 2000 pageturns when reading manga-lrf on a single charge, but reading normal text I can get 4000, so I assume that rendering the grayscale image takes some extra CPU-power too. Colored images might cause even more powerdrain. |
|
09-06-2007, 02:02 AM | #174 |
Connoisseur
Posts: 77
Karma: 1393
Join Date: Aug 2007
Location: Santa Monica
Device: prs-500
|
Yes, but it'll make the file size larger. I'll add an option to preserve color.
|
09-06-2007, 04:58 AM | #175 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The advantage if using colored images is that the LRF files are likely to be useful in the future as well when/if SONY releases a color version of the reader.
|
09-06-2007, 05:14 AM | #176 | |
Guru
Posts: 714
Karma: 1014039
Join Date: May 2007
Device: Sony PRS-500, Sony PRS-505, Kindle 3, Sony PRS350, iPad 64GB
|
Quote:
It's not like people would just throw their original books away. And I really really doubt that by then, there aren't other readers out who're using another format. |
|
09-06-2007, 05:33 AM | #177 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Reconverting books endlessly, and in this instance for a completely avoidable reason is a waste of time. And even if a new format is being used, SONY will still provide support for reading LRF files on its readers.
|
09-06-2007, 05:41 AM | #178 | |
Guru
Posts: 714
Karma: 1014039
Join Date: May 2007
Device: Sony PRS-500, Sony PRS-505, Kindle 3, Sony PRS350, iPad 64GB
|
Quote:
I rather waste CPU-time than waste space on my 2GB card. At least I can batch the conversions and it works in the background. Converting so it can be used on a future device just wouldn't do it for me. And I doubt my future color reader would be a Sony Reader if there are other brands out then. I'd jump ship easily to a brand that doesn't have lrf. |
|
09-07-2007, 07:22 AM | #179 |
Uebermensch
Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
|
|
11-23-2007, 06:38 AM | #180 |
Junior Member
Posts: 1
Karma: 10
Join Date: Nov 2007
Device: PRS-505
|
No files...
Last edited by pidio; 11-23-2007 at 06:42 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Beta Beta Test of Major New Features | Starson17 | Calibre | 45 | 05-17-2010 10:55 AM |
PRS-500 RasterFarian patched and available again! | NatCh | Sony Reader Dev Corner | 7 | 05-25-2009 05:16 PM |
PRS-500 rasterfarian question | drogo | Sony Reader Dev Corner | 2 | 10-05-2007 10:18 AM |
PRS-500 Crop in RasterFarian 2.5 | ddavtian | Sony Reader Dev Corner | 4 | 08-01-2007 07:40 PM |
RasterFarian V2.5 Beta for Sony Reader released | Alexander Turcic | Sony Reader | 0 | 04-17-2007 02:53 PM |