30643 Commits

Author SHA1 Message Date
Neeraj Gupta
a996ec3ac7 Merge branch 'main' into clip_face_integration 2024-07-24 10:46:44 +05:30
Manav Rathi
feeda425a5
[desktop] Further clarify the comment (#2528)
Updates 79fcf18f628b934fdfd1cbc6cd356545566cd85b
2024-07-23 20:00:45 +05:30
Manav Rathi
7d8961fbc5
[desktop] Further clarify the comment
Updates 79fcf18f628b934fdfd1cbc6cd356545566cd85b
2024-07-23 19:55:36 +05:30
Manav Rathi
79fcf18f62
[desktop] Fix desktop app direct uploads when self-hosting (#2527)
It seems that Backblaze returns `null` as the ACAO response if the
scheme is not http(s), even if we have set allowedOrigins to "*". The
desktop app has a custom scheme, "ente://app", which is thus causing B2
to return null.

    # Works:
curl -v -X OPTIONS -H 'Origin: http://example.org' -H
'Access-Control-Request-Method: PUT'
'https://xxx.s3.eu-central-003.backblazeb2.com/yyy'

    # Fails:
curl -v -X OPTIONS -H 'Origin: ente://example.org' -H
'Access-Control-Request-Method: PUT'
'https://xxx.s3.eu-central-003.backblazeb2.com/yyy'

Ref:
https://github.com/ente-io/ente/discussions/2461#discussioncomment-10125881
2024-07-23 19:47:28 +05:30
Manav Rathi
7f28d2bfe9
[desktop] Fix desktop app direct uploads when self-hosting
It seems that Backblaze returns `null` as the ACAO response if the scheme is not
http(s), even if we have set allowedOrigins to "*". The desktop app has a custom
scheme, "ente://app", which is thus causing B2 to return null.

    # Works:
    curl -v -X OPTIONS -H 'Origin: http://example.org' -H 'Access-Control-Request-Method: PUT' 'https://xxx.s3.eu-central-003.backblazeb2.com/yyy'

    # Fails:
    curl -v -X OPTIONS -H 'Origin: ente://example.org' -H 'Access-Control-Request-Method: PUT' 'https://xxx.s3.eu-central-003.backblazeb2.com/yyy'

Ref: https://github.com/ente-io/ente/discussions/2461#discussioncomment-10125881
2024-07-23 19:44:34 +05:30
Neeraj Gupta
ef022be4ef
[mob] Simplify APIs for compress -> encrypt & vice versa (#2524)
## Description

## Tests
2024-07-23 16:26:51 +05:30
Neeraj Gupta
4a1cb3a732 [mob] Refactor to simplify gzip/unzip enc 2024-07-23 16:18:45 +05:30
Neeraj Gupta
8283432f7a [mob] Refactor 2024-07-23 14:21:12 +05:30
Neeraj Gupta
f175033b65
[mob] Put embeddings in same object (#2521)
## Description

## Tests
2024-07-23 14:14:12 +05:30
Neeraj Gupta
af95421b3a Refactor 2024-07-23 14:09:22 +05:30
Neeraj Gupta
7bf0b398ab [mob] clean up 2024-07-23 13:55:27 +05:30
Neeraj Gupta
7ec5d8455f Merge branch 'clip_face_integration' into ml_combined 2024-07-23 13:54:22 +05:30
Neeraj Gupta
1524d2b246 [mob] Remove unused field 2024-07-23 13:47:33 +05:30
Neeraj Gupta
bfc67d741d [mob] Zip embeddings 2024-07-23 13:32:06 +05:30
Ashil
088b4b9cff
[mob][photos] Animate visibility toggling of appbar and bottom bar when toggling swipe lock (#2520) 2024-07-23 11:57:01 +05:30
ashilkn
6cb5c06ea8 [mob][photos] Animate visibility toggling of appbar and bottom bar when toggling swipe lock 2024-07-23 11:49:05 +05:30
Manav Rathi
cfb8c6a192
[docs] Mention mobile app for iCloud imports (#2519) 2024-07-23 10:52:53 +05:30
Manav Rathi
e7a399ff48
[docs] Mention mobile app for iCloud imports 2024-07-23 10:50:22 +05:30
Manav Rathi
7364b4f3ef
[web] Exif improvements - Part 2/x (#2516)
Refs:
-
https://photo.stackexchange.com/questions/130570/can-i-assume-the-datetimeoriginal-of-an-image-without-an-offsettimeoriginal-is-a
2024-07-22 21:30:44 +05:30
Manav Rathi
339182b73f
[web] Exif improvments
Refs:
- https://photo.stackexchange.com/questions/130570/can-i-assume-the-datetimeoriginal-of-an-image-without-an-offsettimeoriginal-is-a
2024-07-22 21:27:57 +05:30
Manav Rathi
6a9befd566
[web] Exif write-back improvements (#2515) 2024-07-22 21:04:32 +05:30
Manav Rathi
fc03d2196d
Tell eslint that we want the ? 2024-07-22 21:01:36 +05:30
Manav Rathi
3ff3841565
zero pad 2024-07-22 20:48:40 +05:30
Aman Raj Singh Mourya
5c28780bc0
[mob][photos] Add Swipe Restriction and Authentication for Media Files (#2502)
This PR introduces a feature to lock individual media files (photos,
live photos, and videos) in the gallery.
This feature ensures that sensitive content remains protected,
especially when the device is handed to others.

Key aspects include:
- **Locking Mechanism:** Users can lock a media file, which hides all
other options and restricts access when the device is handed to others..
- **Authentication:** To view other files, users must authenticate via
the device's lock screen or a custom app PIN/pattern.
- **Swipe Restriction:** Swiping to navigate other files triggers an
authentication prompt to ensure secure access.
2024-07-22 19:50:00 +05:30
Manav Rathi
6e37a78d54
[docs] Document the Google Takeout Intel macOS video thumbnail scenario (#2514)
Ref:
- https://github.com/ente-io/ente/issues/2189#issuecomment-2184095189
- https://discord.com/channels/948937918347608085/1254116633237127198
2024-07-22 19:29:34 +05:30
Manav Rathi
d20e880bed
Add doc note 2024-07-22 19:23:22 +05:30
Manav Rathi
2568e4cbb4
Document the case from user logs
[rndr] [error] Native thumbnail generation failed: Error: Error invoking remote method 'ffmpegExec': Error: Command failed: '/Applications/ente.app/Contents/Resources/app.asar.unpacked/node_modules/ffmpeg-static/ffmpeg' -i /var/folders/61/8lm3qh2s1vx9905_jkvgcsqh0000gn/T/ente/9P6wsR5mPA -ss '00:00:00' -vframes 1 -vf 'scale=-1:720' '/var/folders/61/8lm3qh2s1vx9
905_jkvgcsqh0000gn/T/ente/wvkVRFNgpy.jpeg'

    /bin/sh: /Applications/ente.app/Contents/Resources/app.asar.unpacked/node_modules/ffmpeg-static/ffmpeg: Bad CPU type in executable

    [rndr] [warn] Not using browser based thumbnail generation fallback for video at path takeout-xxx.zip,Takeout/yyy.mp4
2024-07-22 19:05:41 +05:30
ashilkn
4cfc38c4db [mob][photos] Resolve merge conflicts and merge main 2024-07-22 17:12:06 +05:30
ashilkn
27cd567225 [mob][photos] Remove unused translations 2024-07-22 16:49:34 +05:30
Neeraj Gupta
cdbf8c5f09
[server] Use regular go context in repo (#2512)
## Description

## Tests
2024-07-22 16:32:39 +05:30
Neeraj Gupta
f35d2773aa [server]Use regular go context in repo 2024-07-22 16:29:20 +05:30
ashilkn
310e20598e [mob][photos] Extract strings 2024-07-22 16:24:55 +05:30
Neeraj Gupta
c5731e8894
[server] Add API to return indexed files for given model (#2511)
## Description
Planning to consume this API on mobile to fetch already indexed files 

## Tests
Tested locally
2024-07-22 16:19:51 +05:30
Neeraj Gupta
40a4f783f7 [server] Add API to return indexed files for given model 2024-07-22 16:15:25 +05:30
Ashil
6afd47ce3c
Autolock options implemented (#2420) 2024-07-22 15:42:37 +05:30
Aman Raj Singh Mourya
972b7b82dd [mob][photos] Quick fixes and fallback when no system lock found 2024-07-22 15:28:09 +05:30
Manav Rathi
19e7c2d65c
Fix 2024-07-22 15:25:53 +05:30
Manav Rathi
cff6570ebb
Move to a layer that should be dealing with the piexifjs internals 2024-07-22 15:23:37 +05:30
Manav Rathi
3b1fd78fbe
Selective handling 2024-07-22 15:21:35 +05:30
Manav Rathi
ca8ae8c6e7
Fix the fallback 2024-07-22 15:16:58 +05:30
Manav Rathi
09036bb57f
Move the catch up 2024-07-22 15:02:36 +05:30
Manav Rathi
9e81591c63
Rearrange 2024-07-22 14:52:16 +05:30
Manav Rathi
fda6f68688
The default type deduced by tsc from the JS works
This file was apparently never in use (its extension was not .d.ts).
2024-07-22 14:43:11 +05:30
Manav Rathi
bd2e8bb728
Rename 2024-07-22 14:42:44 +05:30
Neeraj Gupta
5a003b6d5c [mob] Refactor 2024-07-22 14:38:43 +05:30
Neeraj Gupta
b406f0c0d8 [mob] Store remote clip and face embeddings 2024-07-22 14:30:27 +05:30
Manav Rathi
c918a796af
Add types 2024-07-22 14:27:02 +05:30
ashilkn
85413e6269 [mob][photos] Resolve merge conflicts and merge main 2024-07-22 14:23:01 +05:30
ashilkn
87bd90870b [mob][photos] Extract strings 2024-07-22 14:18:28 +05:30
Manav Rathi
67d1d6c597
Move 2024-07-22 13:57:59 +05:30