1
Fork 0
Commit Graph

27 Commits

Author SHA1 Message Date
Kostiantyn df9af39a16
Validate incoming GPS data (#951)
* Validate incoming GPS data and throw an error if it is incorrect, storing Null values

* Extracted GPS data processing to function in external parser; optimized IF in internal parser; removed unnecessary comments; set exact values for positive test

* Add the migration for removing existing invalid GPS data and its test; added better errors to asserts in the GPS validation test

* Install FFmpeg and ExifTool on the API unit-test environment

* Fix 'stripped.jpg', 'IncorrectGPS.jpg', and 'CorrectGPS.jpg' tests for the external parser

* Optimized data validation in the external parser, returned error by the internal parser for invalid data, updated test to expect errors and handle them

* Switched from error to log entry in case of incorrect GPS data, as error handling is not so transparent in the internal parser

---------

Co-authored-by: Konstantin Koval
2024-06-29 10:32:48 +03:00
Yo Sev 9c85663522
Fix invalid UTC offset during datetime parsing (#823) 2024-03-30 07:57:21 +01:00
john dev a28e9ba8b7
Prepend missing key CreationDate to createDateKeys 2023-03-21 14:26:03 +01:00
Jakub Tymejczyk a2170bc02b Fixes issue 804 2023-02-28 15:33:02 +01:00
john dev 15e3cc3b8c
Add support to parse DateTImes with UTC offset 2023-02-15 08:29:41 +01:00
James Cross 501c50e259 Adding image description to sidebar 2022-03-28 16:08:30 +01:00
viktorstrate ee5c113c32
Add EXIF modify dates as a fallback for create dates 2022-02-07 17:57:10 +01:00
viktorstrate f2f75c03b3
Add more keys for potential create dates to exiftool 2022-02-07 17:44:45 +01:00
viktorstrate c48ede175a
Fix exif circular imports in tests 2021-11-06 13:01:01 +01:00
Dhole 3de9282fba Sanitize float values in EXIF fields
Read exposure as rational in EXIF internal parser
2021-05-19 13:53:34 +02:00
viktorstrate b022a13e55
Batch exiftool runs + scanner package restructuring 2021-05-06 22:01:48 +02:00
viktorstrate d03923992c
clean up api log prints 2021-04-26 10:26:54 +02:00
viktorstrate 60f8a68bf6
Implement database integration tests 2021-04-23 15:10:23 +02:00
viktorstrate dc8325bd4a
Extend exif tests 2021-04-22 22:46:52 +02:00
viktorstrate 88a9d705a9
Add integration tests for exif parsers 2021-04-22 21:37:59 +02:00
viktorstrate 084d9bfef7
Cleanup logs and external exif parser 2021-04-11 22:55:44 +02:00
viktorstrate ceb8c4103f
Fix exiftool detection 2021-04-03 21:39:32 +02:00
viktorstrate 95c174d3a5
Setup husky hooks for api 2021-04-03 17:49:18 +02:00
Kjeldgaard 3bde799fb3 Fix log bug
Fix log bug, exposure time is now float and not string.

Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
2021-03-31 23:43:44 +02:00
Kjeldgaard f946500eaa Use barasher/go-exiftool
Use barasher/go-exiftool again.
Exposure is not saved as float and not a string.

Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
2021-03-31 23:35:25 +02:00
Kjeldgaard 1193222f92 Update external exif parser method
Exiftool meta data parsed as intergers and not strings. Keep internal
exif parsing functionality.

Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
2021-03-28 23:52:51 +02:00
Kjeldgaard 7b5305579b Extract metadata as integers
Extract all metada as integers fomr exiftool.

Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
2021-03-23 21:36:03 +01:00
Kjeldgaard 1f9f6ebf9a Use exiftool for parsing exif data
Use exiftool to parse exif metadata.

Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
2021-03-20 00:26:05 +01:00
viktorstrate 557b5e22df
Check that EXIF contains date shot before comparing
This should fix #196
2021-02-14 15:45:58 +01:00
viktorstrate 2ba8e466ef
Update media date_shot to match exif 2021-02-13 17:21:15 +01:00
stz184 f723bda7c5 Fixes photoview/issues#168
- Migrated mediaGeoJson resolver to GORM
- Fixed issue loading media list in MediaList() function
- Fixed typo in the column "gps_lonitude" (renamed to "gps_longitude")
2021-01-29 01:23:40 +02:00
viktorstrate 46ae5115bb
Refactor EXIF parsing 2021-01-19 16:39:57 +01:00