1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-25 02:04:15 +02:00
Commit Graph

322 Commits

Author SHA1 Message Date
Patrik J. Braun
dc55b01bcd fixing tests and cleaning up packages 2022-03-30 23:11:11 +02:00
Patrik J. Braun
0c2099fa5e fixing User middleware 2022-03-30 22:27:41 +02:00
Patrik J. Braun
a2e576ec27 updating node to v16 and angular to v12 2022-03-30 22:18:02 +02:00
Patrik J. Braun
0e4063fe39 ignore update 2022-03-30 22:17:07 +02:00
Patrik J. Braun
8a3f0a5c77 ThumbnailMap bugfix 2022-03-27 19:25:37 +02:00
Patrik J. Braun
845c70f6c6 Replace readyThumbnail filed with missingThumbnail bitmap.
Expected to save 6% on the server result json size.

#437
2022-03-26 11:55:15 +01: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
6394eb4f86 Updating benchmark to contain results size 2022-03-21 22:29:00 +01:00
Patrik J. Braun
8469903189 Fixing ServerTimingMW #437 2022-02-26 17:33:27 +01:00
Patrik J. Braun
950067c789 Do not add users if authentication is not required 2022-02-26 12:45:26 +01:00
Patrik J. Braun
c6640ce0f4 Adding server timing to measure performance (default value: false) #437 2022-02-26 12:34:04 +01:00
Patrik J. Braun
724ef1050c Making better-sqlite3 the sqlite driver instead of sqlite3 #299 2022-02-23 22:54:41 +01:00
Patrik J. Braun
ca16ce0c83 fixing experiment to regenerate db when switching sql driver #299 2022-02-22 23:50:28 +01:00
Patrik J. Braun
3d34b16340 Experimenting with better-sqlite3 2022-02-22 14:06:52 +01:00
Patrik J. Braun
02edfb4963 Improving Autocomplete to show more items from one type if there is not enough. Also list persons first with more photos #improvement 2022-02-22 13:47:41 +01:00
Patrik J. Braun
77767f27b0 fixing preview filling job's logs 2022-02-06 20:01:37 +01:00
Patrik J. Braun
42fd161a66 Making preview manager to first find photo in the same directory then in any subdirectories without any ordering between subdirectories. 2022-02-06 11:36:45 +01:00
Patrik J. Braun
0d519055d5 Fixing dir preview sorting algorithm. 2022-02-05 13:16:16 +01:00
Patrik J. Braun
433d7724ce fixing preview issue: typeorm's parametrized SQL query was overriding each other, lets make them unique. 2022-02-05 12:19:09 +01:00
Patrik J. Braun
b4df99b5ce fixing preview manager ordering 2022-02-05 10:20:10 +01:00
Patrik J. Braun
6c6d77ad34 fixing preview manager ordering 2022-02-02 00:24:16 +01:00
Patrik J. Braun
0cd5e90866 fixing tests 2022-01-27 23:43:34 +01:00
Patrik J. Braun
8f871f31f2 Implementing preview resetting job #80, #381 2022-01-26 23:09:31 +01:00
Patrik J. Braun
1255246b0f implementing preview settings #80, #381 2022-01-26 22:50:49 +01:00
Patrik J. Braun
b169fa67b3 Removing default enforced admin/admin user, only adding it if no admin is present. fixes #408 2022-01-20 19:45:25 +01:00
Patrik J. Braun
a4a9fe2c98 Merge remote-tracking branch 'origin/master' 2022-01-18 20:38:31 +01:00
Patrik J. Braun
3982250d64 Fixing search result to include directory preview fixes #411 2022-01-18 20:38:13 +01:00
Veronika
55f2748cfd Revert "Fix no folder previews on directory search results"
This reverts commit e09d006505.
2022-01-18 14:51:07 +01:00
Veronika
e09d006505
Fix no folder previews on directory search results 2022-01-18 13:41:35 +01:00
Veronika
0431ce67e2
No negative EXIF ratings 2022-01-18 12:48:08 +01:00
Patrik J. Braun
69fedd6c67 Creating thumbnail filling job #381
The job fills, directory, albums and persons' thumbnails
2022-01-17 23:05:10 +01:00
Patrik J. Braun
68e0cdd6f5 fixing isArray dependency fixes #406 2022-01-15 14:39:30 +01:00
Patrik J. Braun
abfe9018c5 replacing ffmpeg and ffprobe to *-static node packages 2022-01-15 11:39:25 +01:00
Patrik J. Braun
9ea2fc5f21 Revert "upgrading to recommend node v16, making min version to be v14"
This reverts commit b72788456b.

