| Deutsch English Français Italiano |
|
<v5k8a4$2r9ec$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feed.opticnetworks.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Harald Oehlmann <wortkarg3@yahoo.com> Newsgroups: comp.lang.tcl Subject: Re: is there an image package that doesn't require Tk ? Date: Thu, 27 Jun 2024 19:42:28 +0200 Organization: A noiseless patient Spider Lines: 31 Message-ID: <v5k8a4$2r9ec$2@dont-email.me> References: <slrnv7r2cs.3gvbf.avl@logic.at> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 27 Jun 2024 19:42:29 +0200 (CEST) Injection-Info: dont-email.me; posting-host="654b9e4cd98c28ed3b1d56415691e53d"; logging-data="2991564"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lUwNInH/p6EM1u99TuqQR" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:rvYo4s6uOdS2ZO+BN76nCai2Jd4= In-Reply-To: <slrnv7r2cs.3gvbf.avl@logic.at> Content-Language: en-GB Bytes: 2134 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/home And 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