Commit Graph

327 Commits (fedb029b3f8e584ac34e9a68af9b21eb294dbd3f)

Author SHA1 Message Date
Varun Patil f4940710a6 map: use floor for consistent grouping 2023-02-10 09:55:58 -08:00
Varun Patil 4ae8537691 tw: refactor and add comments to map 2023-02-10 09:36:20 -08:00
Varun Patil 87e0b05726 tw: refactor map function names 2023-02-10 09:29:42 -08:00
Varun Patil 37c2a0fc74 map: use separate statement for aggregate update (fix #403) 2023-02-10 09:26:49 -08:00
Varun Patil eaeb114c59 map: remove fine grouping 2023-02-09 20:30:25 -08:00
Varun Patil 77c63c55cf map: fix typing 2023-02-09 20:14:10 -08:00
Varun Patil efcf9a9e91 map: fix wrong URL for preview 2023-02-09 18:14:12 -08:00
Varun Patil 4527b157a6 lint: fix php 2023-02-09 17:27:18 -08:00
Varun Patil cc2accae54 map: open photo on click at high zoom 2023-02-09 17:27:03 -08:00
Varun Patil efceb7feaf
Merge pull request #391 from matiasdelellis/FRpostgresql
Fix FaceRecognition integration doesn't work with postgresql database.
2023-02-09 11:18:02 -08:00
Varun Patil f7b7fa2ac8 map: fix cluster on deletion 2023-02-09 08:40:26 -08:00
Varun Patil 36f32da13f map: more minor fixes 2023-02-09 08:25:37 -08:00
Varun Patil 1751ad7d80 map: add migration 2023-02-09 00:35:35 -08:00
Varun Patil 85f3d635c6 map: show preview of coarse 2023-02-08 23:36:31 -08:00
Varun Patil e7c8748cc9 draft: eager clustering 2023-02-08 21:55:12 -08:00
Varun Patil 74e69d0d6f tq: fix typing 2023-02-08 17:45:55 -08:00
Varun Patil 64d4205346 map: refactor 2023-02-08 14:00:56 -08:00
Varun Patil 7d90aeacb1 map: restore functionality 2023-02-08 13:35:42 -08:00
Varun Patil bcc35d6132 Merge branch 'RaymondHuang210129-location' into map 2023-02-08 11:44:51 -08:00
Varun Patil 4d94353406 Merge branch 'location' of https://github.com/RaymondHuang210129/memories into RaymondHuang210129-location 2023-02-08 11:43:52 -08:00
Raymond Huang 0987ab95c5 feat: improve marker clustering logic 2023-02-09 02:52:53 +08:00
Varun Patil 99ce1fcfd6 map: add migration 2023-02-08 10:45:25 -08:00
Varun Patil c6edd10c85 Merge branch 'location' of https://github.com/RaymondHuang210129/memories into RaymondHuang210129-location 2023-02-08 10:12:40 -08:00
Raymond Huang 7d01849f8e feat: show clusters of photos on the map 2023-02-08 11:59:04 +08:00
Varun Patil e32f934fd2 tw: improve place error handling 2023-02-07 19:48:19 -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 a0280aea73 places: handle inner rings 2023-02-06 07:30:04 -08:00
Varun Patil 75de618f56 places: fix for postgres 2023-02-05 22:23:44 -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 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 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
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
Raymond Huang 60ee600c52 refactor: program as a transform insstead of duplication 2023-02-01 11:54:35 +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 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 0fae4d1ba9 Tab -> Space 2023-01-20 10:50:48 -08:00
Varun Patil b18a098f47 index: allow cleaning up orphans (fix #326) 2023-01-17 20:52:26 -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 37a26b8c31 write: cast video duration to float before round 2022-12-22 10:49:28 -08:00
Matias De lellis aeffe628f2 Integration with facerecognition 2022-12-08 13:07:14 -08:00
Varun Patil 2011433536 albums: add download menu 2022-12-06 11:38:57 -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 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 1866ce5dfa preview: fix for shared album 2022-12-02 21:42:52 -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 474090017c tags: make sorting case-insensitive (fix #271) 2022-11-30 06:31:45 -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 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 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 573f5c3fad Truncate livephoto on clear 2022-11-23 01:49:00 -08:00
Varun Patil 799a39f968 livephoto: add Google and Samsung support 2022-11-22 08:54:19 -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 9e91d1d435 write: check encoded json (fix #220) 2022-11-21 01:43:17 -08:00
Varun Patil 579984041a albums: fix for multipath 2022-11-16 02:35:17 -08:00
Varun Patil c3f874d4b4 PHP Lint 2022-11-16 02:30:51 -08:00
Varun Patil 0a0d1d9e52 Fix duplicate folders in CTE response 2022-11-16 01:49:03 -08:00
Varun Patil 3154de7ac9 Select rootid only for day query 2022-11-16 01:17:01 -08:00
Varun Patil cd3fb4b897 Fix rootid warning 2022-11-16 00:23:57 -08:00
Varun Patil bd89c9d355 Fix some errors 2022-11-16 00:16:07 -08:00
Varun Patil a6ef3ac9bf Add support for multiple timeline paths 2022-11-16 00:16:01 -08:00
Varun Patil d9afbbe710 Refactor all calls to use TimelineRoot 2022-11-15 23:45:01 -08:00
Varun Patil e9f67b24e6 Lint PHP 2022-11-15 21:45:52 -08:00
Varun Patil 46ac8cf55e Fix archive rootid 2022-11-15 21:22:40 -08:00
Varun Patil 0c6d5a57b5 Fix filename of recursive mounts 2022-11-15 21:05:11 -08:00
Varun Patil 34340de5f1 big: recurse all mountpoints in timeline path 2022-11-15 07:12:27 -08:00
Varun Patil c61edac55d Fix error in info 2022-11-10 22:39:52 -08:00
Varun Patil 11afad852b Lot of de-duplication 2022-11-09 22:19:44 -08:00
Varun Patil 0dc4784f1a Restore metadata after image edit (fix #174) 2022-11-09 21:39:13 -08:00
Varun Patil 06d226432f timeline: show video duration 2022-11-09 19:48:03 -08:00
Varun Patil 0fbe35db7d Return exif in info call 2022-11-07 13:25:52 -08:00
Varun Patil 1d65a6dabe Store exif meta in db 2022-11-07 13:13:16 -08:00
Varun Patil 5ce70faee1 php-lint 2022-11-06 20:49:33 -08:00
Varun Patil 6f3cb99ddb Hide folders without photos (fix #163) 2022-11-06 20:48:10 -08:00
Varun Patil 80a76a5a48 Group months in album 2022-11-03 15:39:48 -07:00
Varun Patil 8698197ed5 Group by ID in tags (postgres) 2022-10-31 23:15:39 -07:00
Varun Patil 47461c9a8c Single quote for string in SQL 2022-10-31 22:59:14 -07:00
Varun Patil 922e9a5c51 Store fileid as string (objectid) for tags (#118) 2022-10-31 20:56:26 -07:00
Varun Patil defa30f547 Remove hardcoded mimetype (fix #136) 2022-10-31 20:21:21 -07:00
Varun Patil 4b75118f3c Truncate for clear instead of delete 2022-10-29 21:28:42 -07:00
Varun Patil 705cb4fdbd cmd: don't pass schema byref 2022-10-28 23:00:56 -07:00
Varun Patil 2c40f8d57e Fix filename for shared folders 2022-10-28 18:29:28 -07:00
Varun Patil cd2f714e92 Include filename in days 2022-10-28 18:11:58 -07:00
Varun Patil 9209b8f55d Add basic folder share stuff 2022-10-28 17:25:39 -07:00
Varun Patil f2d61c3e07 Fix shared album photo viewing 2022-10-28 14:26:56 -07:00
Varun Patil a0d757adfc Use separate tag preview endpoint 2022-10-27 13:26:51 -07:00
Varun Patil 46eb0fd97a Fix debug fun 2022-10-27 12:58:47 -07:00
Varun Patil de845bd543 Speed up tags 2022-10-27 12:54:51 -07:00
Varun Patil 759076c4ac Use INNER JOIN for CTE 2022-10-27 09:19:25 -07:00
Varun Patil 038ba2eb87 Add shared albums 2022-10-27 02:36:20 -07:00
Varun Patil 9afd99de2a Lint php 2022-10-27 00:53:44 -07:00
Varun Patil 9891a03d9e Add album create dialog 2022-10-27 00:11:35 -07:00
Varun Patil c9a2c8a021 Add album form 2022-10-26 23:37:56 -07:00
Varun Patil 8d97dc7914 Add albums transform 2022-10-26 21:33:37 -07:00
Varun Patil 50bb55536f albums: add list 2022-10-26 21:33:37 -07:00
Varun Patil 294b3b8a0c albums: initial commit 2022-10-26 21:33:37 -07:00
Varun Patil bf04221a0a Fix invalid type of excludedFolderIds 2022-10-26 11:13:58 -07:00
Varun Patil d43fd807f9 Convert folderIds to int 2022-10-26 10:51:43 -07:00
Varun Patil 15db6da859 Pass only var by ref 2022-10-26 10:40:33 -07:00
Varun Patil cfeebbf4fa perf: add indices (#114) 2022-10-26 10:06:45 -07:00
Varun Patil 6d8f06c885 tag: get rid of windowing 2022-10-26 09:31:27 -07:00
Varun Patil 58e3b87cc4 Only check images for preview 2022-10-25 10:25:26 -07:00
Varun Patil 506ea05d8b Add preview generator check to write 2022-10-24 17:47:25 -07:00
Varun Patil fac08ae96d Switch to CTE 2022-10-24 17:14:50 -07:00
Varun Patil f2367ac7b7 Don't join facerect for days (#105) 2022-10-24 09:21:38 -07:00
Varun Patil 488ad4f574 tq: fix ambiguous column name 2022-10-22 08:40:41 -07:00
Varun Patil 67974878d9 Lint PHP 2022-10-20 20:53:38 -07:00
Varun Patil ae5e24c74a Improve face scoring 2022-10-20 20:52:47 -07:00
Varun Patil fcd8c4c388 More lint 2022-10-19 10:15:14 -07:00
Varun Patil 26cb158b2e Lint 2022-10-19 10:10:36 -07:00
Varun Patil 38ceddc609 Mark person in preview (fix #79) 2022-10-18 14:08:27 -07:00
Varun Patil 2f159d0949 faces: place unnamed clusters at the end (fix #76) 2022-10-18 08:02:56 -07:00
Varun Patil 3e54bc72c1 faces: crop with imagick (#72) 2022-10-17 10:41:58 -07:00
Varun Patil 8a2631ffff Break ties in face/tag 2022-10-16 16:46:37 -07:00
Varun Patil 17e54825e1 query: add tie-breaker to days sorting 2022-10-16 12:18:31 -07:00
Varun Patil c30a0828cb Add w/h to day response 2022-10-15 12:23:31 -07:00
Varun Patil 41112ad641 Store image dimensions in table 2022-10-15 12:15:07 -07:00
Varun Patil e81b7c6d59 Fix opening nameless faces 2022-10-10 17:17:42 -07:00
Varun Patil 6d99ad01d7 Catch transform errors 2022-10-07 23:46:08 -07:00
Varun Patil 6fcb3ba457 Use name for face fetching 2022-10-07 23:26:09 -07:00
Varun Patil d40217604e Use single query for tag previews 2022-10-07 19:09:05 -07:00
Varun Patil 991515e9e5 Get face previews in single query 2022-10-07 19:00:55 -07:00