Re: is there an image package that doesn't require Tk ?

Liste des GroupesRevenir à cl tcl 
Sujet : Re: is there an image package that doesn't require Tk ?
De : gregor.ebbing (at) *nospam* gmx.de (greg)
Groupes : comp.lang.tcl
Date : 29. Jun 2024, 08:35:26
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v5odfu$3qqpt$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
Am 29.06.24 um 00:07 schrieb Andreas Leitgeb:
Andreas Leitgeb <avl@logic.at> wrote:
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
 Thanks to all who answered...
 Unfortunately, I haven't yet succeeded with any of the suggestions.
 That's where I got stuck with each:
 Gerald Lester:
http://www.graphicsmagick.org/TclMagick/doc/TclMagick.html
Ted Nolan:
https://wiki.tcl-lang.org/page/TclMagick
 I got it to configure it
   (--with-magick=/usr/lib/x86_64-linux-gnu/ImageMagick-6.9.11/bin-q16/MagickWand-config)
compile and install "apparently" successfully, but "package require TclMagick"
spews out:
   couldn't load file "/usr/local/lib/TclMagick0.45/libTclMagick.so":
   /usr/local/lib/TclMagick0.45/libTclMagick.so: undefined symbol:
   tclStubsPtr
  Harald Oehlmann:
https://core.tcl-lang.org/akupries/crimp/home
 I eventually got  critcl (from Ubuntu apt) and kettle (from fossil)
installed.  If I try to install crimp, it fails at:
  install-doc-markdown: no files matched glob pattern "*"
     while executing
     "glob -directory $src *"
I only find the keyword "install-doc-markdown" in kettle's source
tree, but don't grok it how to just skip that part.  Unfortunately,
the docs are the first thing installed, so as it fails there, nothing
else gets installed.
  greg:
https://wiki.tcl-lang.org/page/Pixane
 Thanks for suggesting, but without source - I'll rather not use it.
 greg:
https://github.com/ray2501/tcl-stbimage
 Seems more targetted towards converting images between formats
and resizing.  According to the web page it doesn't seem like
supporting extracting rectangular regions from a bigger image
or any simple access to pixels or rectangles of pixels.
  Paul Obermeier:
https://github.com/flightaware/tcl.gd
 Extracting rectangles seems covered by "copy", but I didn't
see (in the docs) any sub command to extract an image's data
as "list of list of color" - I could query single pixels,
and I could get it in binary gd/gd2 format, but not sure what
that is...
 
Debian Linux couldn't get it to work with imagemagick.
wand-config not found
I switched to graphicsmagick.
(This also removes imagemagick)
#tcl-dev and tk-dev are already installed
apt install graphicsmagick-imagemagick-compat
apt install graphicsmagick-libmagick-dev-compat
Downloaded the graphicsmagick source and created the TclMagick subdirectory from it
make
./configure
make install
(/usr/lib/TclMagick0.46)
#a example
#http://www.neatware.com/myrmecox/studio/ex_tclmagick.html

Date Sujet#  Auteur
27 Jun 24 * is there an image package that doesn't require Tk ?17Andreas Leitgeb
27 Jun 24 +- Re: is there an image package that doesn't require Tk ?1ted@loft.tnolan.com (Ted Nolan
27 Jun 24 +- Re: is there an image package that doesn't require Tk ?1Harald Oehlmann
27 Jun 24 +- Re: is there an image package that doesn't require Tk ?1Paul Obermeier
27 Jun 24 +* Re: is there an image package that doesn't require Tk ?3greg
28 Jun 24 i+- Re: is there an image package that doesn't require Tk ?1Harald Oehlmann
28 Jun 24 i`- Re: is there an image package that doesn't require Tk ?1greg
28 Jun 24 `* Re: is there an image package that doesn't require Tk ?10Andreas Leitgeb
29 Jun 24  +- Re: is there an image package that doesn't require Tk ?1ted@loft.tnolan.com (Ted Nolan
29 Jun 24  +* Re: is there an image package that doesn't require Tk ?7greg
30 Jun 24  i`* Re: is there an image package that doesn't require Tk ?6Andreas Leitgeb
30 Jun 24  i +* Re: is there an image package that doesn't require Tk ?4greg
1 Jul 24  i i`* Re: is there an image package that doesn't require Tk ?3Andreas Leitgeb
2 Jul 24  i i `* Re: is there an image package that doesn't require Tk ?2greg
3 Jul 24  i i  `- Re: is there an image package that doesn't require Tk ?1Andreas Leitgeb
1 Jul 24  i `- Re: is there an image package that doesn't require Tk ?1Christian Gollwitzer
30 Jun 24  `- Re: is there an image package that doesn't require Tk ?1Andreas Leitgeb

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal