Sujet : Re: is there an image package that doesn't require Tk ?
De : gregor.ebbing (at) *nospam* gmx.de (greg)
Groupes : comp.lang.tclDate : 30. Jun 2024, 21:04:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v5sdp0$lrni$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
Am 30.06.24 um 21:05 schrieb Andreas Leitgeb:
So, please, let me know where you got 0.46 from.
With 0.45, this is what I get (now with graphicsmagick):
Hello
First of all:
the scripts from test work except for
$wand DrawImage $draw
#Magick: abort due to signal 11 (SIGSEGV) "Segmentation Fault"...
#no solution, a bug?
https://sourceforge.net/projects/graphicsmagick/files/Download Latest version
GraphicsMagick-1.3.43.tar.xz
in
GraphicsMagick-1.3.43.tar.xz
is TclMagick 0.46
make
./configure
make install
(/usr/lib/TclMagick0.46)
package require TclMagick
set wand [magick create wand]
if {[catch {$wand ReadImage sample.png} err]} {
puts "Error reading image: $err"
exit
}
set width 100
set height 100
set x 50
set y 50
if {[catch {$wand CropImage $width $height $x $y} err]} {
puts "Error cropping image: $err"
exit
}
if {[catch {$wand WriteImage cropped_sample.png} err]} {
puts "Error writing cropped image: $err"
exit
}
magick delete $wand