Commit graph

2660 commits

Author SHA1 Message Date
Michael Mayer
f033fed01c Config: Set default theme and locale
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-04-05 12:21:05 +02:00
Michael Mayer
e8e7dfa7b6 Build: Add flag for debug builds
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-04-05 12:09:00 +02:00
Michael Mayer
0e09606e35 Search: Update automatically generated filter overview #3321
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-04-02 11:33:13 +02:00
Michael Mayer
e7d862d07a Albums: Improve database error handling #3320
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-04-02 10:27:57 +02:00
Michael Mayer
c426a184c5 Backup & Restore: Refactor commands not to run into size limits #3140
See also #3301, #3311, and #3298.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-04-01 16:23:25 +02:00
Michael Mayer
b6378a5c1f Albums: Improve parameter validation for database queries #3320
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-04-01 14:25:05 +02:00
Michael Mayer
9a3d61c99f Config: Update membership sign up info
see https://twitter.com/photoprism_app/status/1641105072292605954

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-04-01 12:07:17 +02:00
Michael Mayer
db496c9392 WebDAV: Ensure remote path exists to fix sync upload #3310
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-30 14:50:16 +02:00
Michael Mayer
b6c404c3a6 Admin: implement demo mode for user management and improve logging #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-29 13:56:11 +02:00
Michael Mayer
c4593b750e Help & Support: Improve about.vue and connect.vue pages
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-29 12:53:51 +02:00
Michael Mayer
e34c9759e4 WebDAV: Replace studio-b12/gowebdav client with emersion/go-webdav #3310
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-28 20:37:42 +02:00
Michael Mayer
8bfd95ddc4 Docker: Restart service unless terminated via SIGUSR1
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-27 21:21:34 +02:00
Michael Mayer
3e4121cc78 Server: Add "restart required" flag and button to restart the server
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-27 19:27:19 +02:00
Michael Mayer
84d1e7de1d CLI: Add photoprism connect command
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-24 19:35:29 +01:00
Michael Mayer
5ea8e20a10 MediaFile: Add ChangeOrientation test for JPEG and PNG files #464
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-22 17:49:14 +01:00
Michael Mayer
e9d96e8849 Photos: Update file mod time when changing image orientation #464
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-22 17:41:07 +01:00
Michael Mayer
bad817f40e API: Code clean-up #3297
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 20:42:13 +01:00
Michael Mayer
f63ac04956 Config: Rename HttpCacheTTL to HttpCacheMaxAge #3297
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 20:37:07 +01:00
Michael Mayer
824e2accef Files: Update new file form test #464
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 16:41:23 +01:00
Michael Mayer
9ad86ac017 Edit: Change image orientation through the user interface #464
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 16:18:27 +01:00
Michael Mayer
d18e5d3ad3 Config: Default to cache TTL defined in thumbs package #3297
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 13:15:54 +01:00
Michael Mayer
010d243d14 Config: Change cache TTL default from 2630000 to 2592000 #3297
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 13:13:56 +01:00
Michael Mayer
286f06d894 Config: Add options for HTTP cache control #3297
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 11:40:46 +01:00
Michael Mayer
ff3f9b8537 Config: Improve Wallpaper URI caching and tests
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 10:28:01 +01:00
Michael Mayer
cc12f3f457 Auth: Improve sanitization of usernames and handles
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-15 22:41:59 +01:00
Michael Mayer
9161144c03 i18n: Add Lower() function and add code comments
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-15 18:19:03 +01:00
Michael Mayer
ef70992657 Config: Code clean-up
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-15 17:05:05 +01:00
Michael Mayer
cad0ecaa6a Config: Use fixed users folder name in the storage path
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 23:17:12 +01:00
Michael Mayer
fb1744b820 Config: Fix UserStoragePath()
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 22:19:16 +01:00
Michael Mayer
addc5e8251 Auth: Refactor users path configuration and base path default
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 21:47:14 +01:00
Michael Mayer
3755421945 FFmpeg: Update AVC convert command test #3284
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 18:30:48 +01:00
Michael Mayer
157c6c723a FFmpeg: Allow selection of specific video and audio streams #3284
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 18:00:55 +01:00
Michael Mayer
9ab833c2ec Auth: Improve username validation and parsing
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 16:36:30 +01:00
ghostwheel
9762150da6 Changed audio conversion to only use one stream
0:a means take all audio streams of first file. 0🅰️0 means first stream of first file. 0🅰️0? means first audio stream of first file if available.
2023-03-14 15:32:37 +01:00
ghostwheel
7e843808ca Added map for audio stream, too
It seems that if -map is used for video (-map 0✌️0) then a map is also needed for audio, otherwise no audio is produced.
2023-03-14 07:15:59 +01:00
Michael Mayer
cc97759806 Moments: Change default sort order in the overview to "newest" #3280
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-13 22:17:23 +01:00
Michael Mayer
88367b4ff7 Auth: Refactor user model and path validation #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-13 17:52:48 +01:00
Michael Mayer
36d62b5506 Auth: Refactor user model and improve validation #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-13 17:36:56 +01:00
Michael Mayer
5b73101442 Auth: Refactor user roles and auth providers in entity model #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-13 16:04:37 +01:00
Michael Mayer
c1efe61b92 Settings: Move download settings to general tab #449
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-11 15:34:59 +01:00
Michael Mayer
dcffa2848a API: Add action and user context to indexing events #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-11 14:09:00 +01:00
Michael Mayer
0e3fb7dc75 Auth: Fix password API handler if uid does not match #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-10 17:16:43 +01:00
Michael Mayer
a425027a9b Auth: Prevent unauthorized users from using the application #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-10 13:20:16 +01:00
Michael Mayer
8df444dfd7 Auth: Refactor session API #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-10 12:15:10 +01:00
Michael Mayer
ad5e9b2e21 User Details: Increase size of bio field, add about to UI #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-10 10:21:46 +01:00
Michael Mayer
654b41afe5 Auth: Prevent duplicate usernames when renaming accounts #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 19:56:07 +01:00
Michael Mayer
0a5dce5aeb Auth: Refactor sessions API and model #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 18:45:04 +01:00
Michael Mayer
50913e301c Auth: Prevent duplicate super admin accounts from being created #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 15:59:08 +01:00
Michael Mayer
d8ab9616a5 Auth: Refactor user management API and CLI commands #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 15:12:10 +01:00
Michael Mayer
60162b3fc5 Auth: Refactor user management API and CLI commands #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-08 23:30:39 +01:00
Michael Mayer
0fbb4043c6 Faces: Run background worker only when data has been updated #3124
This may reduce server load and prevent disks from spinning up.
We welcome tests reports!

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-08 12:42:57 +01:00
Dan Kasak
add976881a Fix only_full_group_by compilation error in SQL - #3216 2023-03-04 16:02:00 +01:00
connr
189fae6daf Fix Duration Compare in photos estimate
Remove the conversion to hours which provides incorrect duration comapre result
2023-03-03 16:21:21 +01:00
Michael Mayer
6e144fe13a Config: Allow everyone to set their own login wallpaper
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2023-03-02 16:52:05 +01:00
Micah
240393d8b6 Update convert.go
When I upgraded my phone to the Google Pixel 7, I noticed that the videos it takes have an extra video stream in them for their compressed HVC1 implementation. This means that all software transcoding of that format would fail, as it was transcoding the wrong video stream. This alteration fixed the issue for me, and will likely avoid video files with multiple video streams causing issues in the future.
2023-03-02 14:14:31 +01:00
Michael Mayer
a67cb10055 Config: Allow to increase the resolution limit at your own risk
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2023-02-27 15:29:03 +01:00
Michael Mayer
2bf6b2a7f6 Faces: Add embeddings test cases #3124
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-24 14:03:13 +01:00
Michael Mayer
65c287a598 Purge: Improve logging and return number of index updates #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 18:33:50 +01:00
Michael Mayer
3c9b309ea9 Purge: Reduce wait times #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 05:21:22 +01:00
Michael Mayer
2aabeb863e Index: Refactor related file handling and logs #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 05:10:59 +01:00
Michael Mayer
9362604853 Index: Refactor file size check #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 04:31:24 +01:00
Michael Mayer
5b727dd86a Index: Improve limit checks and logging #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 04:11:09 +01:00
Michael Mayer
668395909d Index: Skip updates if there are no changes #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 03:45:58 +01:00
Michael Mayer
242c8c54b8 Index: Skip updates if there are no changes #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 01:06:52 +01:00
Michael Mayer
16f081444b Download as Zip: Include hidden files e.g. in review or broken
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 23:14:43 +01:00
Michael Mayer
1cc64cc5e6 WebDAV: Fix upload with updated client library #2267
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 21:39:40 +01:00
Michael Mayer
e1b955a35d WebP: Improve video API logging #3197 #668
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 21:38:25 +01:00
Michael Mayer
b44b8d52c1 WebP: Add support for indexing and playing animations #3197 #668
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 20:58:21 +01:00
Michael Mayer
eaff0abb6d Videos: Index and display durations of less than one second #3224
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 16:33:33 +01:00
Michael Mayer
4451447bdd Metadata: Automatically detect scans based on metadata #322
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 16:21:26 +01:00
Michael Mayer
4bd632881b JPEG: Try to fix all files with "invalid JPEG format" error #1673 #2463
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 17:45:35 +01:00
Michael Mayer
b855922283 JPEG: Automatically re-encode broken image files #1673 #2463 #2557
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 13:31:30 +01:00
Michael Mayer
7652fbd598 Convert: Update test function name #1310 #1612 #1747
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 11:41:24 +01:00
Michael Mayer
053a67f1e4 TIFF: Convert unsupported files with ImageMagick #1310 #1612 #1747
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 11:39:49 +01:00
Michael Mayer
7af3e41118 Search: Ignore sepia pictures when using the "mono" filter #596 #2657
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 10:47:15 +01:00
Michael Mayer
906e29db56 Faces: Improve warning log for almost identical faces #1497 #3124
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 04:52:39 +01:00
Michael Mayer
01d5156568 Faces: Skip ambiguous embeddings when matching #1497 #3124
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 04:49:06 +01:00
Michael Mayer
74772aea97 Config: Always initialize fixtures, even when skipping migrations #3215
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 04:44:08 +01:00
Michael Mayer
9054d8cf0f Config: Don't skip individually selected migrations #3215
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 02:08:23 +01:00
Michael Mayer
cec2b8f000 Config: Skip migrations if version has already been initialized #3215
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 01:48:42 +01:00
Michael Mayer
ac3e1a3f4c Albums: Add experimental private album flag to edit dialog #480
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 00:02:44 +01:00
Michael Mayer
7c63a86f80 CLI: Restore user accounts on demand #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-20 20:24:04 +01:00
Michael Mayer
5f808cddb4 Library: Hide private files in "Originals" if user has no permission #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-20 18:50:28 +01:00
Michael Mayer
43d6a5e193 Auth: Improve user entity model and add unit tests #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-20 15:54:33 +01:00
Michael Mayer
0e032295db Advanced Settings: Add ImageMagick, PNG, and vectors options #2207
This also improves the help texts of existing config options.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-19 16:42:19 +01:00
theresa
1aa79831c3 Tests: Fix unit test 2023-02-16 15:32:08 +01:00
Michael Mayer
95f6df6fe0 Tests: Change SQLite Memory DSN to ":memory:?cache=shared"
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-14 21:47:31 +01:00
Michael Mayer
f54512e334 Auth: Refactor user management commands #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-14 20:28:58 +01:00
theresa
b7b811b125 Tests: Add unit tests for wildcard search #2050 2023-02-14 19:51:44 +01:00
theresa
d3fb420185 Tests: Add unit tests for new search filter #3035 2023-02-14 19:14:03 +01:00
Michael Mayer
9e85a366c9 Index: Don't use ImageMagick to convert RAW images #1177 #2207 #3197
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-14 15:39:24 +01:00
Michael Mayer
b720578f7c Migrations: Reduce number of log messages
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-14 14:44:17 +01:00
Michael Mayer
527fc0319e Index: Add experimental support for JPEG XL and APNG files #668 #3197
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-14 14:43:49 +01:00
Michael Mayer
d4cbb60b92 Migrations: Improve debug log messages
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-14 11:38:00 +01:00
Michael Mayer
0c4aa86f85 CLI: Create thumbs and convert files in deterministic order #3194
This also adds support for specifying a path to the thumbs command.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-14 11:37:22 +01:00
Michael Mayer
e533aa7beb Adobe: Add support for PDF, AI, and PSD file formats #1177 #2207
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-13 20:02:26 +01:00
Michael Mayer
3e767d6b3c Improve: Shorten file support warning message #2207
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-13 15:24:59 +01:00
Michael Mayer
524b5c7f3f Config: Improve file conversion feature support detection #2207
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-13 14:41:33 +01:00
Michael Mayer
97c9962053 Index: Add experimental EPS and SVG vector graphics support #1177 #2207
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-11 20:18:04 +01:00
Michael Mayer
16a153bfa1 PWA: Load manifest.json with version parameter to limit caching #3181
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-10 16:23:36 +01:00