-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
ExIf-Tag causes error on photo upload #1410
Comments
Could you share with us a sample image that demonstrates the problem? Also, your diagnostics output is incomplete. It would help to at least know the value of the |
You can change |
Ok, i´ve updated the |
@d7415 @ildyria @nagmat84 @qwerty287 I would like to discuss the best way of fixing this. The issue is that the image supplies a tag ( My inclination is to use a sledgehammer approach: modify the generic hydrator method https://github.com/LycheeOrg/php-exif/blob/ef77c3767a57ca6792efc19e389642d3d8844958/lib/PHPExif/Hydrator/Mutator.php#L33-L42 so that it ignores all exiftool hides this problem by replacing Your thoughts? |
Sounds good. |
Makes sense to me. |
Not that I can think of at the moment. |
Detailed description of the problem [REQUIRED]
If i try to upload photos (taken with a Xiaomi 11T) the upload fails. Log entry says:
PHPExif\Exif::setSoftware(): Argument #1 ($value) must be of type string, null given, called in /var/www/html/Lychee/vendor/lychee-org/php-exif/lib/PHPExif/Hydrator/Mutator.php
Webupload and serverupload same issue.
If i update the ExIf-data from the photo before upload there is no error:
exiftool -overwrite_original -Software=blabla /opt/upload/
Musst be an issue with the "Software" Tag in ExIf Data...
Browser and system
The text was updated successfully, but these errors were encountered: