Issue 299 in webp: Webp image can't open

19 views
Skip to first unread message

aiyapan.natarajan@gmail.com via Monorail

unread,
Jun 8, 2016, 2:51:01 AM6/8/16
to webp-d...@webmproject.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 299 by aiyapan....@gmail.com: Webp image can't open
https://bugs.chromium.org/p/webp/issues/detail?id=299

Hi, I am using the following code for convert jpg to webp.

$ii = imagecreatefromjpeg('Lighthouse.jpg');
// Save the image
imagewebp($ii, 'Lighthouse.webp');
// Free up memory
imagedestroy($ii);

The output will be produced by run this program and I open that webp image format on Window Photo Viewer, the web image can't open. But other webp images are open. Can you please give me a solution

--
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

vincent.rabaud@gmail.com via Monorail

unread,
Jun 8, 2016, 5:20:07 AM6/8/16
to webp-d...@webmproject.org

Comment #1 on issue 299 by vincent....@gmail.com: Webp image can't open
https://bugs.chromium.org/p/webp/issues/detail?id=299#c1

Hi, which library/version/language are you using ? It does not seem to be from the official WebP library. Thx.

aiyapan.natarajan@gmail.com via Monorail

unread,
Jun 8, 2016, 8:48:52 AM6/8/16
to webp-d...@webmproject.org

aiyapan.natarajan@gmail.com via Monorail

unread,
Jun 8, 2016, 9:22:52 AM6/8/16
to webp-d...@webmproject.org

Comment #3 on issue 299 by aiyapan....@gmail.com: Webp image can't open
https://bugs.chromium.org/p/webp/issues/detail?id=299#c3

My full code of convert jpg to webp is below,

In this case, some images seems to be crashed and some images are display well at the time of run this page. Again i reload the page previously display images also crashed.

$images = array('fb_instant.jpg','Lighthouse.jpg','Penguins.jpg','Sample Jpeg Image.jpeg');

foreach ($images as $value) {

$file = 'images/'.$value;
$file_extension = pathinfo($file, PATHINFO_EXTENSION);
$file_name = basename($value, '.'.$file_extension);
$image= imagecreatefromjpeg($file);
ob_start();
imagejpeg($image,NULL,100);
$cont= ob_get_contents();
ob_end_clean();
imagedestroy($image);
$content = imagecreatefromstring($cont);
imagewebp($content,'images/webp/'.$file_name.'.webp');
imagedestroy($content);

aiyapan.natarajan@gmail.com via Monorail

unread,
Jun 10, 2016, 2:58:45 AM6/10/16
to webp-d...@webmproject.org

Comment #4 on issue 299 by aiyapan....@gmail.com: Webp image can't open
https://bugs.chromium.org/p/webp/issues/detail?id=299#c4

Hi please anyone help me.

pascal.massimino@gmail.com via Monorail

unread,
Jun 10, 2016, 7:33:07 AM6/10/16
to webp-d...@webmproject.org

Comment #5 on issue 299 by pascal.m...@gmail.com: Webp image can't open
https://bugs.chromium.org/p/webp/issues/detail?id=299#c5

This is a bug-report form for libwebp library. You should try to identify a bug in the library, if possible.
Providing samples and exact reproduction steps, as well as exact operating conditions, would be helpful too.

Otherwise this discussion should be carried out either in StackOverflow (where there seem to be some progress made, btw) or the PHP authors (and/or posting to webp-d...@webmproject.org).

Thanks.

aiyapan.natarajan@gmail.com via Monorail

unread,
Jun 10, 2016, 8:26:13 AM6/10/16
to webp-d...@webmproject.org

Comment #6 on issue 299 by aiyapan....@gmail.com: Webp image can't open
https://bugs.chromium.org/p/webp/issues/detail?id=299#c6

How should i start with libweb library on windows?

aiyapan.natarajan@gmail.com via Monorail

unread,
Jun 10, 2016, 8:26:37 AM6/10/16
to webp-d...@webmproject.org

Comment #7 on issue 299 by aiyapan....@gmail.com: Webp image can't open
https://bugs.chromium.org/p/webp/issues/detail?id=299#c7

Thanks for your response.

pascal.m… via monorail

unread,
Sep 5, 2016, 10:23:21 AM9/5/16
to webp-d...@webmproject.org
Updates:
Status: Done

Comment #8 on issue 299 by pascal.m...@gmail.com: Webp image can't open
https://bugs.chromium.org/p/webp/issues/detail?id=299#c8

latest version of the library (including Windows versions) are located here:

https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-ios-framework.tar.gz
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-ios-framework.tar.gz.asc
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-linux-x86-32.tar.gz
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-linux-x86-32.tar.gz.asc
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-linux-x86-64.tar.gz
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-linux-x86-64.tar.gz.asc
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-mac-10.9.tar.gz
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-mac-10.9.tar.gz.asc
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-windows-x64-no-wic.zip
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-windows-x64-no-wic.zip.asc
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-windows-x64.zip
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-windows-x64.zip.asc
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-windows-x86-no-wic.zip
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-windows-x86-no-wic.zip.asc
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-windows-x86.zip
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-windows-x86.zip.asc
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1.tar.gz
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1.tar.gz.asc


closing for now. Please re-open if needed, with necessary informations and samples.
Reply all
Reply to author
Forward
0 new messages