Commit Graph

533 Commits (549e06853ae0fa3cce86169bba0171303cfd79f8)

Author SHA1 Message Date
Varun Patil e32f934fd2 tw: improve place error handling 2023-02-07 19:48:19 -08:00
Varun Patil b7cfaca2d8 controller: add type casts for getPreviewFromImageList 2023-02-07 18:52:43 -08:00
Varun Patil 92b36613a7 places: add type cast to postgres function 2023-02-06 11:45:35 -08:00
Varun Patil 2adb7d693a places: use prepared statement for setup 2023-02-06 11:40:33 -08:00
Varun Patil bc6366c65f places: refactor string interpolation 2023-02-06 10:50:48 -08:00
Varun Patil 5dffccbc91 places-setup: fix duplicate prints 2023-02-06 08:01:47 -08:00
Varun Patil 1be68551e5 lint: fix php 2023-02-06 07:58:36 -08:00
Varun Patil db6b240593 places: ensure zip is also deleted 2023-02-06 07:56:02 -08:00
Varun Patil 8018edd5b2 places: make sure data is deleted 2023-02-06 07:54:25 -08:00
Varun Patil a43316353b places: bump up geodb 2023-02-06 07:50:07 -08:00
Varun Patil df359bc099 tw: rename updateGeoData 2023-02-06 07:38:30 -08:00
Varun Patil 6c9d2d12c5 tw: add missing execute to geo 2023-02-06 07:38:07 -08:00
Varun Patil 24c0956b20 places: fix inners for postgres 2023-02-06 07:36:29 -08:00
Varun Patil 02356f76ac places: remove frivolous print 2023-02-06 07:31:48 -08:00
Varun Patil a0280aea73 places: handle inner rings 2023-02-06 07:30:04 -08:00
Varun Patil b23fa125ac places: skip overly specific places 2023-02-05 23:24:29 -08:00
Varun Patil 63576dbde9 places: add data download 2023-02-05 22:42:34 -08:00
Varun Patil 75de618f56 places: fix for postgres 2023-02-05 22:23:44 -08:00
Varun Patil 926692d65b migration: change index name 2023-02-05 22:00:54 -08:00
Varun Patil b25731e9ac places: hide when not configured/enabled 2023-02-05 19:55:39 -08:00
Varun Patil bae5f99b2b meta: use places 2023-02-05 19:46:44 -08:00
Varun Patil c3fa9f0d4c lint: fix php 2023-02-05 18:47:10 -08:00
Varun Patil 9ac95ef844 geo-setup: combine truncate statements 2023-02-05 18:46:39 -08:00
Varun Patil 2c510b12b8 tw: clear places on delete 2023-02-05 18:34:54 -08:00
Varun Patil a074f158d3 geo: new adaption 2023-02-05 18:29:09 -08:00
Varun Patil 6885155313 Add geo to info.xml 2023-02-05 17:24:39 -08:00
Varun Patil 24e70a7e06 Add WIP table creation 2023-02-05 17:15:18 -08:00
Varun Patil 62579b1b89 Initial places implementation 2023-02-05 13:43:25 -08:00
Varun Patil 7f21e8802d tq: fix debugger for array 2023-02-05 12:41:36 -08:00
Matias De lellis 3b29328377 Fix FaceRecognition integration doesn't work with postgresql database.
Following the discussion in #304, I tried this solution using the
strict mode of mariadb/mysql.

Split the Clusters and People queries to minimize the considerations
of both functions. Otherwise I had to add many nested ifs.

