Skip to content

Commit 303e35e

Browse files
authored
Release updates (#71)
1 parent 6ffc84f commit 303e35e

File tree

8 files changed

+33
-28
lines changed

8 files changed

+33
-28
lines changed

api/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/satori/go.uuid v1.2.0
1919
github.com/stretchr/testify v1.9.0
2020
go.uber.org/automaxprocs v1.5.3
21-
golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8
21+
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
2222
google.golang.org/grpc v1.64.0
2323
google.golang.org/protobuf v1.34.2
2424
gorm.io/driver/postgres v1.5.9

api/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ go.uber.org/automaxprocs v1.5.3 h1:kWazyxZUrS3Gs4qUpbwo5kEIMGe/DAvi5Z4tl2NW4j8=
129129
go.uber.org/automaxprocs v1.5.3/go.mod h1:eRbA25aqJrxAbsLO0xy5jVwPt7FQnRgjW+efnwa1WM0=
130130
golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI=
131131
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
132-
golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM=
133-
golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
132+
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY=
133+
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
134134
golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ=
135135
golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE=
136136
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=

docker-compose.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ services:
5050
# infra services
5151
database:
5252
container_name: database
53-
image: pgvector/pgvector:0.7.0-pg16
53+
image: pgvector/pgvector:0.7.2-pg16
5454
restart: always
5555
environment:
5656
POSTGRES_USER: smritiuser
@@ -65,7 +65,7 @@ services:
6565
# memory: 256M
6666
cache:
6767
container_name: cache
68-
image: redis:7.2.4-alpine
68+
image: redis:7.2.5-alpine
6969
restart: always
7070
command: >
7171
--requirepass smritipass
@@ -78,7 +78,7 @@ services:
7878
# memory: 256M
7979
storage:
8080
container_name: storage
81-
image: minio/minio:RELEASE.2024-05-07T06-41-25Z
81+
image: minio/minio:RELEASE.2024-06-13T22-53-53Z
8282
volumes:
8383
- ./storage:/storage
8484
ports:

docs/package-lock.json

Lines changed: 17 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "smriti",
3-
"version": "24.06.14",
3+
"version": "24.06.15",
44
"private": true,
55
"scripts": {
66
"docusaurus": "docusaurus",

docs/swagger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.3
22
info:
33
title: Smriti API
44
description: Smarter Home for all your Photos and Videos
5-
version: 24.06.14
5+
version: 24.06.15
66
servers:
77
- url: https://localhost:5001
88
tags:
@@ -1460,7 +1460,7 @@ components:
14601460
properties:
14611461
version:
14621462
type: string
1463-
example: 24.06.14
1463+
example: 24.06.15
14641464
gitSha:
14651465
type: string
14661466
example: addf120b430021c36c232c99ef8d926aea2acd6b

infra/deployments/docker-swarm/docker-compose.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ services:
3232
replicas: 2
3333
# infra services
3434
database:
35-
image: pgvector/pgvector:0.7.0-pg16
35+
image: pgvector/pgvector:0.7.2-pg16
3636
restart: always
3737
environment:
3838
POSTGRES_USER: smritiuser
@@ -41,14 +41,14 @@ services:
4141
ports:
4242
- '5432:5432'
4343
cache:
44-
image: redis:7.2.4-alpine
44+
image: redis:7.2.5-alpine
4545
command: >
4646
--requirepass smriti
4747
ports:
4848
- '6379:6379'
4949
storage:
5050
container_name: storage
51-
image: minio/minio:RELEASE.2024-05-07T06-41-25Z
51+
image: minio/minio:RELEASE.2024-06-13T22-53-53Z
5252
volumes:
5353
- ./storage:/storage
5454
ports:

worker/src/components/preview_thumbnail.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,16 @@ def _generate_video_thumbnail_and_placeholder(self, preview_video_path: str):
205205
sidx = 1 if lidx == 0 else 0
206206
percent = self.thumbnail_size/float(img.size[lidx])
207207
size = int((float(img.size[sidx])*float(percent)))
208-
img.resize(self.thumbnail_size, size)
208+
dims = [self.thumbnail_size, size] if img.size[0] > img.size[1] else [size, self.thumbnail_size]
209+
img.resize(dims[0], dims[1])
209210
with img.convert('jpeg') as converted:
210211
converted.save(filename=video_thumbnail_path)
211212
lidx = 0 if img.size[0] > img.size[1] else 1
212213
sidx = 1 if lidx == 0 else 0
213214
percent = 4/float(img.size[lidx])
214215
size = int((float(img.size[sidx])*float(percent)))
215-
img.resize(4, size)
216+
dims = [4, size] if img.size[0] > img.size[1] else [size, 4]
217+
img.resize(dims[0], dims[1])
216218
placeholder_bytes = img.make_blob()
217219
placeholder = base64.b64encode(placeholder_bytes).decode('utf-8')
218220
return video_thumbnail_path, str(placeholder)

0 commit comments

Comments
 (0)