02-03-2011, 06:33 PM | #1 |
Addict
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
|
significantly enhanced contrast (for djvu files) 90x,60x
A while back I reported a bug on the djvu file viewer:
https://www.mobileread.com/forums/sho...&postcount=134 for those not familiar with the djvu file at all, here is the wiki entry of mobileread for djvu files: https://wiki.mobileread.com/wiki/DJVU In a nutshell: the djvu file is a very advanced format for storing scanned books efficiently. Accordingly many books scanned by google, which are stored on www.archive.org are saved in the djvu file as well. Normally you won't have a white background in those old books (unless it was digitally removed). Now djvu has the option just to display the foreground and just ignore the background. And in the source text it is a single line as I reported in the bug report. I went through the effort in writing to the Guys in Kiev and pointed them to that particular line.. nothing happened. So tonight, I went through the trouble and recompiled the old djvu file viewer from pocketbook-free (which ment, that I had to first recompile all the corresponding djvulibre libraries, which kept me occupied for quite a while). Finally, I changed the line to not render the page as "color" but display either only the foreground or just display the text mask. The results are stunning. What a contrast you can get out of that ebook! In a while I will upload some screenshots. Then you can make your own judgement. At the moment, I've just added the new compiled viewer just to the context menu so that I have the choice to either open it with low contrast in "colour mode" (the default mode. It might be useful if you have primarily picutres in your djvu file and not text) or in the high contrast mode, which is obviously a pleasure to the eye when reading text. And in the end we want to be reading text with our ebook reader, don't we? Is there some interest in the contrast enhanced djviewer app? Shall I upload it as well? EDIT: Newest Version here/ Neueste Version hier/Новейшая версия здесь https://www.mobileread.com/forums/sho...78#post1401078 Last edited by review; 02-17-2011 at 05:34 PM. |
02-03-2011, 07:14 PM | #2 |
Addict
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
|
Evidence :)
On the left side is how a typical djvu file from a scanned book will look on the latest Pocketbook firmware (2.0.4, January 2011).
On the right you will see the result of my adapted version of the djviewer which displays only the foreground mask and this in black/white leading to the highest readability and best contrast. The first file shows that it is not just a black and white filter but true layer selection: it only displays the text layer and not the dark colour of the book cover. The last picture shows clearly how bad the contrast is if the pages are rendered with the "colour" mode on a 8bit grayscale ebook... and the screenshot is looking even better than it does in reality! In reality the text is barely readable. However, if you compare it with the modified version you will see the significant improvement. Those are one and the same file. Just displayed with the native pocketbook viewer (left) and with my viewer (right). Last edited by review; 02-03-2011 at 07:18 PM. |
02-03-2011, 09:10 PM | #3 |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
This is good to know even when using djview on the desktop.
|
02-03-2011, 09:20 PM | #4 | |
Addict
Posts: 285
Karma: 9696
Join Date: Dec 2010
Location: Puerto Rico
Device: Pocketbook 902 Ver 2.1.3, Virgin Nook STR & Rooted Nook Color CM7
|
very NICE!!!! Yes uploaded!!!
Quote:
|
|
02-04-2011, 03:38 AM | #5 |
Wizard
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
fantastic: will be very happy to free ride on you once more if you upload your new app
|
02-04-2011, 04:38 AM | #6 |
Addict
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
|
1) unzip the attached file djviewer-bw.zip
2) copy djviewer-bw.app into the folder system/bin on the internal memory 3) place the test file called textbook.djvu somewhere 4) edit extensions.cfg in system/config and add the bold part: Code:
djvu:@DJVU_file:1:djviewer-bw.app,djviewer.app:ICON_DJVU These steps will make my version of the djvu viewer the default viewer. If you want to open the file with the viewer provided with the pocketbook just select djview from the context menu of the file. The file will open in exactly the same place and with the same zoom and orientation as the file in my version of the viewer. Also, I've attached the screenshots of the attached djvu file. The left is with pocketbooks viewer and the right with my version. That is an improvement of contrast, isn't it? EDIT: Achtung, dies ist nicht die aktuelle Version! Diese ist bereits veraltet. Link zu neuester Version im ersten post. Attention, this is not the most recent version. Please see first post in this thread for a link to the most recent version. Внимание. Эта версия старого. Не загружайте его. Используйте ссылку в пост № 1 https://www.mobileread.com/forums/sho...27&postcount=1 Last edited by review; 02-09-2011 at 07:16 AM. |
02-04-2011, 05:31 AM | #7 |
Enthusiast
Posts: 34
Karma: 1593
Join Date: Jan 2011
Device: pocketbook902
|
wow!!
review, you're restless.. you should get paid by pocketbook for all this hard work, thank you so much. karma on its way. t P.S. sorry for being OT, but I would like to profit on your djvu knowledge: recently I converted a 2000 pages color scanned pdf that pb did not show correctly into djvu format. now pb shows and handles it correctly, but from a 200MB file I got a 500 MB djvu (???). wasn't it a compression format? I used default settings (pdf2djvu GUI on win7), except that I checked no metadata and no hyperlinks. just a couriosity.. |
02-04-2011, 05:50 AM | #8 |
Wizard
Posts: 4,896
Karma: 33602910
Join Date: Oct 2010
Device: PocketBook 903 & 360+
|
This looks great!
I was wondering if maybe this thread should be moved to the sub-forum. It would be easier to find for the newcomers. |
02-04-2011, 07:46 AM | #9 |
Wizard
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
review, PB should definitely pay you!
EDIT: in the future, when we update to the new firmware versions, will we have to modify the config file again? |
02-04-2011, 08:15 AM | #10 |
Member
Posts: 10
Karma: 10
Join Date: Jan 2011
Location: US
Device: PB 902, Nook
|
I noticed the very sharp difference immediately after trying your program. This is one more reason I don't have to pdf'ize my djvu files. Thank you very much. Last edited by jsmith65; 02-04-2011 at 08:51 AM. |
02-04-2011, 09:51 AM | #11 |
Enthusiast
Posts: 40
Karma: 26
Join Date: Dec 2010
Location: Czech Republic
Device: Pocketbook 902
|
This is amazing! Thank you, review…
|
02-04-2011, 12:51 PM | #12 |
Addict
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
|
Generally a firmware update shouldn't delete or change this file... but then, the last one keeps on deleting the games folder.. so you never know what the guys from Kiev add to the next firmware.
|
02-04-2011, 03:11 PM | #13 | |
Addict
Posts: 285
Karma: 9696
Join Date: Dec 2010
Location: Puerto Rico
Device: Pocketbook 902 Ver 2.1.3, Virgin Nook STR & Rooted Nook Color CM7
|
@Review: I know you guys are computers gurus, but I have a question from a non-savy computer: These steps are done when you connect the PB to the computer or need to be done using poterm(like hacking the PB)?
I dont see when I connect the PB to computer, I can see the system file but is empty.. thanks! Quote:
|
|
02-04-2011, 03:24 PM | #14 |
Addict
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
|
I'm sorry for not giving the detailed instructions.
1) if on the internal memory there is only system but no config in system just create an empty folder called config. 2) open notepad and copy, paste the line mentioned above and save it as extensions.cfg on the system/config folder This is not a hack! No poterm or other funny stuff. This is a completly independent application for your pocketbook. Keep me updated how you're getting on and don't hesitate if something still does not make sense. |
02-04-2011, 03:54 PM | #15 | |
Addict
Posts: 285
Karma: 9696
Join Date: Dec 2010
Location: Puerto Rico
Device: Pocketbook 902 Ver 2.1.3, Virgin Nook STR & Rooted Nook Color CM7
|
Thanks!!
Very helpful, i'll do it and let you guys know! GOOD Karma on your way!! Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
remote shell access on 90x,60x | review | PocketBook | 9 | 08-08-2020 09:56 AM |
feature wishlist (via google translate) 90x, 60x | review | PocketBook | 0 | 01-22-2011 05:59 PM |
Remote shell auf 60x/90x | wongdong | PocketBook | 7 | 01-12-2011 12:25 PM |
Logo und Bluetooth (60x/90x) | wongdong | PocketBook | 1 | 01-09-2011 06:37 AM |
Fragen zum 60x/90x | darthvader | PocketBook | 41 | 12-08-2010 10:03 AM |