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

Fix Exif extraction logic when using ImageMagick #65

Merged
merged 2 commits into from
Apr 11, 2023
Merged

Fix Exif extraction logic when using ImageMagick #65

merged 2 commits into from
Apr 11, 2023

Conversation

wladif
Copy link

@wladif wladif commented Apr 10, 2023

This PR removes the mapping of the file's creation date to the Exif::CREATION_DATE. This is done in order to align it to the logic of the other two tools used for Exif extraction: Exiftool & Native. None of this two will fill in the Exif::CREATION_DATE with the file's creation time.

This is part of the #1729 enhancement for which we need to be able to figure out if the file has a creation time as exif field or not. We can't do this currently with Lychee & ImageMagick.

wladif added 2 commits April 10, 2023 20:53
This PR removes the mapping of the file's creation date to the Exif::CREATION_DATE.
This is done in order to align it to the logic of the other two tools used for Exif extraction: Exiftool & Native.
None of this two will fill in the Exif::CREATION_DATE with the file's creation time.

This is part of the #1729 enhancement for which we need to be able to figure out if the file has a creation time as exif field or not. We can't do this currently with Lychee & ImageMagick.
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link

@qwerty287 qwerty287 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the date:create field is the file creation time?

@qwerty287 qwerty287 merged commit 14e7a26 into LycheeOrg:master Apr 11, 2023
@wladif
Copy link
Author

wladif commented Apr 11, 2023

So the date:create field is the file creation time?

Yes, the field contains the same value as the one returned by filectime.
There is also a date:modify field which I expect to return the same value as the one returned by filemtime, haven't tested it though.

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