One easy approach is:
stat -f%z image.png
stat
normally spits out a bunch of data, but the %z
format just selects the size in bytes.
On OSX do stat -f "%z bytes"
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With