03-25-2021, 07:54 PM | #226 |
BLAM!
Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Released v1.23.2!
Besides some developer documentation updates, this ones includes a couple of significant fixes, including a massive OOB write in the OT codepath when horizontal padding was enabled, which could cause Very Bad Things (TM) to happen. I also finally squashed a nasty line-fitting issue in the OT codepath. |
03-25-2021, 10:17 PM | #227 | |
Evangelist
Posts: 476
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
|
Quote:
The docs included in the binary are very complete, that's for sure though |
|
Advert | |
|
07-11-2021, 02:08 PM | #228 | |
Wizard
Posts: 1,188
Karma: 4236616
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Quote:
Can you please explain these options a bit more? 1) I tried dithering manga files produced by Kindle Comic Converter with Riemersma and Floyd-Steinberg dithering. I feel like Floyd-Steinberg produces slightly more grainy images overall, but the gradient look much smoother. Is it acceptable by Kindle? 2) Do I have to apply all these options if I only want to add dithering? For example, can I skip filtering? What's the difference between resize and extent? What is gravity? 3) Some of my input files are actually jpg. Should I still convert them to png? Is it bad if I save them as jpg? 4) Why are there two mentions of colorspace? First is Lab, another one is sRGB 5) I have a different one-liner to convert images (I think I found it when I was converting screensavers). It has "-define png:color-type=0 -define png:bit-depth=8". Should I apply these too? |
|
07-11-2021, 02:33 PM | #229 |
Wizard
Posts: 1,188
Karma: 4236616
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
I found about Riemersma here: https://www.compuphase.com/riemer.htm
It mentions that better results are obtained with an “optimized palette”. Do you know what this would be? |
07-11-2021, 04:41 PM | #230 |
BLAM!
Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
1/ Personal preference, FS is perfectly fine, I just tend to prefer Riemersma, as it tends to look slightly more organic .
2/ What filtering? ^^ The bg/extent/gravity triplet's sole purpose is letterboxing, because I abhor stretching. 3/ Any kind of input is fine. JPG as an output is *NOT* . 4/ To do scaling in a linear color space. c.f., the IM documentation. 5/ Nope. |
Advert | |
|
07-11-2021, 05:23 PM | #231 |
Wizard
Posts: 1,188
Karma: 4236616
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
@NiLuJe
Thank you very much! By filtering I mean “ -filter LanczosSharp” |
07-11-2021, 05:38 PM | #232 |
BLAM!
Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Oh, that's the Resize filter, so, yeah, kind of important (unless you don't actually need scaling, in which case, drop the distort, too) .
Last edited by NiLuJe; 07-11-2021 at 05:57 PM. |
07-11-2021, 05:50 PM | #233 |
Wizard
Posts: 1,188
Karma: 4236616
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
@NiLuJe
Thank you very much! Your kind help is priceless! |
07-19-2021, 05:36 PM | #234 |
BLAM!
Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Okay I *may* finally be getting what you meant about Riemersma: it appears to be broken as all hell in current IM versions.
No time to dig into this further, so, yeah, if you get weird clipping or banding, switch to FS . |
08-02-2021, 08:06 AM | #235 |
Junior Member
Posts: 7
Karma: 10
Join Date: Oct 2015
Device: kobo GLO HD
|
Questions
Hey, I am loving your FBINK, and using it to fullfill my longtime dream to build an eink typewriter out of my old GLO. So a big thanks for that.
For now, I am using a node.js app that controls fbink cli throught ssh. This works pretty well, and will end up in a pi 0 with a blutooth keyboard. However, I have had some trouble to understand some advanced use cases. Like, is there in the CLI a way to pipe some raw data to display on an area without relying to an image on the file-system ? And more obscurely, I understand your lib will not provide means to manage rotation. Is tehre documented ways to have those kind of kobos interpret the frame-buffer at 90° ? Thanks for your lights, Olup |
08-02-2021, 11:17 AM | #236 |
Junior Member
Posts: 7
Karma: 10
Join Date: Oct 2015
Device: kobo GLO HD
|
Oh, also I wondered how I could pass on multiple string at once to fbink. I maintain a shadow matrix of letter to update only the changed one. But when big parts of the screen changes, I call fbink for each character on screen, and all those calls sent at the same time are prone to do weird stuff. Should I revise my logic or is there a way ? With demonized call maybe ?
|
08-03-2021, 04:34 PM | #237 | |||
BLAM!
Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Quote:
Quote:
Quote:
You could do something saner via the API, a temporary no_refresh switch for the batch of draw calls and fbink_grid_refresh and/or fbink_refresh on the final dirty region (àla InkVT). TL;DR: The CLI is not really geared towards this sort of the stuff, but the API is . |
|||
08-06-2021, 05:48 AM | #238 |
Junior Member
Posts: 7
Karma: 10
Join Date: Oct 2015
Device: kobo GLO HD
|
Thank you for this ! Ok, I might use the library then. I am not at ease with c or c++ but could work with golang. Do you recommend the V2 bindings ? Or the V1 (I know you are not the author of them but if you have a clue). What about the python one ? Thanks
|
08-06-2021, 06:34 PM | #239 |
BLAM!
Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
The V1 Go bindings aren't up to date, so, that'd be a no . I haven't hit the "merge" button on the latest update of the V2 bindings, but the code is there and up to date.
As for the rest, it's entirely up to which language you actually prefer . (The Python/Lua bindings are currently pinned to master, though, pending a release, which is itself pending free time to actually finish some stuff). |
08-06-2021, 11:34 PM | #240 |
Guru
Posts: 868
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
The V1 bindings are deprecated. I should probably archive the repo.
I've let the V2 bindings rot a bit, although NiLuJe has been sort of keeping them up to date with PR's that I haven't merged (sorry). None of my current projects use it anymore, so I'm afraid I haven't had much interest keeping the bindings updated. That and the FBInk API is a bit of a PITA to create bindings for. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura HD Small tool for filling book library in Kobo Aura | Paxerus | Kobo Developer's Corner | 2 | 12-31-2013 07:05 PM |
Small print | Broadback | Conversion | 12 | 12-12-2011 02:31 PM |
Small Tool to change book order (PRS-x50) | goaspy | Sony Reader | 113 | 10-14-2011 03:28 PM |
small print | breezeman | Introduce Yourself | 13 | 07-03-2011 09:02 AM |