News for hackers. Stuff that matters.
Re:Squoosh: Make images smaller using best-in-class codecs, ... by sixothree on Friday April 30, 2021 @10:00AM (#26993572)
I am used to compression percentages being the percentage of the original file size, not some sort of inverse.
Re:Squoosh: Make images smaller using best-in-class codecs, ... by jaffathecake on Friday April 30, 2021 @10:02AM (#26993587)
One of the Squoosh developers here: I agree, but it's an argument I lost. This sort of thing really divides people it seems.
Re:Squoosh: Make images smaller using best-in-class codecs, ... by luming on Friday April 30, 2021 @10:10AM (#26993681)
You used the percentage of the original file in the CLI tool!

(jake, is that you?)

Re:Squoosh: Make images smaller using best-in-class codecs, ... by dassurma on Friday April 30, 2021 @10:14AM (#26993730)
Yes, that is Jake. This is Surma.

You seem to be right. Gonna fix the CLI (the CLI is my doing)

Re:Squoosh: Make images smaller using best-in-class codecs, ... by jaffathecake on Friday April 30, 2021 @10:21AM (#26993828)
Ohh does that mean we can have the argument again?
Re:Squoosh: Make images smaller using best-in-class codecs, ... by kinlan on Friday April 30, 2021 @10:28AM (#26993909)
Yeah. You need to fix the CLI and add an emdedable API
Re:Squoosh: Make images smaller using best-in-class codecs, ... by jaffathecake on Friday April 30, 2021 @10:29AM (#26993924)
An Emmerdale API?
Re:Squoosh: Make images smaller using best-in-class codecs, ... by kinlan on Friday April 30, 2021 @10:36AM (#26994006)
Wahh wahhh waaah wawawawahhh.
Re:Squoosh: Make images smaller using best-in-class codecs, ... by kinlan on Friday April 30, 2021 @04:06PM (#26998601)
I guess people don't recognise the Emmerdale theme tune..
Re:Squoosh: Make images smaller using best-in-class codecs, ... by toxik on Friday April 30, 2021 @10:03AM (#26993594)
It makes sense to say it's x% smaller. It's clear what the UI means anyway.
Re:Squoosh: Make images smaller using best-in-class codecs, ... by dassurma on Friday April 30, 2021 @10:16AM (#26993759)
The difficulty is:

Do you express the resulting file size or the amount saved? “30%” could mean you “30% of the original file size” or “you shaved off 30% of the original file size”. You could denote the difference with a sign, like “-30%” but that still confuses people. We ran both options by a lot of our colleagues.

“x% of the original file size” is the least ambiguous, but who has the space to put that entire phrase in their app :-/

Re:Squoosh: Make images smaller using best-in-class codecs, ... by alpaca128 on Friday April 30, 2021 @10:27AM (#26993896)
> You could denote the difference with a sign, like “-30%” but that still confuses people

How? This doesn't seem to be a problem whenever a shop runs a sale.

You could write "shrunk by/to x%". Or, to stay with the app's theme, "Squooshed by 30%!"

Re:Squoosh: Make images smaller using best-in-class codecs, ... by iudqnolq on Friday April 30, 2021 @12:07PM (#26995267)
> This doesn't seem to be a problem whenever a shop runs a sale.

Maybe because they don't mind people misinterpreting the sale as larger? I've never seen 30% off mean "30% of the original price", so if people misinterpret it will always be too small.

Re:Squoosh: Make images smaller using best-in-class codecs, ... by developit on Friday April 30, 2021 @10:54AM (#26994223)
my unhelpful take is that I like both
Re:Squoosh: Make images smaller using best-in-class codecs, ... by bloak on Friday April 30, 2021 @11:14AM (#26994478)
In general, percentages are confusing: depending on the context, "30%" can mean a ratio of 0.3, a ratio of 0.7, or a ratio of 1.3. Of course a large part of the general public doesn't understand that if you make something 10% bigger and then make it 10% smaller you don't get back to where you started, nor that travelling 10% faster won't cut your journey time by 10%, but I've also seen people with PhDs get confused by percentages when discussing compiler benchmark results.

If your main goal is to avoid misunderstanding (which it isn't always) then in my opinion it's best not to have anything to do with percentages. Instead, just give the ratio. It might not be elegant, and perhaps some people won't understand it at all, but "0.7x compression" cannot, I think, be misunderstood. (Or can it? I wait to be corrected!)

Re:Squoosh: Make images smaller using best-in-class codecs, ... by foo92691 on Friday April 30, 2021 @11:25AM (#26994636)
> "0.7x compression" cannot, I think, be misunderstood

FWIW I'm not sure what your intended meaning is here. I interpret it to mean that the file got bigger.

Re:Squoosh: Make images smaller using best-in-class codecs, ... by sixothree on Tuesday May 04, 2021 @11:15PM (#27045782)
30% smaller than what?