Main Menu

Binary -> Decimal ?

Started by blue-j, May 12, 2022, 08:52:15 PM

Previous topic - Next topic

blue-j

Hey all,

We raised the subject quite some time ago about moving from binary to decimal measures of file size.  Presently the default in ExifTool is to use binary, such as Mebibytes, (MiB), kibibytes, (KiB), etc.

I would like to suggest it is time to make decimal the standard.  I know binary makes the most sense computationally in some ways, but every drive company I know of uses decimal at this point, and almost no one knows what a mebibyte (MiB) even is.

Does anyone feel the same, or have a counter point to share?

- J


StarGeek

The only counterpoint I have is that Windows doesn't read file sizes that way.  For example


449,091/1,024=438
450,560/1,024=440

Other than that, I don't care either way.  I don't think I've ever had the need to get the file size using exiftool.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

blue-j

They are using 1024 and displaying units for 1000.  Nothing to emulate!

-J

Phil Harvey

Quote from: blue-j on May 14, 2022, 09:58:08 PM
They are using 1024 and displaying units for 1000.  Nothing to emulate!

That is the historical way of doing things, and is how ExifTool did it before updating the units strings.

I don't see a real problem updating this since anyone who really cares about the file sizes would use the -n output.

I'll change this in version 12.42.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).