News for hackers. Stuff that matters.
Re:Don’t use JPEG-XR on the Web by cosmie on Monday December 31, 2018 @10:12AM (#18794777)
> From time to time I've run an analysis on the use of alternative image formats on the web and it never comes out to be worth it.

I just checked the Google homepage, and even the New Year's Eve Google Doodle currently being shown is a good ol' GIF, rather than a modern format such as WebP. And this is with me using a desktop Chrome browser that definitively supports WebP.

> Like many things, the costs of switching image formats are definite, but the benefits are questionable.

One easy way to get some of the benefits without incurring the switching costs is to leverage Cloudflare Polish[1]. I've used it at a few places, and have had good experiences. Although the majority of gains came from optimizing images that were poorly optimized to begin with, rather than the incremental improvements that occurred from enabling WebP support.

[1] https://support.cloudflare.com/hc/en-us/articles/36000060737...

Re:Don’t use JPEG-XR on the Web by maxst on Monday December 31, 2018 @01:45PM (#18796157)
> I just checked the Google homepage, and even the New Year's Eve Google Doodle currently being shown is a good ol' GIF, rather than a modern format such as WebP. And this is with me using a desktop Chrome browser that definitively supports WebP.

new-years-eve-2018-4995722058399744.2-law.gif

299 972 bytes

new-years-eve-2018-4995722058399744.2-law.webp

293 636 bytes

new-years-eve-2018-4995722058399744.2-law.apng

251 516 bytes

Interesting...

Re:Don’t use JPEG-XR on the Web by masklinn on Monday December 31, 2018 @03:58PM (#18796972)
Meanwhile using ffmpeg's default settings it's 63k as h.264 and 45k as h.265.
Re:Don’t use JPEG-XR on the Web by londons_explore on Tuesday January 01, 2019 @03:36AM (#18799460)
Starting a video in most browsers is pretty expensive (it usually loads up various GPU features for hardware video decoding).

On some old and buggy machines, that might cause the browser to crash too.

Not something Google wants to risk for a doodle - that's why all non-trivial doodles require a click to load.

Re:Don’t use JPEG-XR on the Web by masklinn on Tuesday January 01, 2019 @08:10AM (#18800042)
> Starting a video in most browsers is pretty expensive (it usually loads up various GPU features for hardware video decoding).

OTOH it might be cheaper (relatively) on phones as they can offload the work to hardware components and ramp CPU down (or avoid ramping it up).

Re:Don’t use JPEG-XR on the Web by BurningCycles on Monday December 31, 2018 @06:39PM (#18797823)
But that is lossy compression.
Re:Don’t use JPEG-XR on the Web by Solar19 on Monday December 31, 2018 @07:37PM (#18798127)
It doesn't matter. It will look the same.
Re:Don’t use JPEG-XR on the Web by the8472 on Monday December 31, 2018 @08:31PM (#18798329)
chroma subsampling, shallow gradients, ringing, the lack of transparency are all quite visible issues when trying to encode cartoons, pixel graphics or screen captures with the standard profiles of lossy video codecs.
Re:Don’t use JPEG-XR on the Web by BurningCycles on Monday December 31, 2018 @06:47PM (#18797881)
I used gif2webp -q 100 -m 6 -mt "new-years-eve-2018-4995722058399744.2-law.gif" -o out.webp

with the resulting out.webp being 285 932 bytes, so it seems apng does a very good job here, unless I'm using suboptimal options for webp.

Re:Don’t use JPEG-XR on the Web by Avamander on Monday December 31, 2018 @10:38AM (#18794922)
I don't like WebP because it's either it or HW accelerated browsing - latter I like a tad more because it saves me a bit of battery juice on my laptop.
Re:Don’t use JPEG-XR on the Web by RBO2 on Monday December 31, 2018 @01:20PM (#18796015)
HEIF (based on HEVC and support on MacOS/iOS + Android + Windows) is already way better than JPEG. It also provides HW acceleration.

HEIF is made by MPEG. HEIG is extensible (see AVIF fusing the AV1 royalty-free codec). Also an application format (MIAF) will ensure interoperability.

While waiting for native browser support, some js implementation would do the job.

What else?

Re:Don’t use JPEG-XR on the Web by xvilka on Monday December 31, 2018 @10:06PM (#18798673)
Isn't it a patented algorithm? So it is practically useless.
Re:Don’t use JPEG-XR on the Web by RBO2 on Tuesday January 01, 2019 @09:12AM (#18800237)
I agree with you but hey JPEG also had its own patent issues (https://en.wikipedia.org/wiki/JPEG#Patent_issues).
Re:Don’t use JPEG-XR on the Web by zokier on Monday December 31, 2018 @03:02PM (#18796611)
> HEIF (based on HEVC and support on MacOS/iOS + Android + Windows) is already way better than JPEG. It also provides HW acceleration.

Formats do not provide HW acceleration, implementations do. And so far there is zero HW accelerated HEIF implementations for the web.

Re:Don’t use JPEG-XR on the Web by jsjohnst on Monday December 31, 2018 @03:58PM (#18796976)
> And so far there is zero HW accelerated HEIF implementations for the web.

You sure of that? Apple[1] and Qualcomm[2] might argue otherwise.

[1] https://developer.apple.com/videos/play/wwdc2017/513/

[2] https://techreport.com/news/34306/qualcomm-snapdragon-855-sp...

Re:Don’t use JPEG-XR on the Web by RBO2 on Tuesday January 01, 2019 @09:17AM (#18800257)
I don't know who downvoted you but you're correct. The point is that most devices embed an HEVC hardware decoder.
Re:Don’t use JPEG-XR on the Web by TazeTSchnitzel on Monday December 31, 2018 @12:05PM (#18795473)
There's the same problem with Google insisting on VP8/9 for YouTube in Chrome. If your Mac only supports h.264 in hardware you'll get better battery life in Safari.
Re:Don’t use JPEG-XR on the Web by acdha on Monday December 31, 2018 @04:31PM (#18797166)
They also try it in Firefox but fortunately you can disable webm/webp in about:config and get better battery life and image quality.
Re:Don’t use JPEG-XR on the Web by vosper on Monday December 31, 2018 @12:32PM (#18795665)
There's a Chrome extension that forces YouTube to stream h.264

https://chrome.google.com/webstore/detail/h264ify/aleakchihd...

Re:Don’t use JPEG-XR on the Web by xvilka on Monday December 31, 2018 @10:07PM (#18798677)
Obviously it is a problem with Apple, not Google. People should just push it more to do the job.
Re:Don’t use JPEG-XR on the Web by TazeTSchnitzel on Monday December 31, 2018 @10:45PM (#18798807)
I don't think Google are free of responsibility. They are prioritising their lower bandwidth over the user's better power usage.
Re:Don’t use JPEG-XR on the Web by vetinari on Tuesday January 01, 2019 @08:53AM (#18800168)
Apple has a bigger share of the blame. They purposely ignore any codec that is outside of their favorites, even if the hardware they ship does support it (i.e. Intel) or doesn't need any hardware support (Vorbis, Flac). On the other hand, they are quick to support any codec, that is problematic to implement elsewhere.