[From nobody Wed Mar  3 11:09:29 2021
To: 
Subject: 
Date: Mon, 14 Jun 2004 00:05:30 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: message/rfc822

To: 
Subject: 
Date: Mon, 14 Jun 2004 00:05:30 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: multipart/mixed; boundary=&quot;----_=_NextPart_004_01C45192.84E6A680&quot;


------_=_NextPart_004_01C45192.84E6A680
Content-Type: text/plain



------_=_NextPart_004_01C45192.84E6A680
Content-Type: text/plain;
	name=&quot;ATT20302.txt&quot;
Content-Disposition: attachment;
	filename=&quot;ATT20302.txt&quot;

Hi Michael,

&gt; Wow! Great work! I recompiled them for my Sarge and it seems they work
&gt; great!
Thanks, but some work has be done, like integrate bash_completion and 
rest of packaging (next week ;)

&gt; I just came up with the idea to write another wrapper which makes it
&gt; possible to use TYPO3 with GraphicsMagick.
&gt; 
&gt; You can find it here:
&gt; http://www.mstucki.net/files/typo3/gm_wrapper/
&gt; 
&gt; Usage is simple:
&gt; - Install GraphicsMagick
&gt; - Create a new directory and put the wrapper into it
&gt; - Create symlinks for &quot;identify&quot;, &quot;convert&quot; and &quot;composite&quot;, all pointing to
&gt;   the wrapper script
&gt; - If needed, change the path to GraphicsMagick inside the wrapper script
Will integrate such a part as a separate deb (possible 
graphicksmagick-im-compat or so).
For special Typo3 purposes your wrapper should be used for really faking 
an imagemagick installation en detail. For general distribution I will 
integrate something like ssh-argv0 (appended a little script).

&gt; A first test (Install Tool + Testsite) was successful, so this could be a
&gt; really easy way to extend TYPO3 with support for another graphics
&gt; manipulation program.
Great. But in the end your statement is right if you say that there 
should be a layer for integrating alternative graphic commands.
Something like abstract methods that gets the internal attributes and a 
class for each command you wish to integrate for image processing.
I could imagine that layers will be integrated in many parts or 
components of Typo3. For the calender the same questions I have 
discussed with Volker.

&gt; Can you please post this on typo3-debian as well?
Will do.

&gt; Should we continue the discussion of the gm_wrapper thing here?
If anyone is interesting in it, why not, its developing, if not then not.

Greetings Sven

------_=_NextPart_004_01C45192.84E6A680
Content-Type: text/plain;
	name=&quot;gm-wrapper&quot;
Content-Disposition: attachment;
	filename=&quot;gm-wrapper&quot;

#!/bin/sh

#
# Copyright notice
# 
# (c) 2003 Sven Wilhelm   &lt;wilhelm@icecrash.com&gt;
#          Michael Stucki &lt;mundaun@gmx.ch&gt;
#
# All rights reserved
#
# This script is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# The GNU General Public License can be found at
# http://www.gnu.org/copyleft/gpl.html.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# This copyright notice MUST APPEAR in all copies of the script!
#


EXPECTED_GM=$(which gm)
GM_STRING=$(${EXPECTED_GM} version |head -n1 | awk '{print $2}')
if [ ${GM_STRING} = &quot;GraphicsMagick&quot; ]; then
    GM_BIN=${EXPECTED_GM}
else
    GM_BIN=&quot;/usr/bin/gm&quot;
fi


case &quot;${0##*/}&quot; in
    compare|composite|conjure|convert|identify|mogrify|montage|animate|display|import)
	exec /usr/bin/gm &quot;${0##*/}&quot; &quot;$@&quot;
	;;
    gm-wrapper)
	echo &quot;gm-wrapper: This script cannot be called directly.&quot;
	echo &quot;            Use symlinks on it named like the binaries of the ImageMagick suite.&quot;
	exit 1
	;;
    compare|*)
	echo &quot;gm-wrapper: Command ${0##*/} not possible with or unknown by GraphicsMagick&quot;
	exit 1
	;;
esac

------_=_NextPart_004_01C45192.84E6A680--
]