WordPress.org

Ready to get started?Download WordPress

Forums

EWWW Image Optimizer
[resolved] Problem with sh: jpegtran (5 posts)

  1. kReEsTaL
    Member
    Posted 1 year ago #

    Good evening,

    First thanks a lot for writing this plugin. It's working great on my localhost, but I have troubles to make it work on my web server.

    My host is OVH.

    It seems that jpegtran cannot be executed with the shell, although it is present. I copy/paste the log I get:

    ewww_image_optimizer_notice_utils()
    ewww_image_optimizer_install_tools()
    Checking/Installing tools in /homez.331/marieguix/www/beta/wp-content/ewww/
    wp-content/ewww permissions: 0705
    ewww_image_optimizer_install_paths()
    generated paths:
    /homez.331/marieguix/www/beta/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64
    /homez.331/marieguix/www/beta/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /homez.331/marieguix/www/beta/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran
    /homez.331/marieguix/www/beta/wp-content/ewww/optipng
    /homez.331/marieguix/www/beta/wp-content/ewww/gifsicle
    64-bit linux detected while installing tools
    ewww_image_optimizer_md5check()
    /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran-custom: 7e9b4071a117aa7033d5550cf708953d
    Linux/UNIX style OS, checking permissions
    jpegtran permissions: 0755
    gifislce permissions: 0755
    optipng permissions: 0755
    ewww_image_optimizer_path_check()
    found /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran, testing...
    ewww_image_optimizer_md5check()
    /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran: 4da4092708650ceb79df19d528e7956b
    ewww_image_optimizer_mimetype()
    testing mimetype: /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /etc/magic:/usr/share/misc/magic
    file command: /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
    ewww_image_optimizer_tool_found()
    /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran: sh: /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran: No such file or directory
    found /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran-custom, testing...
    ewww_image_optimizer_mimetype()
    testing mimetype: /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran-custom
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /etc/magic:/usr/share/misc/magic
    file command: /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran-custom: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
    ewww_image_optimizer_tool_found()
    ewww_image_optimizer_tool_found()
    jpegtran: sh: jpegtran: command not found
    ewww_image_optimizer_tool_found()
    /usr/bin/jpegtran: sh: /usr/bin/jpegtran: No such file or directory
    ewww_image_optimizer_tool_found()
    /usr/local/bin/jpegtran: sh: /usr/local/bin/jpegtran: No such file or directory
    found /homez.331/marieguix/www/beta/wp-content/ewww/optipng, testing...
    ewww_image_optimizer_md5check()
    /homez.331/marieguix/www/beta/wp-content/ewww/optipng: 4eb91937291ce5038d0c68f5f2edbcfd
    ewww_image_optimizer_mimetype()
    testing mimetype: /homez.331/marieguix/www/beta/wp-content/ewww/optipng
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /etc/magic:/usr/share/misc/magic
    file command: /homez.331/marieguix/www/beta/wp-content/ewww/optipng: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.9, from '@%ebx', not stripped
    ewww_image_optimizer_tool_found()
    /homez.331/marieguix/www/beta/wp-content/ewww/optipng: OptiPNG version 0.7.4
    found /homez.331/marieguix/www/beta/wp-content/ewww/gifsicle, testing...
    ewww_image_optimizer_md5check()
    /homez.331/marieguix/www/beta/wp-content/ewww/gifsicle: 44273fad7b3fd1145bfcf35189648f66
    ewww_image_optimizer_mimetype()
    testing mimetype: /homez.331/marieguix/www/beta/wp-content/ewww/gifsicle
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /etc/magic:/usr/share/misc/magic
    file command: /homez.331/marieguix/www/beta/wp-content/ewww/gifsicle: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.9, from '@%ebx', not stripped
    ewww_image_optimizer_tool_found()
    /homez.331/marieguix/www/beta/wp-content/ewww/gifsicle: LCDF Gifsicle 1.70
    found /homez.331/marieguix/www/beta/wp-content/ewww/pngout-static, testing...
    ewww_image_optimizer_md5check()
    /homez.331/marieguix/www/beta/wp-content/ewww/pngout-static: 670a0924e9d042be2c60cd4f3ce1d975
    ewww_image_optimizer_mimetype()
    testing mimetype: /homez.331/marieguix/www/beta/wp-content/ewww/pngout-static
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /etc/magic:/usr/share/misc/magic
    file command: /homez.331/marieguix/www/beta/wp-content/ewww/pngout-static: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.6.18, stripped
    ewww_image_optimizer_tool_found()
    /homez.331/marieguix/www/beta/wp-content/ewww/pngout-static: PNGOUT [In:{PNG,JPG,GIF,TGA,PCX,BMP}] (Out:PNG) (options...) Feb 21 2013
    using: /homez.331/marieguix/www/beta/wp-content/ewww/optipng
    using: /homez.331/marieguix/www/beta/wp-content/ewww/gifsicle
    using: /homez.331/marieguix/www/beta/wp-content/ewww/pngout-static
    ewww_image_optimizer_options()
    ewww_image_optimizer_install_paths()
    generated paths:
    /homez.331/marieguix/www/beta/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64
    /homez.331/marieguix/www/beta/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /homez.331/marieguix/www/beta/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran
    /homez.331/marieguix/www/beta/wp-content/ewww/optipng
    /homez.331/marieguix/www/beta/wp-content/ewww/gifsicle
    ewww_image_optimizer_tool_found()
    : sh: -v: command not found
    ewww_image_optimizer_tool_found()
    /homez.331/marieguix/www/beta/wp-content/ewww/optipng: OptiPNG version 0.7.4
    ewww_image_optimizer_tool_found()
    /homez.331/marieguix/www/beta/wp-content/ewww/pngout-static: PNGOUT [In:{PNG,JPG,GIF,TGA,PCX,BMP}] (Out:PNG) (options...) Feb 21 2013
    ewww_image_optimizer_gd_support()
    GD found, supports:
    GD Version: bundled (2.0.34 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support: 1
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XPM Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support:
    ewww_image_optimizer_tool_found()
    convert: Version: ImageMagick 6.6.0-4 2012-05-03 Q16 http://www.imagemagick.org
    disabled functions:
    ewww_image_optimizer_tool_found()
    /usr/bin/file: magic file from /etc/magic:/usr/share/misc/magic
    ewww_image_optimizer_tool_found()
    /usr/bin/nice: 0
    ewww_image_optimizer_tool_found()
    tar: tar (GNU tar) 1.23
    ewww_image_optimizer_jpeg_background()
    ewww_image_optimizer_jpeg_background()
    ewww_image_optimizer_jpg_quality()

    I.E. :

    file command: /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
    ewww_image_optimizer_tool_found()
    /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran: sh: /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran: No such file or directory

    Any idea? It's driving me nuts :)

    Many thanks in advance.

    Best xx

    Marie

    http://wordpress.org/extend/plugins/ewww-image-optimizer/

  2. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    What does the plugin status say?

  3. kReEsTaL
    Member
    Posted 1 year ago #

    Hi!

    I get the following messages:

    EWWW Image Optimizer requires jpegtran, optipng or pngout, and gifsicle. You are missing: jpegtran. Please install via the Settings Page. If the one-click install links don't work for you, try the Installation Instructions.

    and

    Plugin Status
    
    If updated versions are available below, you may need to enable write permission on the wp-content/ewww folder to use the automatic installs.
    *Updates are optional, but may contain increased optimization or security patches
    jpegtran: MISSING Copy executable from /homez.331/marieguix/www/beta/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64 to /homez.331/marieguix/www/beta/wp-content/ewww/jpegtran or a system path (like /usr/local/bin), OR Download jpegtran source
    optipng: OK version: OptiPNG version 0.7.4
    pngout: OK version: Feb 21 2013
    Graphics libraries - only need one, used for conversion, not optimization: GD: OK   Imagemagick 'convert': OK
    safe mode: Off  exec(): OK  
    Only need one of these: finfo: MISSING  getimagesize(): OK  mime_content_type(): MISSING

    I've reinstalled jpegtran as described (copying executable from the plugin folder to wp-content/ewww), I've disabled then reactivated the plugin, I've deleted the plugin then downloaded and installed it again. It doesn't change anything.

    Please note: at first optipng was causing the same issue (not found). When I first deleted the plugin and downloaded it again from WP plugin repository, it did eventually work. But it wasn't the case for jpegtran :(

  4. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    First thing I would try, is to see if your webhost will install jpegtran for you. It's a pretty standard package, and many webhosts include it by default. Failing that, try this:

    Delete everything from the wp-content/ewww/ folder (but leave the folder intact).
    Deactivate and delete the plugin. Make sure the entire ewww-image-optimizer/ folder is gone from the wp-content/plugins/ directory.
    Re-install the plugin from the WP repository (using the built-in auto-install, don't download it manually and upload it to your server).
    Activate the plugin and see what happens.

    If it still doesn't work, and your webhost won't install jpegtran, then you're out of luck.

  5. kReEsTaL
    Member
    Posted 1 year ago #

    Thank you so much! This simple routine did work immediately. :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags