Ja:GraphicsMagick
From TYPO3Wiki
(Redirected from Jp:GraphicsMagick)
<< ????????????????????? Jp:Overview_Administrator_Manuals
<< ????????????????????
<< Back to Administrators page
??????????????Discussion page ?????????????
???????????????? 
GraphicsMagick ?????????????????GraphicsMagick ?????? ImageMagick ?????????????????????????
Contents |
[edit]
Finding
?????? GraphicsMagick FTP server ?????? GraphicsMagick ?????????????????????????????? /var/www/vhosts/story-castle.net/httpdocs/cgi-bin ??? cgi-bin ???????????????????????????????? rpm ????????????? Linux ??????????????????????????????????????????????????????
tar xvfpz GraphicsMagick-1.1.7.tar.gz chown -R myusername:psacln GraphicsMagick-1.1.7
[edit]
??????
?????????????????? INSTALL-os.txt ?????????????? 'os' ? 'unix' ? 'vms' ?'windows' ??? OS ?????????
ImageMagick installation ????????????configure ????? '--enable-magick-compat' ??????????????
cd GraphicsMagick-1.1.7 ./configure --enable-magick-compat
???????????? (make) ?? /usr/local/bin ????????????? (make install) ????
make make install
???????????????????????????????????
cd /usr/local/bin ls -l total 8925 drwxr-xr-x 2 root root 1024 Feb 11 10:57 . drwxr-xr-x 12 root root 1024 Jan 14 11:46 .. -rwxr-xr-x 1 root root 1223 Feb 11 10:57 GraphicsMagick++-config -rwxr-xr-x 1 root root 1266 Feb 11 10:57 GraphicsMagick-config -rwxr-xr-x 1 root root 1250 Feb 11 10:57 GraphicsMagickWand-config -rwxr-xr-x 1 root root 5209711 Feb 11 10:57 PerlMagick lrwxrwxrwx 1 root root 2 Feb 11 10:57 animate -> gm lrwxrwxrwx 1 root root 2 Feb 11 10:57 composite -> gm lrwxrwxrwx 1 root root 2 Feb 11 10:57 conjure -> gm lrwxrwxrwx 1 root root 2 Feb 11 10:57 convert -> gm lrwxrwxrwx 1 root root 2 Feb 11 10:57 display -> gm -rwxr-xr-x 1 root root 3891115 Feb 11 10:57 gm lrwxrwxrwx 1 root root 2 Feb 11 10:57 identify -> gm lrwxrwxrwx 1 root root 2 Feb 11 10:57 import -> gm lrwxrwxrwx 1 root root 2 Feb 11 10:57 mogrify -> gm lrwxrwxrwx 1 root root 2 Feb 11 10:57 montage -> gm
??????????? /usr/local/php/bin ?? PHP ?????????????????????????('rpm -qa GraphicksMagick' ??????) /usr/bin ? /usr/local/bin ??????????????? /usr/local/php/bin ???????PHP ?????????????????? 2 ??????????????
/usr/local # mkdir php /usr/local # cd php /usr/local/php # mkir bin /usr/local/php # cd bin /usr/local/php/bin # cp /usr/bin/animate . /usr/local/php/bin # cp /usr/bin/compare . ... /usr/local/php/bin # cp /usr/bin/xtp .
[edit]
PHP ???
Apache ????????????????????????????????? php.ini ????????????????????????????????????
safe_mode_include_dir = /usr/local/php/bin safe_mode_exec_dir = /usr/local/php/bin
[edit]
TYPO3 ????? 3.8 ???UNIX ??????
- '--enable-magick-compat' ?????????????????????????? graphicsmagick_wrapper ????????????????????????????? Unix ???????????? Windows ?????????????????????????????????? Michael Stucki ???????????
- ????????? /usr/local/graphicsmagick ????????????????????????
- ???????????????????????????:
- localconf_graphicsmagick.php.txt ?????? localconf.php ???????????????
PROGRAM=graphicsmagick
cd /usr/local/${PROGRAM}
chmod a+x ${PROGRAM}_wrapper.sh
for i in composite convert identify; \
do ln -s ${PROGRAM}_wrapper.sh $i; \
done
(shell's link modified to work)
[edit]
'--enable-magick-compat' ???????????????
# General options related to image processing $TYPO3_CONF_VARS["GFX"]["gif_compress"] = '1'; $TYPO3_CONF_VARS["GFX"]["thumbnails_png"] = '0'; # # GD library settings # $TYPO3_CONF_VARS["GFX"]["gdlib_png"] = '1'; $TYPO3_CONF_VARS["GFX"]["gdlib_2"] = '1'; $TYPO3_CONF_VARS["GFX"]["TTFdpi"] = '96'; # # ImageMagick settings # $TYPO3_CONF_VARS["GFX"]["im_path"] = '/usr/local/bin'; $TYPO3_CONF_VARS["GFX"]["im_version_5"] = '1'; $TYPO3_CONF_VARS["GFX"]["im_imvMaskState"] = '1'; $TYPO3_CONF_VARS["GFX"]["im_v5effects"] = '-1'; $TYPO3_CONF_VARS["GFX"]["im_combine_filename"] = 'composite';
[edit]
graphicsmagick_wrapper.sh ??????????
# General options related to image processing $TYPO3_CONF_VARS["GFX"]["gif_compress"] = '1'; $TYPO3_CONF_VARS["GFX"]["thumbnails_png"] = '0'; # # GD library settings # $TYPO3_CONF_VARS["GFX"]["gdlib_png"] = '1'; $TYPO3_CONF_VARS["GFX"]["gdlib_2"] = '1'; $TYPO3_CONF_VARS["GFX"]["TTFdpi"] = '96'; # # ImageMagick settings # $TYPO3_CONF_VARS["GFX"]["im_path"] = '/usr/local/graphicsmagick'; $TYPO3_CONF_VARS["GFX"]["im_version_5"] = '1'; $TYPO3_CONF_VARS["GFX"]["im_imvMaskState"] = '1'; $TYPO3_CONF_VARS["GFX"]["im_v5effects"] = '-1'; $TYPO3_CONF_VARS["GFX"]["im_combine_filename"] = 'composite';
