Discussion Forum: Thread 353933

 Author: ChrstphrR View Messages Posted By ChrstphrR
 Posted: Feb 14, 2024 14:40
 Subject: Allow/use WEBP image format for images on BL
 Viewed: 75 times
 Topic: Suggestions
 Status:Open
 Vote:[Yes|No]
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

ChrstphrR (1)

Location:  Canada, Ontario
Member Since Contact Type Status
Feb 18, 2023 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: 100-Acre-Wood Stash
BrickLink needs to use webp image format.

I've noticed the beta version of the site is displaying PNG format images,
and the O.G. site is using SVG images where possible to save on data transfer.

webp images will, in general, be smaller than any of JPEG, PNG, or GIF.



I've made this suggestion to the dev team at Trello years ago, and... they
did take a long time to implement it, and even had replied saying it was a low
priority.

But they did, within the year, and ... it has a host of benefits.

- this image format supports both lossy and lossless image compression
- transparency/alpha-channel support
- well developed libraries to implement webp into BrickLink's codebase have
been around for a decade
- wide file support on most modern web browsers the past decade
- much smaller file sizes than JPEG, PNG, or GIF

This last one matters most:

- webhosting costs would be reduced (bandwidth both up and down)
- file limits, file size limits could be relaxed for users
- smaller files mean that the pages sent to browsers can render faster, giving
the user a better, faster experience

Please consider adding webp support. Even if it's only pushed into the newer
beta interface!
 Author: DanialR View Messages Posted By DanialR
 Posted: Feb 15, 2024 00:01
 Subject: Re: Allow/use WEBP image format for images on BL
 Viewed: 30 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

DanialR (82)

Location:  USA, Washington
Member Since Contact Type Status
Dec 10, 2019 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: Robbins' Roost
In Suggestions, ChrstphrR writes:
  BrickLink needs to use webp image format.

WEBP is not all it is cracked up to be. Google has made a number of claims about
the format that have not shown to be true in the real world.

While it has some great compression it sacrifices color space using 8-bit YUV
4:2:0 format.

With the subtle changes in some Lego colors, the 4:2:0 format could end up with
pictures that are misleading. Primarily with these color combinations Brown-ReddishBrown,
LightGray-LightBluishGray, DarkGray-DarkBluishGray along with possibly others.
 Author: ChrstphrR View Messages Posted By ChrstphrR
 Posted: Feb 20, 2024 09:59
 Subject: Re: Allow/use WEBP image format for images on BL
 Viewed: 24 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

ChrstphrR (1)

Location:  Canada, Ontario
Member Since Contact Type Status
Feb 18, 2023 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: 100-Acre-Wood Stash
In Suggestions, DanialR writes:
  WEBP is not all it is cracked up to be. Google has made a number of claims about
the format that have not shown to be true in the real world.

While it has some great compression it sacrifices color space using 8-bit YUV
4:2:0 format.

With the subtle changes in some Lego colors, the 4:2:0 format could end up with
pictures that are misleading. Primarily with these color combinations Brown-ReddishBrown,
LightGray-LightBluishGray, DarkGray-DarkBluishGray along with possibly others.

Ah, I hadn't given the colour acuity enough thought with that. From my own
use, I haven't seen a huge degradation of image quality, or the quality of
the colours.

I don't tend to "crank up" the compression to the point that there's
a large distortion of the hundreds of images I've converted. Like the image
upload page's warnings about file size, or limiting animated GIFs to one
frame, it's quite possible there ought to be a lower limit to the compression
used on Webp.

To be frank, it's a bit of a hard go to discern those subtle changes in the
old/new gray bricks with good light, in person, being I'm just a non-colourblind
male, but lack some of the colour depth/acuity that women or mantis shrimp have.
So, I don't know how severe the problem of telling those more subtle colour
variations apart from images in JPG, GIF, PNG, or Webp.


Before I just make flippant comments:
- I know anecdotal evidence... isn't strong evidence.
- Colour acuity can be dependant on which particular pair of eyes are looking
at them, and that I only have one pair.

So, I'll do some digging, take some pictures, and do some comparisons, and
bring that back.

Fair warning: I don't think I have both of the Brown & Reddish-Brown brick
varieties to compare. I'll do my best with comparing other common colours,
and the two pairs of gray colours.