Also change to only show 15 clusters (as a small optimization) since
there is no point in showing everything, and it is better to show these
little by little.
2023-02-02 22:28:59 -03:00
Raymond Huang 93b4b0274e Merge branch 'master' into location 2023-02-01 12:18:42 +08:00
Varun Patil 0f5162bd68 video: allow setting default quality (fix #364) 2023-01-31 20:15:16 -08:00
Raymond Huang 750636de67 style: apply lint 2023-02-01 12:08:11 +08:00
Raymond Huang ea289c4f02 style: remove unused code 2023-02-01 12:02:01 +08:00
Varun Patil eb9cd27d98 video: make go-vod port configurable (fix #354) 2023-01-31 19:56:41 -08:00
Raymond Huang 60ee600c52 refactor: program as a transform insstead of duplication 2023-02-01 11:54:35 +08:00
Varun Patil ecc6510713 video: ensure no trailing slash in govod temp dir 2023-01-31 19:39:57 -08:00
Varun Patil 8ff3bf0f4d video: create go-vod temp dir (fix #353) 2023-01-31 19:37:39 -08:00
Varun Patil 6261ffd35a fix: clear temp fies during index (fix #355) 2023-01-31 19:14:52 -08:00
Varun Patil d6fba7e4a9 write: check array keys for exif filter (fix #381) 2023-01-28 08:53:01 -08:00
Varun Patil 25318b9402 write: fix getLivePhotoId call 2023-01-26 11:52:19 -08:00
Varun Patil 457ac16db1 livephoto: multiple trailers in Google (fix #373) 2023-01-26 10:50:41 -08:00
Raymond Huang 2097f26d17 style: apply prettier lint 2023-01-26 12:51:42 +08:00
Raymond Huang ea8d08eba7 style: apply php-lint 2023-01-26 08:48:17 +08:00
Raymond Huang 2bc2c50bee fix: call withBound function in preloadDays 2023-01-26 07:23:46 +08:00
Raymond Huang 68a39918b5 feat: show photos taken in locations visible in map 2023-01-26 02:41:55 +08:00
Varun Patil c59066ce0e write: filter EXIF fields with whitelist (fix #367) 2023-01-22 16:51:26 -08:00
Varun Patil a4f276b605 util: use 9 for SIGKILL (#360) 2023-01-21 09:01:50 -08:00
Varun Patil b9722e925c download: fix wrong user context in one (fix #361) 2023-01-21 08:53:48 -08:00
Varun Patil 0fae4d1ba9 Tab -> Space 2023-01-20 10:50:48 -08:00
Varun Patil 810fc69c5b video: reword QSV to VAAPI (#351) 2023-01-19 10:40:07 -08:00
Varun Patil b9a846603b base: add type cast to album check (#346) 2023-01-18 11:32:13 -08:00
Varun Patil 134a1bd898 image: touch file on exif change (fix #282) 2023-01-18 10:34:34 -08:00
Varun Patil fbbfbf18ec folder: fixes for timeline view 2023-01-17 21:18:27 -08:00
Varun Patil 1b14fc4901 Merge branch 'feat/recursive-folder' of https://github.com/keyeh/memories into keyeh-feat/recursive-folder 2023-01-17 21:09:48 -08:00
Varun Patil b18a098f47 index: allow cleaning up orphans (fix #326) 2023-01-17 20:52:26 -08:00
Varun Patil 62ae3c910a download: use unified API for single file stream 2023-01-17 19:55:17 -08:00
Varun Patil 0b40d80854 video-setup: add null check for ffmpeg (#345) 2023-01-17 19:11:20 -08:00
Varun Patil 8bd1834214 refactor: page controller csp together 2023-01-17 19:09:02 -08:00
Varun Patil 24a3b8c638 Fix album public link (fix #344, fix #274) 2023-01-17 19:02:00 -08:00
Varun Patil 816294b591 album: fix sharing with group (fix #329) 2023-01-15 14:43:48 -08:00
Varun Patil 892abe81cc album: cast id to int (fix #292) 2023-01-15 13:50:32 -08:00
Kevin Yeh c42825daad Merge branch 'master' into feat/recursive-folder 2023-01-05 10:19:41 -08:00
Varun Patil 5ce8e1d438 util: fix pkill when no process 2023-01-04 12:47:10 -08:00
Varun Patil 33a14932c4 Fix header title on public share (fix #323) 2023-01-04 12:38:44 -08:00
Varun Patil 6a0a3a370e Remove usage of pkill (fix #286) 2023-01-04 12:32:36 -08:00
Varun Patil 37a26b8c31 write: cast video duration to float before round 2022-12-22 10:49:28 -08:00
Varun Patil 70f3fbaea1 cmd: catch all indexing errors 2022-12-22 10:49:06 -08:00
Varun Patil a9dca58c98 Fix exiftool version 2022-12-21 11:25:00 -08:00
Varun Patil 057795b186 download: add UseSession annotation 2022-12-08 14:40:31 -08:00
Varun Patil 1204982c0b multipreview: check params 2022-12-08 13:37:55 -08:00
Varun Patil 141a9fe4a4 php: lint docs 2022-12-08 13:08:38 -08:00
Matias De lellis aeffe628f2 Integration with facerecognition 2022-12-08 13:07:14 -08:00
Varun Patil 6707050883 lint: php 2022-12-07 15:46:52 -08:00
Varun Patil 0f31f845fb big: add multipreview 2022-12-07 15:33:47 -08:00
Varun Patil 95925c20e8 lint: php 2022-12-06 11:53:43 -08:00
Varun Patil 56df346c92 download: fix zip file name 2022-12-06 11:53:31 -08:00
Varun Patil 2011433536 albums: add download menu 2022-12-06 11:38:57 -08:00
Varun Patil 67cc205288 download: switch to unified API (fix #259, fix #262)
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
2022-12-06 11:02:53 -08:00
Varun Patil ceb2365cf5 lint: php 2022-12-04 20:05:05 -08:00
Varun Patil c6a4b4e3e9 days: remove rootid from response 2022-12-04 20:04:48 -08:00
Varun Patil 604371c5cd tag: design update 2022-12-04 18:52:29 -08:00
Varun Patil d9c6d0a597 general: fix use of deprecated get methods 2022-12-04 09:57:31 -08:00
Varun Patil 355b74e19b general: reduce more DI 2022-12-04 09:47:10 -08:00
Varun Patil 4c2bc5a675 general: reduce some DI 2022-12-04 09:33:20 -08:00
Varun Patil 04614b9c6e base: uppercase getUid 2022-12-04 09:22:59 -08:00
Varun Patil d8af8ae3ba base: validate no-read shares 2022-12-04 09:20:46 -08:00
Varun Patil 93da22e0fa image: don't interlace jpeg 2022-12-03 09:07:08 -08:00
Varun Patil 5a54c1217b video: remove useless ob_flush call 2022-12-03 00:19:57 -08:00
Varun Patil 0ce283561e tq: fix davPaths warning 2022-12-03 00:14:29 -08:00
Varun Patil 4f81eadb9b albums: fix collabs table on 2.0.1 2022-12-02 23:54:09 -08:00
Varun Patil e2919ff2d4 exif: store w/h for high-res images 2022-12-02 23:50:33 -08:00
Varun Patil e60d97ae5e video: allow transcoding everywhere 2022-12-02 22:23:43 -08:00
Varun Patil 874258dae9 livephoto: allow access for folder shares 2022-12-02 21:53:30 -08:00
Varun Patil 1866ce5dfa preview: fix for shared album 2022-12-02 21:42:52 -08:00
Varun Patil 6b1cb41c25 share: hide download button if needed (fix #273) 2022-12-02 21:25:24 -08:00
Varun Patil 0e17ef69a9 preview: increase efficiency 2022-12-02 21:11:09 -08:00
Varun Patil db125b5298 preview: use unified preview API 2022-12-02 21:04:31 -08:00
Varun Patil df0272e95d refactor: use args for controller query params 2022-12-02 20:48:55 -08:00
Varun Patil a59860e654 Fix lint 2022-12-02 20:42:39 -08:00
Varun Patil 63059ecba2 share: check password in API calls 2022-12-02 20:29:34 -08:00
Varun Patil 719022848b refactor: add getShareNode to ApiBase 2022-12-02 20:21:34 -08:00
Varun Patil 6db1752359 apibase: check share readable 2022-12-02 20:12:21 -08:00
Varun Patil 1a9d229b95 general: add unified file get API 2022-12-02 20:07:06 -08:00
Varun Patil 22d20756d7 albums: don't pass connection for no reason 2022-12-02 19:23:29 -08:00
Varun Patil 145d6affdd Interlace output jpeg 2022-12-02 19:08:53 -08:00
Varun Patil 474090017c tags: make sorting case-insensitive (fix #271) 2022-11-30 06:31:45 -08:00
Varun Patil 9a958a65b7 Use mov for livephoto transcodes 2022-11-29 14:21:34 -08:00
Varun Patil 1f60010f6f video: refactor transcoder starter 2022-11-29 14:16:59 -08:00
Varun Patil 5550551e8a Use client id for live photo transcodes 2022-11-29 14:09:48 -08:00
Varun Patil 15997dc793 Add GPU transcoding for NVIDIA (fix #194) 2022-11-29 14:03:37 -08:00
Varun Patil f5cfa095ce livephoto: transcode Apple for HEVC (fix #234) 2022-11-29 13:31:06 -08:00
Varun Patil 8adedd1885 video: abort curl on termination 2022-11-29 13:00:54 -08:00
Varun Patil a982416712 video: stream directly to browser 2022-11-29 11:11:03 -08:00
Varun Patil 240ca8a2b5 lint: fix whitespace 2022-11-29 09:04:09 -08:00
Varun Patil 7458478f93 Fix albums for Photos v2.2.0 2022-11-29 08:57:03 -08:00
Varun Patil e2e5375e53 General cleanup 2022-11-28 15:19:26 -08:00
Varun Patil 09be416802 lint: add missing whitespace 2022-11-28 06:11:19 -08:00
Varun Patil 7862d28dc1 faces: skip invalid face images (#230) 2022-11-28 06:00:55 -08:00
Kevin Yeh 069db130a7 feat: recursive folder view 2022-11-25 19:51:05 -08:00
Varun Patil 94516d183b Prevent log spam when missing mime (#258) 2022-11-25 07:36:23 -08:00
Varun Patil 4a80d94cb0 Fix double slash in filename (#242) 2022-11-24 07:52:19 -08:00
Varun Patil 876cfac192 exif: increase timeout to 30s 2022-11-24 03:18:35 -08:00
Varun Patil e5cc14bad0 index: use realpath for test file 2022-11-24 03:13:34 -08:00
Varun Patil 2537239af2 Catch all processing errors (#250) 2022-11-24 03:04:41 -08:00
Varun Patil f7c89e8789 Improve php typings 2022-11-23 18:28:34 -08:00
Varun Patil b81d9c1df6 Delete livephoto entries on deletion 2022-11-23 10:40:41 -08:00
Varun Patil 271dd5b230 PHP lint fix 2022-11-23 04:53:16 -08:00
Varun Patil d954c9422f refactor: video controller live 2022-11-23 01:49:43 -08:00
Varun Patil 573f5c3fad Truncate livephoto on clear 2022-11-23 01:49:00 -08:00
Varun Patil 92d6d9a5e2 Fix video-setup checks (fix #223) 2022-11-23 01:38:36 -08:00
Varun Patil 776758bd68 cmd: make parseFolder args float (#238) 2022-11-23 01:25:07 -08:00
Varun Patil 6a9c95a67e Revert "release: v4.8.0"
This reverts commit d81887bf65.
2022-11-22 09:42:31 -08:00
Varun Patil d81887bf65 release: v4.8.0 2022-11-22 09:39:45 -08:00
Varun Patil 9fe31c87b6 livephoto: fix iOS deletion 2022-11-22 09:19:31 -08:00
Varun Patil 799a39f968 livephoto: add Google and Samsung support 2022-11-22 08:54:19 -08:00
Varun Patil 71323da83a Lint php 2022-11-22 06:30:24 -08:00
Varun Patil c3ddd4087f livephoto: add video download button 2022-11-22 06:27:10 -08:00
Varun Patil 48fabeb445 livephoto: return video 2022-11-22 03:35:20 -08:00
Varun Patil aded4275d1 livephoto: add API to get video 2022-11-22 03:31:31 -08:00
Varun Patil ffbde874d4 Separate apple livephoto video part 2022-11-22 03:10:25 -08:00
Varun Patil 8358c74abb Strip Nikon shotinfo 2022-11-22 02:46:48 -08:00
Varun Patil 6c74fdf340 video-setup: don't overwrite manually configured transcoder (#224) 2022-11-21 02:43:03 -08:00
Varun Patil 0315668e28 lint: fix php 2022-11-21 02:38:12 -08:00
Varun Patil 83650482da Explicitly detect ffmpeg path (fix #212) 2022-11-21 02:34:57 -08:00
Varun Patil 81bceb9334 Lint PHP 2022-11-21 02:18:06 -08:00
Varun Patil 08ce081a96 Merge branch 'patch-1' of https://github.com/eltos/memories into eltos-patch-1 2022-11-21 02:16:03 -08:00
Varun Patil cf4ae6a84a Allow server-side encryption
Close #175. Close #99. Squashed commit of the following:

commit 7c5e11dded8aff22b77bb3d01233350f86af04f4
Author: Varun Patil <varunpatil@ucla.edu>
Date:   Mon Nov 21 02:12:34 2022 -0800

    Fix lint

commit b421a6d61c1143aac38d954bee032f582b71b492
Merge: 9e91d1d 019cdd3
Author: Varun Patil <varunpatil@ucla.edu>
Date:   Mon Nov 21 02:11:37 2022 -0800

    Merge branch 'eltos-patch-99' of https://github.com/eltos/memories into eltos-eltos-patch-99

commit 019cdd31f2
Author: eltos <eltos@outlook.de>
Date:   Sat Nov 19 18:32:36 2022 +0100

    Check for e2e encryption before indexing

commit 5078d986da
Author: eltos <eltos@outlook.de>
Date:   Sat Nov 19 18:28:57 2022 +0100

    Check for e2e encryption when changing exif data

commit 1167365f7e
Merge: d465400 e210c32
Author: Philipp Niedermayer <eltos@outlook.de>
Date:   Sat Nov 19 15:52:58 2022 +0100

    Merge branch 'pulsejet:master' into eltos-patch-99

commit d465400969
Author: Philipp Niedermayer <eltos@outlook.de>
Date:   Mon Nov 7 22:21:20 2022 +0100

    Allow server-side encryption

    See https://github.com/pulsejet/memories/issues/99
2022-11-21 02:13:43 -08:00
Varun Patil 9e91d1d435 write: check encoded json (fix #220) 2022-11-21 01:43:17 -08:00
Philipp Niedermayer 5ea35fb36a Report progress during indexing
Besides adding a percentage progress, this also exploits the ConsoleSectionOutput capability of Symfony to simplify the carriage return gymnastics and to fix it for paths exceeding the console window width.
2022-11-19 22:58:41 +01:00