Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
hopestar86
V2EX  ›  Linux

请教 ImageMagick 裁切图片报错 libgomp: Thread creation failed: Resource temporarily unavailable

  •  
  •   hopestar86 · Jun 6, 2014 · 6092 views
    This topic created in 4536 days ago, the information mentioned may be changed or developed.
    如题,
    百度 google了 各种方面,还是搞不定

    find ./ -name '*.jpg' -exec convert -quality 90 -resize "300x300>" {} {} \;

    批量裁切大量图片 N万张

    我在另一台vps上,裁切就没有问题。

    请教怎么解决?
    3 replies  •  2014-06-06 09:57:17 +08:00
    Livid
    Livid
    MOD
    PRO
    Jun 6, 2014
    1
    看起来像是 ulimit 的某个限制被触及了。
    riaqn
    riaqn
    Jun 6, 2014
    2
    man pthread_create

    EAGAIN Insufficient resources to create another thread, or a system-imposed limit on the number of threads was encountered. The latter case may occur in two ways: the RLIMIT_NPROC soft resource limit (set via setrlimit(2)),which limits the number of process for a real user ID, was reached; or the kernel's system-wide limit on the number of threads, /proc/sys/kernel/threads-max, was reached.
    riaqn
    riaqn
    Jun 6, 2014❤️1
    3
    另外,为什么不用graphicsmagick呢,是imagemagick的fork。
    http://www.graphicsmagick.org/
    比im高到不知道哪里去了……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1370 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 22:00 · PVG 06:00 · LAX 14:00 · JFK 17:00
    ♥ Do have faith in what you're doing.