Mobileread
FBInk: A small tool/library to print crap on your screen!
#11  NiLuJe 06-14-2018, 10:03 PM
And release v0.9.8, with, among a whole host of other changes, font selection support \o/.

(Those changes include two nasty memory handling related bugfixes, because C is fun! ).

Now, you, too, can play with the Unscii variants (including an 8x16 one, if square cell blocks weren't your style!) .
Reply 

#12  cramoisi 06-15-2018, 01:38 AM
Quote
KOReader's landscape mode
I love it but don't use it since 2 times out of 3 when i come back to filemanager, the landscape mode is kept

I'll try some things this week-end
Reply 

#13  NiLuJe 06-19-2018, 08:06 PM
Released v0.9.10 .

This one either fixed Mark 7 handling to be more correct and future-proof... or broke Mark 7 handling altogether .
Reply 

#14  NiLuJe 06-30-2018, 06:11 PM
Released v0.9.12 .

This one mainly has new centering code, so that stuff is even more in the middle than before! Yay.

(Also, stuff may be even more broken than before, because basic geometry & arithmetics and me don't mix).
Reply 

#15  NiLuJe 07-06-2018, 03:19 PM
Released v0.9.14 (after a 0.9.13) .

This one should fix the broken colors on Kobos running @ 16bpp, as well as placement & orientation when out of Nickel (we no longer print at a 90° angle in these cases ;P).

The main drive was fixing the specific use-case we have for this in KOReader, but this may have fixed it also in general under KSM (as long as there's not another layer of software orientation on top, i.e.: in Upright Portrait mode only).

Again, the power of basic maths & trigonometry was invoked, so I may have screwed things up .
Reply 

#16  NiLuJe 07-13-2018, 01:40 PM
And finally released v1.0.0 .

Mainly making sure Mark 7 devices are handled correctly, and tweaking a few things for KOReader & KFMon .
Reply 

#17  NiLuJe 07-19-2018, 07:58 PM
Released v1.2.0 .

This one adds a major feature: displaying images! Most common formats should be handled, and you can adjust the exact positioning in all kinds of crazy ways .

As usual, for best results, properly dithered PNGs are your friend .

If you have access to ImageMagick v7, my current rescale + letterbox + grayscale + dither pass of choice looks something like this:

Code
convert input.png -colorspace Lab -filter LanczosSharp -distort Resize 1080x1429 -colorspace sRGB -background black -gravity center -extent 1080x1429! -grayscale Rec709Luminance -colorspace sRGB -dither Riemersma -remap eink_cmap.gif -quality 75 png:out.png
1080x1429 being the effective resolution of an H2O .

With the cmap attached here.

EDIT:

An approximately 10 times faster alternative, if you *really* need on-device processing:
Code
convert input.png -filter LanczosSharp -resize 1080x1429 -background black -gravity center -extent '1080x1429!' -colorspace Gray -dither Riemersma -remap eink_cmap.gif -quality 75 png:out.png
eink_cmap.gif 
Reply 

#18  NiLuJe 07-21-2018, 02:26 PM
Released v1.2.5 .

Expands on the image display feature of v1.2.0 by adding proper transparency support (i.e., if you feed it an image with an alpha channel, it'll do the right thing with it) .

You can opt to disable this via a flag, because it comes with a bit of a performance penalty .
Reply 

#19  NiLuJe 08-02-2018, 05:31 PM
Released v1.2.6 .

A few code cleanups & tweaks, and a fix for potentially broken behavior at high font scaling values.
Reply 

#20  NiLuJe 08-15-2018, 03:07 PM
Released v1.3.0 .

This one comes with a crapload of changes .

I won't rehash the changelog, but, basically, everything's faster, we've got some new fonts to play with (c.f., attached screenshots), and there's even more control over image & text positioning.

This is also the first real introduction of the button_scan thingy we've talked about in the kobo-rclone thread, but that'll be the subject of a dedicated thread later tonight .

And, just for shit'n giggles, there's now a linux target to bypass a few eInk specific checks, so that you can use this on any kind of Linux fb without spurious warnings (c.f., a snapshot from my desktop's EFI framebuffer ).
blocks.png scientifica.png artwiz.png orp.png leggie.png efifb.png 
Reply 

 « First  « Prev Next »  Last »  (2/23)
Today's Posts | Search this Thread | Login | Register