1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
Commit Graph

61 Commits

Author SHA1 Message Date
gras
d52d7c0c4d updated image-size to read dimensions from heic file 2024-04-06 00:31:11 +02:00
gras
00722f1bee when combining a timestamp fix in one branch with new test date, you sometimes get surprises 2024-04-05 00:09:39 +02:00
gras
3de8c7fee9 added the rest of the test files for title and caption 2024-04-04 23:58:26 +02:00
gras
0f03c22967 re-applying the title and caption change 2024-04-04 23:53:07 +02:00
gras
ac56bff769 Merge branch 'feature/camera-metadata' of https://github.com/grasdk/pigallery2 2024-04-04 23:34:48 +02:00
gras
7411750ffd Added a test for offset-fix and found another bug - also fixed 2024-04-03 22:50:49 +02:00
gras
7339fe676b This reverts commit 75d81d42bd. 2024-04-03 21:17:07 +02:00
gras
dbcd14f5c7 This reverts commit ae1309b011. 2024-04-03 21:17:03 +02:00
gras
d628c816da Reading camera metadata from multiple sources 2024-04-01 00:09:53 +02:00
gras
ae1309b011 moved some tests, that seemed to influence indexing tests 2024-03-31 16:15:45 +02:00
grasdk
75d81d42bd
Feature/caption and title (#14)
* reading caption and title from several tags with several tests added
minor bugfix for date conversion to MS
optimization: break sidecar loop, when first sidecar is found
2024-03-31 14:57:20 +02:00
gras
9aab44b7af Removed 0 as a rating, since it means unrated. 2024-03-30 21:23:10 +01:00
gras
b071b6daae xmp-rating valid values now 1-5. 0 means "unrated" and the attribute does not exist with value 0 2024-03-30 21:07:41 +01:00
grasdk
1514662b8d
Feature/metadata sidecar reading cleanup (#13)
* Removed the SideCar Type to make reading sidecar data just as generic as reading the embedded exif data

* Moved metadata-mapping into separate function to prepare for reuse

* Most sidecar metadata is now read with the same function as embedded metadata (for photos). Fixed a bug with rating: 0 being ignored

* added new test for special chars and timezone

* merge incoming changes

* xmp rating fix - 0 is a value. prep for xmp timestamp handling

* refactored mapping of metadata into smaller functions

* consolidated GPS coordinate mapping

* simplification of sidecar date reading logic

* Moved date mapping code into one function - fixed testdata - did not yet resolve offset bug

* CreationDateOffset is now mapped from Sidecar timestamps. Tests updated accordingly.


Total: changed sidecar reading for video to shared reader and fixed tests accordingly (more data is read now)
2024-03-30 13:58:06 +01:00
Martin Kampas
8517430a1b Deal with rating missing in XMP sidecars
Avoid getting Rating of 0 when rating metadata is not included in a
sidecar.
2024-03-23 12:44:30 +01:00
Martin Kampas
1d1df01a68 Read GPS coordinates from XMP sidecar too 2024-03-22 15:44:22 +01:00
grasdk
35839ef732 test-fixing 2024-03-14 10:41:41 +01:00
Martin Kampas
6a52d84881 Add tests for reading sidecar files
Thanks grasdk for providing the .json files!

Co-authored-by: grasdk <chrisc.gigamail@gmail.com>
2024-03-13 20:03:26 +01:00
kagahd
d8c064857f
re-enable unit test that keywords from photo are merged with keywords from sidecar 2024-03-12 08:48:55 +01:00
grasdk
390e24a2c4 Added read of CreationDate to sidecar and fixed tests 2024-03-11 23:47:44 +01:00
kagahd
a2fc61320d
resolve merge conflicts for a second time due to bug in PR #829 2024-03-11 08:45:44 +01:00
kagahd
f05ee7a867
Merge branch 'master' into issue838
# Conflicts:
#	src/backend/model/fileaccess/MetadataLoader.ts
2024-03-11 08:35:14 +01:00
grasdk
2af6115f2a
Unit test and bugfix for CreationDate (#8) 2024-03-07 09:29:44 +01:00
kagahd
fb65910993
resolve merge conflicts due to PR #829 2024-03-04 12:21:39 +01:00
kagahd
0f0a66c05d
Merge branch 'master' into issue838
# Conflicts:
#	src/backend/model/fileaccess/MetadataLoader.ts
#	test/backend/unit/model/threading/MetaDataLoader.spec.ts
2024-03-04 11:55:04 +01:00
kagahd
917b738aa8
add two more unit tests 2024-02-28 18:50:19 +01:00
kagahd
8702586e9e
add unit tests 2024-02-27 18:53:53 +01:00
gras
25acd6f30d Added two more metadata dates to fall back to, instead of file date. This fixes the png-test 2024-02-11 22:35:19 +01:00
gras
a2c9208706 Fixed serious error with offset calculation. Fixed bad test-data. 2024-02-11 21:41:42 +01:00
grasdk
b2be0a9763
consolidate exif parsing libraries - rework of timestamps (#4)
* exifr is used for most tags now

* New timestamp handling, removed exif-parser, date supported for png

* Removed offset from testhelper. It's optional

* explanations

* Feature/timestamps (#3)

* preparing for further timestamp test

* Added more test and fixed offset calculation bug

* Revered old dimension test, added new timestamp tests, some bug fixes

* Renamed png-test because faces overrule keywords
2024-02-11 15:55:26 +01:00
gras
589b255d45 fixed tests 2024-02-05 23:58:34 +01:00
gras
5315e2b9bd Reverted to original version of Chars.jpg and test data which does not trigger bug #794 2024-02-05 22:57:02 +01:00
grasdk
1b579269ce
Feature/specialchars (#2)
* switched from ExifReader to exifr and updated tests to fix issue 794
2024-02-05 22:35:25 +01:00
Nick Kocharhook
45d9398dea Add titles to caption tests. 2023-12-06 16:40:08 +00:00
Patrik J. Braun
1458faca70 Adding animated gif support #779 2023-11-26 22:47:57 +01:00
Patrik J. Braun
c6ba505129 Add date to markdowns #711 2023-09-11 13:54:42 +02:00
GenericGuy
f04ed67205 feat: container header meta data parsing
Adds parsing of container header data, which provides correct dates
for Matroska files and also fixes the issue that the bitrate shown
in the UI reflects only the video bitrate (not video + audio bitrate).
2023-09-03 15:35:19 +02:00
Patrik J. Braun
9f2cd38019 Adding support for metadataLoader to read ImageWidth and ImageHeight exif tags #516 2023-03-05 15:45:01 +01:00
Patrik J. Braun
9ee05c3ada Fixing face orientation on rotated photos. fixes #515 2022-12-15 00:20:58 +01:00
Daya Adianto
e2f10254bc
Update the metadata on test image to match current implementation (#535) 2022-10-03 06:59:47 +07:00
Patrik J. Braun
47d864abe5 Multiples small tweaks to save on the server response size:
* Removing ids from DTO as it is not needed on the client side. ~4% saving
 * Removing orientation information from DB and server response. ~3% saving
 * removing altitude from GPS data and reducing GPS, exposure and fstop precision ~3%
 Altogether 10% saving expected.
 #437
2022-03-25 21:51:42 +01:00
Patrik J. Braun
74beebfed7 fixing test after rounding face region coordinates in MetadataLoader 2021-08-28 13:29:58 +02:00
Patrik J. Braun
404b82e12b Implementing .saved_searches.pg2conf saving tests 2021-05-30 15:09:47 +02:00
Patrik J. Braun
b7db019c70 skipping creation date test when it is not present 2021-05-24 15:18:55 +02:00
Patrik J. Braun
466496650e Supporting date before epoch (1970) #245, #294 2021-05-24 14:56:23 +02:00
Patrik J. Braun
6249d942c0
Merge pull request #275 from kagahd/issue274
#274 use ExifReader 3.15.0 to avoid overwriting Rating by RatingPercent
2021-04-26 22:11:02 +02:00
kagahd
eb99ec004d #274 use ExifReader 3.15.0 to avoid overwriting Rating by RatingPercent 2021-04-26 15:22:12 +02:00
kagahd
f8b68e5c2c #267 add XMP 'subject' to 'keywords' with proper encoding 2021-04-25 01:16:22 +02:00
kagahd
a4cb1188fe #267 add XMP section 'subject' to keywords 2021-04-24 10:32:12 +02:00
kagahd
d788af3a2d #267 support XMP tag 'subject' 2021-04-23 20:09:33 +02:00