Comment #6 on issue 606 by jz...@
google.com: PNG image is not opening
https://bugs.chromium.org/p/webp/issues/detail?id=606#c6Was there any other processing done to the file after the encode by cwebp? Can you share more information about the environment you're running on? Is that php doing the exec()? If I use the binaries from 1.3.0 [1] or a build from the tip of the tree, I can't reproduce this. As Pascal mentioned there's an additional VP8X chunk at the start of the file:
uploaded version:
0000000 52 49 46 46 4e 61 00 00 57 45 42 50 56 50 38 58
R I F F N a nul nul W E B P V P 8 X <--- this is the first
0000020 0a 00 00 00 14 00 00 00 df 01 00 4a 01 00 56 50
nl nul nul nul dc4 nul nul nul _ soh nul J soh nul V P <--- this is the second
0000040 38 58 0a 00 00 00 14 00 00 00 df 01 00 4a 01 00
8 X nl nul nul nul dc4 nul nul nul _ soh nul J soh nul
0000060 41 4c 50 48 0e 17 00 00 01 f7 27 24 48 f0 ff 78
A L P H so etb nul nul soh w ' $ H p del x
0000100
local copy:
0000000 52 49 46 46 c2 67 00 00 57 45 42 50 56 50 38 58
R I F F B g nul nul W E B P V P 8 X <--- only one
0000020 0a 00 00 00 14 00 00 00 df 01 00 4a 01 00 41 4c
nl nul nul nul dc4 nul nul nul _ soh nul J soh nul A L
0000040 50 48 84 17 00 00 01 19 c5 6d db 46 90 91 a7 ba
P H eot etb nul nul soh em E m [ F dle dc1 ' :
0000060 ff c2 39 3a 42 44 ff 27 a0 ee f0 56 1c 0f 71 a7
del B 9 : B D del ' sp n p V fs si q '
0000100
[1]
https://developers.google.com/speed/webp/docs/precompiled