Re: resizing JPEGs (with Img and photo image)



On Mon, 30 Jul 2007, MartinLemburg@UGS wrote:

Date: Mon, 30 Jul 2007 08:11:45 -0700
From: "MartinLemburg@UGS" <martin.lemburg.ugs@xxxxxxx>
Newsgroups: comp.lang.tcl
Subject: Re: resizing JPEGs (with Img and photo image)

Yes ... and it is very, very quick!

But ... I'm not able to use inside a starpack, because ImageMagick or
GraphicMagick wants to use some registry keys, created while
installing the DLLs on one computer.
Those registry keys will be missed on another computer, even while the
DLLs would work.

Workaround:
Create such registry keys, if not existent and delete them at the
end of the work.
Risk
A crash or unexpected starpack end might prevent the registry
cleanup at the end.

Why is TclMagick (with (Image|Graphic)Magick only available with an
installation?

Greetings,

Martin

On Jul 30, 4:33 pm, "davidnwel...@xxxxxxxxx" <davidnwel...@xxxxxxxxx>
wrote:
better off going tohttp://wiki.tcl.tk/9775(i.e. TclMagick) which is
far more capable (and faster) than scripted versions.

TclMagick also has the advantage over Img and the like that you can
use it without Tk if you ever wanted to do something like a web
version.

It appears that ImageMagick has a ./configure option not to create an "Install" version (--disable-installed), and thus the standard "paths" are not created as defaults, but are instead read from environment variables. This may well prevent the requirement for registry entries if all you need are the Wand libraries, but does create some difficulties when compiling TclMagick, as the Wand-config utility will not be on the path as a result.

As TclMagick amounts to essentially a single .c and .h, (in ./generic) hacking together a make script turns out to be not too difficult, though without the handy Wand-config tool, you'll have to pay some attention to required libraries and paths to same ...

As we are speaking about "registry keys", I assume that .dll's are the required format, and some care in wrapping will ensure that you package up everything that a standard windows box does not ... perhaps doing a full install will assist you by giving you a list of required libs and paths as determined by Wand-config, and then proceed with creating libraries using the "no-install" option.

On FreeBSD, the following script works to compile tclMagick (note the backticks around the Wand-config command):

wndcfg=/usr/local/bin/Wand-config
gcc -shared -DUSE_TCL_STUBS -fPIC -DUSE_TK_STUBS -DUSE_TK_STUBS -I. \
-I/usr/local/include -L/usr/local/lib -L/usr/lib \
`$wndcfg --ldflags --libs` \
-o tclmagick.so -O2 -DNDEBUG TclMagick.c

a variation on the above using mingw32 should do the trick for windows, with the only issue is to determine the values for Wand-config --ldflags and --libs for your particular platform.

Hope this helps ...
Rob.

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
.



Relevant Pages

  • Re: Group Policy modifying Registry Keys
    ... Try the REG ADD command. ... run it locally or apply the changes to either the login script or the ... Jeffrey Randow (Windows Networking & Smart Display MVP) ... >program that creates two registry keys on the user's local machine. ...
    (microsoft.public.windows.server.networking)
  • Re: RPC Dunamic Ports
    ... As far as automating you could export the registry keys (Once you applied them against one of yuor servers) and build them into a script that is run at machine start up. ... > Paul Bergson ...
    (microsoft.public.windows.server.active_directory)
  • Re: Taskbar Policies/Regesty values
    ... via script or clean registry keys. ... that stores lots of taskbar settings, but there is no clean way to ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Taskbar Policies/Regesty values
    ... via script or clean registry keys. ... that stores lots of taskbar settings, but there is no clean way to ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Taskbar Policies/Regesty values
    ... via script or clean registry keys. ... that stores lots of taskbar settings, but there is no clean way to ...
    (microsoft.public.windowsxp.security_admin)