|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#31 | |||||
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 539
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
The app themes are great!!
Great improvement. Really appreciate it..🙏 Quote:
So, the solution I propose is a drop-down menu (or some buttons if the GUI lib does not provide one), with 3-4 presets like "Cleaner text - Balanced - Cleaner background, or whatever the outcome is likely to be. You know better than us what the values do, so you can name them in a helpful for the user way.. Quote:
95% of the processing is for Preparing Pipeline / Initializing. At this stage only 1 CPU thread is working (I have 8 cores - 16 threads). No GPU work at all. After that its the Render | Infer | Encode stage that takes almost no time at all. At this stage I see some spikes of GPU processing (only for some ms) and then it ends. This is what I mean by "overall the processing was done at the CPU". A great improvement would be if this was utilizing all the available threads, but maybe the library doesn't support this. Quote:
I do thing that an adaptive mode would work better in a book with text and images of different brightness, since it will treat every page differently, but it might need some fine tuning like the book I mentioned. If there is no such option, let's forget it.. Quote:
![]() Quote:
- Cropping is not working again. It crops wherever it likes. Turning the Layout detection Off, improves things sometimes, but not always. I do recall that you said that you're gone set Free Aspect as default. Well, I don't thing it is. Even in the cases that cropping is almost working, all pages have almost the same size, even the ones that don't need to (a lot of blank space leftover) - This is the taskbar icon of the app and this is the app's window icon at dark themed Windows It is almost impossible to be seen. What I usually do for that, is to add a 1-pixel white (or light gray) runaround that is invisible at a light background, but shows the image if the background is dark.. |
|||||
|
|
|
|
|
#32 | ||||||
|
Member
![]() Posts: 14
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara HD
|
https://github.com/LegeApp/Lege/rele...Lege-win64.zip
Quote:
Quote:
Quote:
pdfium - not threadsafe. behind a mutex. cannot be parallelized. my custom onnx runtime can but if pdfium can't, it doesn't matter, everything downstream depends on pdfium. in PNG folder mode, the multithreading works. binarizing and encoding always fan out to threads. Quote:
Quote:
Quote:
But the big change this patch besides the backend stuff is grayscale mode, which should further address the "bad photocopy" complaint (i don't see it that way but thats ok). now there is an MRC based grayscale mode. It cleans the page via a different method than binarizing, then overlays a JBIG2 mask on top of the grayscale, so that the file size is only 20% larger than binarized output, and you get aliased text that looks better. It's not perfect but it's pretty good. Dare anyone to find a better one in a free program. I hope this will be the last version for awhile but something always comes up. Last edited by LegeApps; 07-14-2026 at 04:03 AM. Reason: typo |
||||||
|
|
|
|
|
#33 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 539
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Just downloaded the latest GitHub release, but it's not 1.4.63. The About box says 1.4.62.
- One of my sample file doesn't get converted at all (used to get converted just fine) - Cropping is still non-usable .. didn't check more .. I'll wait for an updated version.. |
|
|
|
|
|
#34 | |
|
Member
![]() Posts: 14
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara HD
|
Quote:
It turns out that existing PDF renderers, including pdfium which Lege uses, are garbage [july 22 edit- it's not garbage, just began from obsolete architecture and never changed]. I believed they were single threaded by nature for some fundamental reason but they aren't. with fable and codex help I have created a stateless PDF renderer, first of its kind, that is currently rendering up to 10x faster than pdfium (this will not hold true in production due to thread contention). It was 2x faster without any optimization at all. This also allows a much better pdf viewer to be created, since every single PDF viewer besides Adobe Acrobat uses pdfium or poppler under the hood. So I am doing that in conjunction. Never been done before. Real things happening. Not just slop over here folks. I've got a 15,000 strong PDF library for regression tests and it isn't failing on a single one now. Also the PDf writer has been replaced with custom code, so after the renderer is in, Lege will be custom end to end. Thanks to this year's models. May have been possible last year to some extent and I just wasn't asking the right questions. Sorry for the more glaring bugs but they should be largely fixed now. I am doing my best to work it all out in the service of something even better and more advanced. Last edited by LegeApps; 07-22-2026 at 06:38 AM. Reason: nuance needed |
|
|
|
|
![]() |
|
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 |