# Conflicts:
#	.github/workflows/build.yml
#	.travis.yml
#	package-lock.json
#	package.json
2022-01-15 11:32:46 +01:00
Patrik J. Braun
776c8e83fc Caching preview in the DB to speed up directory querying #381 2022-01-14 20:57:20 +01:00
Patrik J. Braun
b72788456b upgrading to recommend node v16, making min version to be v14 2022-01-14 16:27:08 +01:00
Patrik J. Braun
e607ae810a Forcing mysql to use utf8mb4 fixes #399 2022-01-14 12:14:28 +01:00
Patrik J. Braun
07d8261034 Fixing User name unique issue (it was already set as unique) 2022-01-14 11:13:26 +01:00
Patrik J. Braun
b9e39e0c1e improving security on enforced users #220 2022-01-14 11:02:17 +01:00
Patrik J. Braun
2ca74ef8b4 Implementing custom header support #331, #325, fixes #404, 2022-01-14 10:56:21 +01:00
Patrik J. Braun
e956199c8e Creating enforced users in the config file fixes #220, fixes #393, 2022-01-13 23:57:31 +01:00
Patrik J. Braun
f4f22118ab improving metadata config 2022-01-13 22:41:30 +01:00
Patrik J. Braun
38dfcf03cd Adding error warning for using the default admin/admin user/password pair 2021-12-31 14:38:01 +01:00
Patrik J. Braun
af52919721
Revert "fix encoding non-ascii characters in detected face names" 2021-12-30 18:38:09 +01:00
Patrik J. Braun
46c9a6fb00 Merge remote-tracking branch 'origin/master' 2021-12-11 16:25:12 +01:00
Patrik J. Braun
7d70c71109 Refactoring basic setting saving. Fixes #311 #352 2021-12-11 16:24:07 +01:00
desertwitch
e38cbc0079 fix #346 RangeError running jobs on large DBs 2021-11-28 14:38:50 +01:00
Patrik J. Braun
2f1c48ce02
Merge pull request #344 from ajgon/fix/face-detection-name-encoding
fix encoding non-ascii characters in detected face names
2021-09-24 00:20:09 +02:00
Patrik J. Braun
5d4ca9a590 Fixing MySQL number rounding issue 2021-08-28 13:06:25 +02:00
Patrik J. Braun
2b89bc49ab Improving denormalized data update.
This change should remove the unnecessary DB updates, by making the denormalized data update when they first needed.
2021-08-28 11:42:06 +02:00
Patrik J. Braun
7c0e2ead06 Fixing mem DB 2021-08-07 18:21:06 +02:00
Patrik J. Braun
48ddb19f7f Creating onDBData change hook and refactoring album preview saving algorithm 2021-08-07 18:09:46 +02:00
Igor Rzegocki
14b64e31fa
fix encoding non-ascii characters in detected face names 2021-07-24 01:28:58 +02:00
Patrik J. Braun
43343b252c Implementing search query and custom sorting based preview selection #80 2021-07-06 21:37:19 +02:00
Patrik J. Braun
628bc74226 Refactoring directory interfaces #80 2021-06-27 19:33:37 +02:00
Patrik J. Braun
41975f72a1 fixing temp folder saving #311 2021-06-19 12:18:07 +02:00
Patrik J. Braun
74a56caf76 fixing tests 2021-06-19 12:08:17 +02:00
Patrik J. Braun
3541eae141 Implementing listing metafiles in search result 2021-06-19 11:20:40 +02:00
Patrik J. Braun
57ac433c46 Loading faces even if override keywords are disabled. fixes #293 2021-06-03 22:44:41 +02:00
Patrik J. Braun
f1818c1ca6 Creating Album settings UI and adding album related translations #45 2021-05-31 22:34:55 +02:00
Patrik J. Braun
8570649509 Adding missing dummy memory db implementation #45 2021-05-31 21:19:59 +02:00
Patrik J. Braun
597d179f7d Adding count and precalculated preview to saved search #45 2021-05-31 19:55:27 +02:00
Patrik J. Braun
2e12af46d1 Fixing SOME_OF query flatteing issue 2021-05-31 16:44:37 +02:00
Patrik J. Braun
30c2497f8f Improving saved search pg2conf tests 2021-05-30 18:18:24 +02:00
Patrik J. Braun
b126022454 Improving SOME_OF search to support expressions with more parameters 2021-05-30 17:26:07 +02:00
Patrik J. Braun
404b82e12b Implementing .saved_searches.pg2conf saving tests 2021-05-30 15:09:47 +02:00
Patrik J. Braun
a9e88f1b7d Reading saved searches from .saved_searches.pg2conf #45 2021-05-29 23:27:52 +02:00
Patrik J. Braun
a5630a2fe8 Fixing failing Album tests #45 2021-05-28 23:28:12 +02:00
Patrik J. Braun
1e8ec4e96e Implementing Album UI #45 2021-05-28 21:01:59 +02:00
Patrik J. Braun
6a08cc1c1c Adding Album Middlewares and routers #45 2021-05-28 19:46:22 +02:00
Patrik J. Braun
512f5c18d6 Implementing AlbumBase and SavedSearch Entities and Manager #45 2021-05-28 19:21:18 +02:00
Patrik J. Braun
df42ebd9db Adding DB reset test 2021-05-24 16:03:53 +02:00
Patrik J. Braun
466496650e Supporting date before epoch (1970) #245, #294 2021-05-24 14:56:23 +02:00
Patrik J. Braun
a33f983d16 Implementing directory search guard #309 #304
Creates a settings that can enable and disable directories in search result
2021-05-23 22:38:11 +02:00
Patrik J. Braun
90aff86485 Implementing search returning with directories too, not just media #309 #304 2021-05-23 22:26:27 +02:00
Patrik J. Braun
21908732c6 Fixing periodic job scheduling timezone issue. #273
Note: current time format change from valid timestamp to hours*60+minutes, current config wont be valid.
2021-05-21 16:38:29 +02:00
Patrik J. Braun
2fa1c8f87f Implementing custom Logger, removing deprecated winston dependency
Winston had a major API refactor since v2, so update was not straight forward. Pigallery also uses simple logging, so no need for the complex feature set of winston.
2021-05-16 11:11:53 +02:00
Patrik J. Braun
f59ba6eb98 fixing linting issues 2021-05-16 08:15:42 +02:00
Patrik J. Braun
86739d3378 Reverting Indexing from positions as it did not improve performance 2021-05-12 22:37:36 +02:00
Patrik J. Braun
eb84723523 Reverting Indexing as it did not improve performance 2021-05-12 21:56:52 +02:00
Patrik J. Braun
96e8ec0d89 Fixing Database issue:
indexed text columns need a length. Replacing text with varchar.
simple-array is always text, so implementing custom array transformer
2021-05-12 14:27:20 +02:00
Patrik J. Braun
1d3f9df8f4 Implementing changes only indexing for indexing job. Making that to default 2021-05-12 13:56:10 +02:00
Patrik J. Braun
09230b9e55 Adding indexes and proper character set to Media metadata to improve search performance 2021-05-12 12:35:16 +02:00
Patrik J. Braun
872e63703d Fixing face caching issue 2021-05-12 00:06:06 +02:00
Patrik J. Braun
d0a464b526 sub version bump 2021-05-11 23:37:46 +02:00
Patrik J. Braun
f3980116f5 Improving search performance 2021-05-11 23:27:50 +02:00
Patrik J. Braun
939f17add2 Make the Persons cache distinct on the MediaEntry 2021-05-11 20:59:55 +02:00
Patrik J. Braun
d53af51be2 Adding preview from sub dirs to freshly scanned photos: #31 2021-05-11 17:39:58 +02:00
Patrik J. Braun
94d57cf6a1 Enforcing faces support in metadata loader tests 2021-05-11 16:44:17 +02:00
Patrik J. Braun
f853efa3c1 fixing tslint issue 2021-05-11 16:35:19 +02:00
Patrik J. Braun
4ab1f558d1 Loading default settings before evaluating MetadataLoader 2021-05-11 15:57:36 +02:00
Patrik J. Braun
a75a28f5c4 Fixing benchmark (Adding new search cases after advanced search is ready) 2021-05-10 13:03:22 +02:00
Patrik J. Braun
18db27b418 Fixing temp folder saving issue #289 2021-05-08 08:38:12 +02:00
Patrik J. Braun
a8d636776b Fixing issue with filenames containing # and % fixes #276 and fixes #272 2021-05-04 22:43:19 +02:00
Patrik J. Braun
c5a1fa2657 Fixing sub directory search issue
(it was failing on directory:(dir/subdir) due to the "/" in the url) #284
2021-05-04 21:46:28 +02:00
mcdamo
13a09f0695 Disable zip compression for better performance 2021-05-04 10:07:43 +10:00
mcdamo
07847e06c5 Convert require to import packages 2021-05-03 22:49:41 +10:00
mcdamo
ba8ebca21c Remove listDirectory check 2021-05-03 22:36:56 +10:00
mcdamo
b64f66c253 Remove permission check in GalleryMW 2021-05-03 22:28:34 +10:00
mcdamo
6af288e77a Download zip folder 2021-04-29 00:11:18 +10:00
kagahd
f8b68e5c2c #267 add XMP 'subject' to 'keywords' with proper encoding 2021-04-25 01:16:22 +02:00
kagahd
bd3db9a308 #267 add XMP subject to keywords only if keyword is not yet exisiting 2021-04-24 16:11:44 +02:00
kagahd
a4cb1188fe #267 add XMP section 'subject' to keywords 2021-04-24 10:32:12 +02:00
Patrik J. Braun
d9bd588b1a replacing ng2-cookies to ngx-cookie-service 2021-04-19 20:10:44 +02:00
Patrik J. Braun
4af6c16aef Adding never expiring sharing link. #260
It works by setting the expirity to -1 that setts the expire dat to 01/01/9999. Now the UI does not show expiration if it is longer than 10 years
2021-04-19 15:56:50 +02:00
Patrik J. Braun
085d7c2cd9 fixing linting erros. adding tslint to pretest 2021-04-18 15:48:35 +02:00
Patrik J. Braun
e83ba7c5fa updating building and translations 2021-04-17 18:32:32 +02:00
Patrik J. Braun
669ad818c3 replacing ng2-slim-loading-bar with @ngx-loading-bar to make prod compilation pass (previous bar was not compatible with angular 6 and above) 2021-04-11 00:05:33 +02:00
Patrik J. Braun
40f83f49cd Making directory sorting by date switchable (off by default) #230
If enabled, directories are sorted by last touched date (not by creation date of photos that are within a given directory). Any change to that directory would reorder the directories.
2021-04-06 17:30:52 +02:00
Patrik J. Braun
0f7ac812ea Implementing distance search #58 2021-04-06 11:32:31 +02:00
Patrik J. Braun
3c70ce4b0b improving MetaDataLoader to better handle edge cases #245 2021-04-02 15:53:20 +02:00
Patrik J. Braun
d8b3ff06fd Setting metadata keywords to use utf8_bin with mysql #245 2021-04-01 22:24:56 +02:00
Patrik J. Braun
b908c3e4fb Adding guards to metadata loader and cleaning metadata #244 2021-04-01 22:17:40 +02:00
Patrik J. Braun
acd130babd Fixing preview generation 2021-04-01 21:48:38 +02:00
Patrik J. Braun
36ecbcbd3d Fixing Orientation reading issue and adding orientation reading tests #212 2021-03-28 13:24:55 +02:00
Patrik J. Braun
5020949a88 Improving preiview handling (fixing DB case insensitive issue when selecting preview that is on the same path, adding tests) #31 2021-03-28 12:43:13 +02:00
Patrik J. Braun
c670a17e27 Adding preview field to Directory and populating it with any photo from subdirectory (based on #165), fixes #31 2021-03-27 21:31:19 +01:00
Patrik J. Braun
8bd04dda8c Improving orientation detection #212, #184, #234 2021-03-27 10:23:48 +01:00
Patrik J. Braun
d02e3cbd33 Fixing persons metadata sql field charset 2021-03-14 18:23:30 +01:00
Patrik J. Braun
7ab2d9e62d Fixing reference issues 2021-03-14 17:45:32 +01:00
Patrik J. Braun
007962cc8d Merge remote-tracking branch 'origin/master'
# Conflicts:
#	src/frontend/app/ui/gallery/gallery.component.ts
2021-03-14 16:54:10 +01:00
Patrik J. Braun
270d5af74d Updating random photo query builder to use advanced search #58 2021-03-14 16:52:37 +01:00
Patrik J. Braun
41292ec4b4 Fixing parsing errors. 2021-03-14 10:56:59 +01:00
Patrik J. Braun
47703b6b84 Implementing search query parsing and stringifying. #58 2021-02-14 12:57:05 +01:00
Patrik J. Braun
88015cc33e Implementing adv. search query builder #58 2021-01-31 12:22:56 +01:00
Patrik J. Braun
db1fea37fa
Merge pull request #165 from lexas2509/recursive
Folder preview image will be taken from all child directories not only direct childs
2021-01-24 18:42:20 +01:00
Patrik J. Braun
de9c58fd90 refactoring random photo. Fixing tests 2021-01-17 15:56:15 +01:00
Patrik J. Braun
a8bbefe0f8 refactoring code, improving advanced search 2021-01-17 10:56:33 +01:00
Patrik J. Braun
e643ee2ed1 improving advanced search 2021-01-16 23:37:14 +01:00
Patrik J. Braun
9a923aa8ab Implementing model for advanced searching. #58 2021-01-16 16:59:59 +01:00
Roland
45a7f77454 Takes '.' for start_url if publicUrl is empty 2021-01-16 08:41:01 +01:00
Patrik J. Braun
928f282311 Adding rating support to model.
#217 #69
2021-01-05 20:35:13 +01:00
Patrik J. Braun
5f0f09d420 Project cleanup and version bumps 2021-01-04 11:11:55 +01:00
Patrik J. Braun
2f0d2a5e59 Project cleanup 2021-01-04 10:40:09 +01:00
Patrik J. Braun
bd60900f7c 10x performance improvement for listing faces 2021-01-01 17:58:41 +01:00
Patrik J. Braun
f6bf64399a improving Benchmark 2020-12-31 12:35:28 +01:00
Patrik J. Braun
411023021d Adding persons statistic to ui 2020-12-30 22:12:36 +01:00
Patrik J. Braun
29c3e580d4 improving benchmark 2020-12-30 21:54:07 +01:00
Patrik J. Braun
0a8af49752 Adding benchmark to release code 2020-12-30 21:13:19 +01:00
Patrik J. Braun
03789ecaf8 improving benchmark 2020-12-28 22:08:57 +01:00
Patrik J. Braun
b37d4ec8c8 Improving notification and CSRF error logging 2020-12-27 18:57:02 +01:00
Patrik J. Braun
d00cf9420e Adding test to exiftool based face region parsing 2020-12-27 14:35:30 +01:00
Patrik J. Braun
f2538410f6 Merge remote-tracking branch 'origin/master' 2020-12-27 13:38:17 +01:00
Patrik J. Braun
2a7269c34a
Merge pull request #201 from lbischof/regions
Support exiftool face region format
2020-12-27 13:38:00 +01:00
Patrik J. Braun
4f80ae76bd saving start time for all requests 2020-12-27 13:36:41 +01:00
Patrik J. Braun
9df2b8fbaa Improving error logging for handled server side errors.
Looking for: "ForbiddenError: invalid csrf token"
2020-12-25 10:36:49 +01:00
Patrik J. Braun
ee355dd012 Refactoring max search result.
#174
2020-10-31 21:16:51 +01:00
Patrik J. Braun
161e291939 Removing memory DB fallback in case of DB error.
App now terminates on an error.

Fixes #163
2020-10-31 21:02:35 +01:00
Lorenz Bischof
17df914791 Support exiftool face region format 2020-10-28 14:02:59 +01:00
Tuur Lievens
2976193b42 Add web manifest 2020-09-13 13:44:14 +02:00