linux - Why is the following convert command resulting in Segmentation fault? -


this command running (directly command line, logged in root):

/usr/bin/convert '/var/storage/files/drupal/273f09ab5f8671d3c457719c7955063f.jpg' -resize 127x127! -quality '75' '/var/storage/files/drupal/imagecache/artwork_moreart/273f09ab5f8671d3c457719c7955063f.jpg' 

the result of command just: segmentation fault

version of imagemagic: imagemagick 6.4.3 2009-02-25

linux version: suse linux enterprise server 11 (x86_64)

this image exists , have copied local computer , opened no issue.

please let me know if there additional information need , how information.

try correct command. ! needs backslash-escaping, first of all, otherwise interpreted shell, instead of convert:

/usr/bin/convert \  '/var/storage/files/drupal/273f09ab5f8671d3c457719c7955063f.jpg' \  -resize 127x127\! -quality '75' \  '/var/storage/files/drupal/imagecache/artwork_moreart/273f09ab5f8671d3c457719c7955063f.jpg' 

if doesn't work, try surround argument single quotes (like did other arguments:

127x127\!   =>   '127x127\!' 

the cause of problem reside outside convert binary, , within specific input jpeg want process. can try rule out processing set different input files. start built-in im test files logo:, wizard: , netscape::

convert wizard:       \   -resize "127x127\!" \    127wiz.jpg  convert logo:         \   -resize "127x127\!" \    127log.jpg  convert netscape:     \   -resize "127x127\!" \    127net.jpg 

sorry, cannot reproduce problem directly here. sles 11 im 6.4.3 ancient me.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -