Skip to content

Instantly share code, notes, and snippets.

@slinkp
Created October 14, 2014 14:54
Show Gist options
  • Save slinkp/f3c37d766d07e4377b63 to your computer and use it in GitHub Desktop.
Save slinkp/f3c37d766d07e4377b63 to your computer and use it in GitHub Desktop.
MAGICK_TIME_LIMIT doesn't work in 6.6.9 either
$ convert --version
Version: ImageMagick 6.6.9-7 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
$ for i in `seq 10`; do time /usr/bin/env MAGICK_TIME_LIMIT=1 convert test.jpg test.png || echo FAILED; done
real 0m19.098s
user 0m18.652s
sys 0m0.112s
real 0m19.373s
user 0m18.536s
sys 0m0.124s
real 0m19.169s
user 0m18.644s
sys 0m0.068s
convert: time limit exceeded `' @ fatal/cache.c/GetImagePixelCache/2098.
^C
real 4m11.368s
user 0m0.088s
sys 0m0.044s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment