Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 06-27-2026, 12:49 PM   #16
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 1,136
Karma: 12503116
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Sage, Kobo Libra 2, reMarkable PaperPro
Selective binarization and re-encoding program for use with KoReader

Quote:
Originally Posted by LegeApps View Post
Unless you want to help with the project there is no point to compiling from source. If you did want to help, you would already know how to fix those issues;
You provide 64-bit binaries for Linux which I don’t have, which is why I need to compile from source. It’s that easy.

And how can we trust your app if simply compiling it in rust just fails?
rantanplan is offline   Reply With Quote
Old 06-27-2026, 01:06 PM   #17
embryo
Fanatic
embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.
 
embryo's Avatar
 
Posts: 534
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
The 3rd try didn't work either, but for different reasons.

Normal processing worked OK, but had some white margins I wanted to crop.
Enabling "Crop margins" did cut the pages but cut part of the text too.
So, I let the margins and tried to make it all BW by disabling the "Layout detection".
That did make it BW, but also let almost half the pages blank.
When I used the "CCITT4" the blank pages were black, with "JBIG2" they were white.

Maybe it's not my lucky day..😁 I'll try again tomorrow.
Thanks for your efforts though..🙏

Last edited by embryo; 06-27-2026 at 01:09 PM.
embryo is offline   Reply With Quote
Old 06-28-2026, 04:56 AM   #18
LegeApps
Junior Member
LegeApps began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara HD
Post

Quote:
Originally Posted by embryo View Post
The 3rd try didn't work either, but for different reasons.

Normal processing worked OK, but had some white margins I wanted to crop.
Enabling "Crop margins" did cut the pages but cut part of the text too.
So, I let the margins and tried to make it all BW by disabling the "Layout detection".
That did make it BW, but also let almost half the pages blank.
When I used the "CCITT4" the blank pages were black, with "JBIG2" they were white.

Maybe it's not my lucky day..😁 I'll try again tomorrow.
Thanks for your efforts though..🙏
These are the issues I was just working on, when i noticed you had crop margins selected. with layout mode on it was finicky but I hadn't bothered with it. Now gpt 5.5 fixed it up and it works pretty good. new commit is up and new release is here -

https://github.com/LegeApp/Lege/rele...inux-universal

Can try again when youre ready. Thank you for your motivation. Everything you described should be fixed, unless you are running into OOM issues somehow. But the program has been tested on a Windows sandbox with 4gb ram and integrated VRAM and it works fine there.


Quote:
You provide 64-bit binaries for Linux which I don’t have, which is why I need to compile from source. It’s that easy.

And how can we trust your app if simply compiling it in rust just fails?
OK i didnt know 32bit binaries were needed by anyone. It should be compilable directly from a git clone now. I missed your message about rfd before, that is also a forked repo that wasn't included in the repo and now is.

For anyone reading from MacOS, it is compilable there too, you just need to get the pdfium binary from here

https://github.com/bblanchon/pdfium-binaries

and put it next to the compiled binaries, and grab the other files from the Linux release distribution, then it should work in MacOS too. Let me know if it doesn't. It worked on a macbook in an earlier version just fine.
LegeApps is offline   Reply With Quote
Old 06-28-2026, 10:15 AM   #19
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 1,136
Karma: 12503116
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Sage, Kobo Libra 2, reMarkable PaperPro
Selective binarization and re-encoding program for use with KoReader

No 32-bit binaries needed, I use macOS but there were no binaries that work on Darwin.

Edit
To make it more clear, the existing 64-bit binaries don’t work on macOS.
rantanplan is offline   Reply With Quote
Old 06-28-2026, 11:02 AM   #20
LegeApps
Junior Member
LegeApps began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara HD
Quote:
Originally Posted by rantanplan View Post
No 32-bit binaries needed, I use macOS but there were no binaries that work on Darwin.

Edit
To make it more clear, the existing 64-bit binaries don’t work on macOS.
I wouldnt expect the Linux binaries to work on MacOS...you can recompile for MacOS and it should all work. you need yolo-layout.onnx, sauvola.onnx, eng.tessdata, pdfium.dylib (get from the blanchon github), the docs folder optionally, and it should all work. Just replace the linux executables with the ones you compile. Can even compile in German, which was my tester language for the langauge pack feature after seeing a bunch of activity from there via the Microsoft Store.

Also the Windows release has now been updated.
LegeApps is offline   Reply With Quote
Old 06-29-2026, 02:42 AM   #21
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,826
Karma: 731691
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O, Kobo Libra 2
Quote:
Originally Posted by LegeApps View Post
Don't worry about the code unless you want to help with the project. Otherwise you're an end user, give me end user feedback.
It's just a question about your experiences.
Frenzie is offline   Reply With Quote
Old 06-30-2026, 12:33 PM   #22
embryo
Fanatic
embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.embryo calls his or her ebook reader Vera.
 
embryo's Avatar
 
Posts: 534
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
Tried the newer version. Much improved..
Now the log is telling me the page that got a problem and stopped, so I can fix it and continue.
The Layout detection works better, and it works without it too..👍
The cropping has some problems still, but hopefully will get fixed also.

Some bugs I found:
  • The window maximize button doesn't work
  • When I press the Layout detection button to disable it, it gets disabled but the CCITT4 button is hidden. Resizing the window puts it in the right position
  • When the window is at its smaller size, some help tips are cropped

Also, I want to make a wish.
Can you please add a dark skin (or just invert the colors of the app)?
My eyes are hurt when I use the app at night..🙏
Attached Thumbnails
Click image for larger version

Name:	Lege.png
Views:	63
Size:	76.9 KB
ID:	224137  
embryo is offline   Reply With Quote
Old 07-01-2026, 05:29 AM   #23
LegeApps
Junior Member
LegeApps began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara HD
Quote:
Originally Posted by embryo View Post
Tried the newer version. Much improved..

The cropping has some problems still, but hopefully will get fixed also.
All the new fixes to cropping were done in that new "free aspect" button that you may not have tried, because most of the problems in cropping are from the program trying to keep aspect ratio, which can't be done 95% of the time. So free aspect gives it free reign to crop, so the results are better.

I'll work on all those fixes over the next day or 2. It's hard to find a GUI framework that works well on both Windows and Linux so I am going to keep trying to work with Freya's limitations around object placement.

Dark mode huh...I can add it as a compile-time feature, I don't want a toggle in the GUI itself.

1.46 will have all these fixes plus SIMD coverage for all encoders for less CPU usage and slightly higher speed.
LegeApps is offline   Reply With Quote
Old Today, 03:44 AM   #24
LegeApps
Junior Member
LegeApps began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara HD
Alrighty now 1.4.6 is out and i built the release for Linux universal.

https://github.com/LegeApp/Lege/rele...inux-universal

other OSes can be built from latest commit.

Changes -
-the requested GUI fixes. the layout detection off output type was off the canvas and now it appears correctly. added some hiding logic so it disappears when irrelevant. grayed out the maximize button. no reason to maximize the GUI. added a night mode. i do not like dark modes as a rule. it changes in 4 gradients from day to late night, making the color palette darker. can auto set in the About page.
-3 of 5 encoders (jp2, jbig2, djvu) have considerable SIMD coverage now.
-exposed jbig2 halftone as an option for dithering, it was in the CLI already but i decided it should be in the GUI also now.
- added AppImage support due to a user request. not really finalized yet. could theoretically package it yourself if you modify cargo.toml and collect the files.

now if you excuse me i want to work on other projects for a while. Enjoy your binarizing
LegeApps is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selective connections to Web rmanlee Library Management 4 02-02-2014 03:04 AM
Selective paragraph indent Leonatus Writer2ePub 8 10-31-2013 04:22 PM
Selective preprocess_regexps dasp Recipes 3 12-06-2011 08:52 AM
Selective format conversion? drmathprog Library Management 2 04-19-2011 08:43 AM
Selective exclusion of Hyperlinks SteffenH Sony Reader 4 10-03-2007 06:51 AM


All times are GMT -4. The time now is 02:51 PM.


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