Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author rosell.dk

    (@roselldk)

    I can confirm that Firefox 66 is able to display the webp. And my Chromium browser is not able to displays the image (it displays nothing).

    Can you tell me, does this happen on all conversions, or just this one image?

    Plugin Author rosell.dk

    (@roselldk)

    I tried converting the original with Gd (version 2.2.5), quality: auto (82). The image that it produced can be viewed in Chromium

    Plugin Author rosell.dk

    (@roselldk)

    I think I have found out what went wrong.

    First of all, it is known that older versions of Gd can produce corrupted webp files, because the programmers forgot to add a zero padding at the end of odd-sized webp files.

    Luckily, this can easily be fixed by processing the produced webp file afterwards, as described here: https://stackoverflow.com/questions/30078090/imagewebp-php-creates-corrupted-webp-files

    Actually, this hack is already implemented in WebP Express
    But the filesize of the webp you send is 9199. So the hack has not been applied.

    For the Gd conversion method, the following code is executed right after the file has been created with a call to @imagewebp():

    
    if (@filesize($destination) % 2 == 1) {
        @file_put_contents($destination, "\0", FILE_APPEND);
    }
    

    The problem here must be that file_put_contents() fails. It can do that if it hasn’t got permission to write the file.

    What puzzles me though, is that it ought to have permission to write the file, because it has just successfully created the file a couple of lines earlier

    • This reply was modified 5 years, 11 months ago by rosell.dk.
    Plugin Author rosell.dk

    (@roselldk)

    I am by the way moving away from using the “@” to suppress errors and warnings. In WebP Convert 2.0, all errors and warnings throws a an exception. In WebP Express this means that it will be visible what went on (and wrong) in the log you see when you hover a conversion in Bulk Convert.

    Plugin Author rosell.dk

    (@roselldk)

    Can you please inspect the permissions and ownership of the webp in question?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Images not seen on Chrome’ is closed to new replies.