#author("2023-12-30T10:05:40+00:00","default:iseki","iseki") #author("2023-12-30T10:06:23+00:00","default:iseki","iseki") ** ImageMagick [#m617059c] - site: http://www.imagemagick.org/ *** Compile & Install [#q6a79840] + Install JasPer + Compile & Install ImageMagick bzcat ImageMagick-6.6.3-8.tar.bz2 |tar xfv - cd ImageMagick-6.6.3-8 ./configure --with-jp2=yes make make install - If JasPer was installed, ''--with-jp2=yes'' option is automatically set. -- JasPer がインストールされていれば,自動的に ''--with-jp2=yes'' となる. #br *** convert [#a9fc441b] - stdin/stdout cat a.gif | convert - jpeg:- > a.jpg *** List of Tools [#q66f98d4] - animate - compare - composite - conjure - convert - display - identify - import - mogrify - montage - stream #br *** Tips [#q885daad] - サポートしているフォーマットを調べる convert -list format - コンパイルの設定を調べる convert -list configure - delegate で機能拡張できるらしい -- http://www.imagemagick.org/download/delegates/ *** Bug? [#ubae8704] - ''libMagickCore.so.4: cannot restore segment prot after reloc: Permission denied'' is outputted. -- Cause: SELinux prohibits loading the library. -- Solution: Execute ''chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t /usr/local/lib/libMagickCore.so.4'' -- Cause: SELinux prohibits loading the library. -- Solution: Execute ''chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t /usr/local/lib/libMagickCore.so.4'' -- 原因: SELinux がライブラリのロードを禁止している. -- 対策: ''chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t /usr/local/lib/libMagickCore.so.4'' を実行 #br