Re: [GM-tcl] speeding up magick -> tk
Swiss army knife of image processing
Brought to you by:
bfriesen
From: Bob F. <bfr...@si...> - 2004-05-22 15:56:40
|
On 22 May 2004, David N. Welton wrote: > > I've been integrating TclMagick into some Tk code of mine, and I'm not > happy with the performance of transforming Magick images into Tk > image. It's taking longer than actually reading the image from the > disk. > > I recall in previous discussions that Bob mentioned that > MagickGetImagePixels might be a bit pokey. > > So... I'm looking for ideas - what I need to do in a lot of cases is > just load images directly into Tk (and then discarding the Magick > image), taking advantage of GM's many image formats (that Tk does not > have), so I would even be ok with having a call that skips the > 'TclMagick' portion of things and loads the image directly. The problem is that the Wand API is high level and intentionally does not expose the features that power users need (i.e. direct access to pixels). Try the latest CVS head version of GraphicsMagick. I have created special cases for when the output size is CharPixel and the requested format is "BGR", "BGRO", "BGRP", "RGB", "RGBO", or "I". Please let me know if this improves the situation significantly. If it does, I will roll the update into the 1.1 branch as well. Bob ====================================== Bob Friesenhahn bfr...@si... http://www.simplesystems.org/users/bfriesen |