Issue 319 in webp: some webp images created with PHP imagewebp display as white only in Chrome

648 views
Skip to first unread message

1der1… via monorail

unread,
Dec 1, 2016, 2:59:12 PM12/1/16
to webp-d...@webmproject.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 319 by 1der1...@gmail.com: some webp images created with PHP imagewebp display as white only in Chrome
https://bugs.chromium.org/p/webp/issues/detail?id=319

First, I thought the problem would relate to the imagewebp function and I updated to the newest PHP5 version. However, this did not fix the problem.

I checked the pictures in paint.net then and there is no problem.

I have attached two png images and the related webp versions.

Google Chrome is up to date.
Version 54.0.2840.99 m (64-bit)


Attachments:
superdentists_com.png 1.7 KB
superdentists_com.webp 503 bytes
climbfind_com.png 1.2 KB
climbfind_com.webp 471 bytes

--
You received this message because:
1. The project was configured to send all issue notifications to this address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

jz… via monorail

unread,
Dec 1, 2016, 7:11:19 PM12/1/16
to webp-d...@webmproject.org

Comment #1 on issue 319 by jz...@google.com: some webp images created with PHP imagewebp display as white only in Chrome
https://bugs.chromium.org/p/webp/issues/detail?id=319#c1

We don't maintain the implementation in php/imagewebp. I'm not sure what version of libwebp it's using to do encodes, but it looks like a quite dated one given the output.
The file header reports the files are 1 byte larger than they are [1]. The image (VP8) chunk's size looks to have been padded by 1 as adding a 0-byte to the end seems to clear it up. What may have happened was the image itself was odd sized and the chunk size was padded (incorrectly). A padding byte at the end of the image should have been added instead [2].

[1]
$ od -tx1 -N 48 -a superdentists_com.webp
0000000 52 49 46 46 f0 01 00 00 57 45 42 50 56 50 38 20
R I F F p soh nul nul W E B P V P 8 sp
0000020 e4 01 00 00 90 08 00 9d 01 2a 20 00 20 00 02 87
d soh nul nul dle bs nul gs soh * sp nul sp nul stx bel
0000040 08 85 85 88 85 84 88 88 82 02 ec 81 c6 ec f5 85
bs enq enq bs enq eot bs bs stx stx l soh F l u enq
ls -l superdentists_com.webp -> 503
file size = 0x1f0 = 496 + 8 = 504
image chunk size = 0x01e4 = 484 + 4 (size field length) + 16 (riff header + VP8) = 504

[2] https://developers.google.com/speed/webp/docs/riff_container#riff_file_format

jz… via monorail

unread,
Dec 1, 2016, 7:13:35 PM12/1/16
to webp-d...@webmproject.org

Comment #2 on issue 319 by jz...@google.com: some webp images created with PHP imagewebp display as white only in Chrome
https://bugs.chromium.org/p/webp/issues/detail?id=319#c2

I forgot to add that the above situation causes dwebp (and Chrome) to report:
Status: 7(NOT_ENOUGH_DATA)

pascal.m… via monorail

unread,
Mar 27, 2017, 5:03:26 AM3/27/17
to webp-d...@webmproject.org

Comment #3 on issue 319 by pascal.m...@gmail.com: some webp images created with PHP imagewebp display as white only in Chrome
https://bugs.chromium.org/p/webp/issues/detail?id=319#c3

This seems related to this bug-report: https://bugs.php.net/bug.php?id=66590
But the issue has been reportedly fixed there.

jz… via monorail

unread,
Aug 15, 2017, 11:48:24 PM8/15/17
to webp-d...@webmproject.org
Updates:
Status: Done

Comment #4 on issue 319 by jz...@google.com: some webp images created with PHP imagewebp display as white only in Chrome
https://bugs.chromium.org/p/webp/issues/detail?id=319#c4

(No comment was entered for this change.)
Reply all
Reply to author
Forward
0 new messages