Skip to content

Handle edge case where image file was uploaded without an extension #369

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

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

r41d
Copy link
Contributor

@r41d r41d commented Jan 17, 2025

In my Google Photos Takeout I had some weird files where the json filename didn't include the extension of the image.
Example: 2013-08-22.json for image 2013-08-22.png.

This happened because the image was originally uploaded without an extension, which is underpinned by the fact that the json file says "title": "2013-08-22".
Google Photos added the png extension (also have cases with jpg) automatically but didn't include this in the title field or json filename.

To handle such cases correctly we need to try to look for a json file while ignoring the filename.

@r41d
Copy link
Contributor Author

r41d commented Jan 19, 2025

Any feedback is appreciated :)

@TheLastGimbus
Copy link
Owner

I'm very happy that with this existing 4 years, people still find these 🥲

@TheLastGimbus TheLastGimbus merged commit a9de187 into TheLastGimbus:master Jan 29, 2025
0 of 2 checks passed
@TheLastGimbus
Copy link
Owner

thanks!

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

Successfully merging this pull request may close these issues.

2 participants