Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Was it working previously?

    Thread Starter livingfitlifestyle

    (@livingfitlifestyle)

    Yes, it was working. We moved the site to a new domain and since we moved the images have this new message.

    All of the old images have it and any new ones that have been added also have it.

    We have taken the plugin out and re-installed — same issue.

    Plugin Author nosilver4u

    (@nosilver4u)

    Any errors on the plugin status section?

    Thread Starter livingfitlifestyle

    (@livingfitlifestyle)

    no errors that I can see — only the comment that jpegtran is missing

    where do I look for status section

    Plugin Author nosilver4u

    (@nosilver4u)

    It’s at the top of the EWWW IO settings page.

    Please also turn on the debugging option for EWWW IO, and paste the yellow debugging section from the bottom of the settings page.

    Use pastebin.com for the latter information.

    Plugin Author nosilver4u

    (@nosilver4u)

    Are you still having this problem?

    I have the same issue on new wp installation.
    https://pastebin.com/F0byW53L

    But it not work. I wrote to my server admin, he said that jpegtran is available, he can call it from php code.

    Plugin Author nosilver4u

    (@nosilver4u)

    flammer, ask your server admin where jpegtran is installed. They can run this:

    which jpegtran

    Looking at your debugging info, it isn’t in any of the usual area, and obviously isn’t in the same place as optipng and gifsicle. The user ‘vana’ has what is called a ‘path’ which is a list of folders that tells the server where to look for binaries by default. Those folders apparently include optipng and gifsicle, but not jpegtran. They can adjust the path for the vana user, or if we know where jpegtran is located, I can add that to the path search that the plugin performs.

    Plugin Author nosilver4u

    (@nosilver4u)

    What happens if you run this:

    jpegtran -v

    You’ll have to Ctrl-C to kill it, but it will print out the version string, and may give us a clue here.

    jpegtran -v
    Independent JPEG Group's JPEGTRAN, version 8d  15-Jan-2012
    Copyright (C) 2012, Thomas G. Lane, Guido Vollbeding
    Plugin Author nosilver4u

    (@nosilver4u)

    Well, that looks totally normal, but the test in the plugin is producing no output, not even a single line of output when it runs, which is not normal.
    Try running this:

    jpegtran -v /EWWW_IMAGE_OPTIMIZER_PLUGIN_PATH/sample.jpg 2>&1

    And substitute the entire EWWW IO plugin path (there is a sample.jpg file in there that we use for testing). Alternatively, you can just browse to that folder on the command line, and do:

    jpegtran -v sample.jpg 2>&1

    [vana@s18:: ~/domains/vana.pl/public_html/wp-content/plugins/ewww-image-optimizer ]:$ jpegtran -v sample.jpg 2>&1
    Independent JPEG Group's JPEGTRAN, version 8d  15-Jan-2012
    Copyright (C) 2012, Thomas G. Lane, Guido Vollbeding
    Start of Image
    JFIF APP0 marker: version 1.01, density 72x72  1
    Define Quantization Table 0  precision 0
    Define Quantization Table 1  precision 0
    Start Of Frame 0xc0: width=5, height=5, components=3
        Component 1: 2hx2v q=0
        Component 2: 1hx1v q=1
        Component 3: 1hx1v q=1
    Define Huffman Table 0x00
    Define Huffman Table 0x10
    Define Huffman Table 0x01
    Define Huffman Table 0x11
    Start Of Scan: 3 components
        Component 1: dc=0 ac=0
        Component 2: dc=1 ac=1
        Component 3: dc=1 ac=1
      Ss=0, Se=63, Ah=0, Al=0
    End Of Image
    ????JFIFHH??C??C?"??
    
    ???}!1AQa"q2??#B??R??$3br?
    %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz???????????????????????????????????????????????[v[va[va[[v[[[[v[vana@s18:: ~/domains/vana.pl/public_html/wp-content/plugins/ewww-image-optimizer ]:$
    Plugin Author nosilver4u

    (@nosilver4u)

    Ok, so let’s do a simple test in php. Put this in a .php file in your wordpress root, and then browse to it and see if you get the same/similar output:

    <?php exec('jpegtran -v wp-content/plugins/ewww-image-optimizer/sample.jpg 2>&1', $results);
    foreach ($results as $result) {
            echo "$result<br>\n";
            if (preg_match('/End Of Image/', $result)) {
                    exit;
            }
    }
    ?>

    There is no output :/
    https://vana.pl/ewww.php

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘missing jpeg tran’ is closed to new replies.