Sujet : Re: is there an image package that doesn't require Tk ?
De : wortkarg3 (at) *nospam* yahoo.com (Harald Oehlmann)
Groupes : comp.lang.tclDate : 27. Jun 2024, 18:42:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v5k8a4$2r9ec$2@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
Am 27.06.2024 um 17:47 schrieb Andreas Leitgeb:
I'd like it to open a .png file (screenshot from an android
phone) extract five rectangular regions from it, and convert
them to something similar to Tk's [$image data] - e.g. a list
of lists of colors
For now, I use "image photo" to scrape(simple ocr) some numbers
from it, but it only works with Tk. In the end I want to do
the processing of the image in the same cron-script that gets
the screenshot from the phone.
If nothing else, I'd "convert" (from Imagemagick) the png to
something I can easier parse in Tcl.
To my knowledge, there is the CRIMP package by Andreas Kupries.
https://core.tcl-lang.org/akupries/crimp/homeAnd I would love to get the image code a loadable extension of Tk, so it may be loaded without Tk.
I already looked into this. It is far from trivial, as there are many direct interaction between widget code and core image code...
And I would love to remove a lot of old stuff from the image code. We missed this with Tk 9.0...
Any help appreciated...
Thanks,
Harald