in reply to Sebastian "spaetz" Spaeth

You can load the bitmap into a Gdk.PixBuf, then you can do whatever.
git.sr.ht/~fabrixxm/zint-vapi/…

I wanted to have the bitmap field as uint8[], mostly because looks vala-y and because it's what is in Gdk.PixBuf.from_data()'s signature).
I found that it needs a length to works with Gdk.PixBuf.from_data(), so I added the get_bitmap() method to set the length.. It works but I don't know if it's the correct solution... there so much things I'm not sure about and docs are useful only up to a point...

(as a side node, the zint.h header I have on disk has a bitmap_byte_length field which would be so good to use as length value for bitmap (setting it directly in field's annotation in vapi) but looks like is not used and docs doesn't mention it.....)



Kumiko, découpe de bande dessinée et lecture case par case


Lire une bande dessinée, chouette ! Sur un écran de téléphone, un peu moins.

Kumiko est un petit outil qui détecte les cases sur une page de bande dessinée, et fournit ces informations à un lecteur « case par case ». Plus besoin de zoomer à la main pour lire les bulles.

Vous voulez voir, essayer ?

xkcd by Randall Munroe, #208, CC BY-NC 2.5xkcd par Randall Munroe, #208, CC BY‑NC 2.5

Des exemples sont proposés sur le site de démo, essayez de lire xkcd ou Pepper&Carott case par case !

Essayez aussi d’envoyer vos propres images pour voir comment Kumiko s’en sort.

Le projet, sous licence AGPL, est codé en Python et fait bon usage de la bibliothèque de reconnaissance d’images OpenCV, pour l’instant principalement pour la détection de contours. Le lecteur case par case est basé sur du JavaScript dans le navigateur.

Au fur et à mesure, des modèles de pages existants sont ajoutés pour servir de tests de non‑régression. Kumiko pourra ainsi découper proprement toujours plus de cases.

Au plaisir de vos retours sur ce projet !

Télécharger ce contenu au format EPUB

Commentaires : voir le flux Atom ouvrir dans le navigateur

Confy 0.4.1


Version 0.4.1 of Confy, the conferences schedule viewer for GNOME, has been tagged.
This release comes with support to libhandy 1.
A confy-git package on AUR has been created, for those of you using #archlinux

I've removed links to flatpak on project page because it never worked as it should. I'm planning to add Confi to flathub in a future.

I should start to write a propert changelog :)

#confy #gnome

Thib reshared this.

So I managed to enable external HDMI on #pinephone , fidling with wlr-randr.
I'm writting this on firefox in pinephone with a big screen and a keyboard :)
The magic spell seems to be: with wlr-randr turn off internal screen, turn off external htmi, turn back on external htmi. This way I got a signal on my external monitor.
(I ran that commands on a ssh session from the laptop)
The phone screen remains off. If I turn on the internal screen, I lose the hdmi.
When I unplug hdmi, internal screen turns on but wrong, and phosh is missing. I have to restart phosh from ssh (sudo systemctl restart phosh).
I have managed to have both displays turned on while trying to get phosh back after a crash with HDMI on. So probably there is a more powerful spell which is a level too high for me...

Questo sito utilizza cookie per riconosce gli utenti loggati e quelli che tornano a visitare. Proseguendo la navigazione su questo sito, accetti l'utilizzo di questi cookie.