sync image artifact generation simplified: upload only original image
This commit is contained in:
1 parent
877c63a874
commit
a4d245007e
2 files changed
+9
-1
No files matched your search
@@ -49,6 +49,8 @@ image_sizes = [
|
||||
|
||||
('large', 2500, 1000),
|
||||
('large@2', 5000, 2000),
|
||||
# ('large', 2500, 1000),
|
||||
# ('large@2', 5000, 2000),
|
||||
|
||||
('big', 1500, 667),
|
||||
('big@2', 3000, 1334),
|
||||
@@ -58,12 +60,18 @@ image_sizes = [
|
||||
|
||||
('small', 250, 175),
|
||||
('small@2', 500, 350),
|
||||
# ('small', 250, 175),
|
||||
# ('small@2', 500, 350),
|
||||
|
||||
('og', 968, 504),
|
||||
('og@2', 1936, 1008),
|
||||
# ('og', 968, 504),
|
||||
# ('og@2', 1936, 1008),
|
||||
|
||||
('fb', 1200, 630),
|
||||
('fb@2', 2400, 1260),
|
||||
# ('fb', 1200, 630),
|
||||
# ('fb@2', 2400, 1260),
|
||||
]
|
||||
|
||||
date_formats = [
|
||||
|
||||
@@ -86,7 +86,7 @@ async def create_post(provider: Provider, folder: str, md: str, sizes):
|
||||
text = data['caption'] if data['caption'] else data['file']
|
||||
url = f'/document/{document.id}'
|
||||
|
||||
image_url = document.preview.get_size('small')['url']
|
||||
image_url = document.preview.get_src()
|
||||
|
||||
return {
|
||||
'url': url,
|
||||
|
||||
Reference in new issue
Block a user