Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does the file size increase? #3

Open
aciccarello opened this issue Feb 26, 2023 · 2 comments
Open

Why does the file size increase? #3

aciccarello opened this issue Feb 26, 2023 · 2 comments

Comments

@aciccarello
Copy link

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'
@Greegko
Copy link
Owner

Greegko commented Feb 27, 2023

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.

@aciccarello
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants