미디어위키 섬네일을 만드는 중 오류 발생: /bin/bash: convert: command not found

convert: command not found
Error creating thumbnail: convert: command not found
Error creating thumbnail: /bin/bash: convert: command not found
섬네일을 만드는 중 오류 발생: /bin/bash: convert: command not found
미디어위키 섬네일을 만드는 중 오류 발생: convert: command not found

1 문제상황[ | ]

  • 미디어위키에 svg 파일을 업로드했는데 convert 명령어를 찾지 못해 오류 발생
  • 우분투 예시
root@zetawiki:~# convert -version
The program 'convert' can be found in the following packages:
 * imagemagick
 * graphicsmagick-imagemagick-compat
Try: apt-get install <selected package>
root@zetawiki:~# convert -version
-bash: convert: command not found
  • CentOS 예시
[root@zetawiki ~]# convert -version
-bash: convert: command not found

2 해결방법[ | ]

또는 CentOS imagemagick 설치

3 (Optional) 메모리 부족[ | ]

  • 아래와 같이 convert 수행시 메모리가 부족한 경우가 있을 수 있다.
  • 아마도 미디어위키의 버전이 1.22 미만인 경우일 것이다.
섬네일을 만드는 중 오류 발생:
ERROR: meta.c (179): wmf_header_read: this isn't a wmf file
convert: Delegate failed `"wmf2svg" -o "%o" "%i"'.
convert: unable to open image `/tmp/magick-XXkLYBM1': No such file or directory.
convert: unable to load module `/usr/lib64/ImageMagick-6.2.8/modules-Q16/coders/svg.la': libdbus-1.so.3: failed to map segment from shared object: Cannot allocate memory.
convert: unable to open file `/tmp/magick-XXkLYBM1': No such file or directory.
convert: missing an image filename `PNG:/tmp/transform_1c5080544181-1.png'.
  • $wgMaxShellMemory 값을 늘려주면 해결된다.
기본값은 미디어위키 1.22 미만에서는 102400(100MB)이고, 1.22부터는 307200(300MB)이다.
$wgMaxShellMemory = 307200;

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}