google-metadata-matcher icon indicating copy to clipboard operation
google-metadata-matcher copied to clipboard

Why does the file size increase?

Open aciccarello opened this issue 1 year ago • 2 comments

I'm seeing a significant increase in the file size when not using the optimize flag. In the below example, the file jumped from 246K to 976K. Why is the file so much larger?

$ls -lhd Takeout/Google\ Photos/Photos\ from\ 2009/IMG_7415*
-rwxrwxrwx+ 1 aciccarello users 246K Feb 22 07:37 'Takeout/Google Photos/Photos from 2009/IMG_7415.JPG'
-rwxrwxrwx+ 1 aciccarello users  915 Feb 22 07:37 'Takeout/Google Photos/Photos from 2009/IMG_7415.JPG.json'
$ ls -lhd Photos/Photos\ from\ 2009/IMG_7415*
-rwxrwxrwx+ 1 aciccarello users 976K Jul 19  2009 'Photos/Photos from 2009/IMG_7415.jpg'

aciccarello avatar Feb 26 '23 00:02 aciccarello

I notice the file size increase from HEIC to JPEG mostly, didn't really check for the others. The core was another script, definilty this should be reviewed how the optimalization is taking place and when. And possibly we even could not transform everyone into jpeg.

Greegko avatar Feb 27 '23 04:02 Greegko

I'd love to see an option to only modify the exif data. I'm guessing that would mean skipping Pillow altogether in that case.

https://stackoverflow.com/questions/53543549/change-exif-data-on-jpeg-without-altering-picture

aciccarello avatar Feb 27 '23 06:02 aciccarello