bachphuc / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

How to use the patch for firefox??? #129

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It's a txt file... and seems for linux OS 

Could you descript some steps to do with the txt file?

or give a bat or exe or some other execute file.

Original issue reported on code.google.com by youngpla...@yahoo.com.cn on 10 Oct 2012 at 7:39

GoogleCodeExporter commented 9 years ago
This is a code-patch that one can try over Mozilla-FireFox dev-code branch to 
add WebP image format support in Mozilla-Firefox.
The instructions to build Mozilla-Firefox can be found at:
https://developer.mozilla.org/en-US/docs/Simple_Firefox_build

Original comment by vik...@google.com on 10 Oct 2012 at 4:21

GoogleCodeExporter commented 9 years ago
I apply that patch and build Firefox.
But Firefox can't display some WebP Images, for example 
http://www.gstatic.com/webp/gallery/3.webp.
http://www.gstatic.com/webp/gallery/5.webp.

1,2,4 is OK.

Another example:
OK:
https://www.gstatic.com/webp/gallery3/{1..5}_webp_a.webp
NG:
https://www.gstatic.com/webp/gallery3/{1..5}_webp_ll.webp

Original comment by htgu...@infoseek.jp on 7 Nov 2012 at 7:08

GoogleCodeExporter commented 9 years ago

Original comment by pascal.m...@gmail.com on 10 Nov 2012 at 6:12

GoogleCodeExporter commented 9 years ago
Additional Info;
Firefox x64 causes those problems "Comment 2".
Firefox x86 can display all the WebP Images in that gallery.

Original comment by htgu...@infoseek.jp on 12 Nov 2012 at 12:33

GoogleCodeExporter commented 9 years ago
In the function nsWEBPDecoder::WriteInternal(const char *aBuffer, uint32_t 
aCount)
>  mData = WebPIDecGetRGB(mDecoder, &lastLineRead, &width, &height, &stride);

When Firefox x64 fail to display the WebP image, WebPIDecGetRGB set 
lastLineRead as '0'. It should be equal to height.
For example, When Firefox x64 try to display 
https://www.gstatic.com/webp/gallery3/1_webp_ll.webp, height = 301, but 
lastLineRead = 0.

Original comment by htgu...@infoseek.jp on 17 Nov 2012 at 2:43

GoogleCodeExporter commented 9 years ago
After I replace size_t to uint32_t in all the source files of WebP, Firefox x64 
can display all the WebP images in  
https://developers.google.com/speed/webp/gallery?hl=ja .

Original comment by htgu...@infoseek.jp on 25 Nov 2012 at 5:18

GoogleCodeExporter commented 9 years ago
What about a Firefox extension? Would that work to display WebP?
Mozilla don't seem interested until WebP is more finalized so I doubt we'll see 
it inbuilt into official builds anytime soon...

Original comment by R1S3.0F....@gmail.com on 22 Dec 2012 at 2:03

GoogleCodeExporter commented 9 years ago
I tried to update the libwebp patch with libwebp 0.4.0, for firefox 30.0.
I can compile it, but firefox cannot displays any webp image:
„The image cannot be displayed because it contains errors.”

Original comment by re...@rezso.net on 16 Jun 2014 at 7:07