jlinkels
Technical User
- Nov 4, 2013
- 1
Hello all,
It seems TCLMagick is no longer part of my Linux distribution Debian Wheezy. I solved this problem by shelling out to ImageMagick. It works and it does everything I want. Although keeping track of temporary files and clean-up adds complication.
My real problem is that a command like this:
exec /bin/sh -c "mogrify -draw \"text 100,100 'Hello World'\" myfile.png"
is not portable.
And doing like this seems to be the only way as it seems to be impossible to get quotes and escaped quotes right.
I would rather like to use TCLMagick, and avoid compiling it myself. Even when I am able to compile it now, it becomes a maintenance and distribution nightmare in the future.
Eventually I want to port and use the application on Windows as well.
jlinkels
It seems TCLMagick is no longer part of my Linux distribution Debian Wheezy. I solved this problem by shelling out to ImageMagick. It works and it does everything I want. Although keeping track of temporary files and clean-up adds complication.
My real problem is that a command like this:
exec /bin/sh -c "mogrify -draw \"text 100,100 'Hello World'\" myfile.png"
is not portable.
And doing like this seems to be the only way as it seems to be impossible to get quotes and escaped quotes right.
I would rather like to use TCLMagick, and avoid compiling it myself. Even when I am able to compile it now, it becomes a maintenance and distribution nightmare in the future.
Eventually I want to port and use the application on Windows as well.
jlinkels