Exit10
•
Senior Member
•
Posts: 2,264
Re: why is x100t jpg file 3mb more?
nixda wrote:
Exit10 wrote:
pseudobreccia wrote:
Kuromusha wrote:
no, but the average (of thousands of photos) on my x100s files is around 5mb, the average on x100t is 8mb.
Really? You expect us to believe that you actually took the time and effort to collect the data and obtain the average file size from thousands of your photos?
Just for amusement - if you have exiftool and a computer that will run a shell here is a one line command to do the calculation without separating out the jpgs into separate directories - it excludes edited or RAW processed files as they will skew the results:
exiftool -s -q -r -if '$model eq "X100S"' -p '$Directory/$FileName' -if '$Software =~ /X100S/' -ext jpg . | sed "s/^\|$/'/g" | xargs ls -l | awk '{ s+=$5;++c } END {printf "%9d Images - Average %9.2f bytes\n", c, s/c}'
I ran it against my pictures filesystem for the X-T2 and got this for jpgs;
On my system, that command gives "illegal variable". The command needs to be adapted to the particular OS and shell.
Yes you are probably right - this is tested on Windows and Cygwin it had some peculiarities with line terminators.
274 Images - Average 13498777.50 bytes
That would be an average of 12.87 MB per JPEG, which doesn't sound quite right.
Yes right again - my poor testing skills - I should have constrained it to full size 24MP images
Changing to RAW gave me
288 Images - Average 27415894.33 bytes
There are many ways to compute such averages. To start, you can run exiftool with "-filesize", or better yet, use the file sizes that the OS reports. I typically extract the various information first for all images, write it into a tab-delimited file, and then do my calculations on that.
That command does use the operating system to get the size - I didn't think the FileSize in the EXIF was sufficiently precise but it would simplify the command and probably make it OS and shell independent:
exiftool -s -q -r -if '$model eq "X-T2"' -p '$FileSize' -if '$Software =~ /X-T2/' -if '$megapixels == 24' -ext jpg . | awk '/MB/ { s+=$1;++c } END {printf "%9d Images - Average %9.2f MB\n", c, s/c}'