mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-26 14:38:30 +02:00
Social preview (#88)
* added social previews and command to the preview generating script * upd preview Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
This commit is contained in:
co-authored by
Andrey Vasnetsov
parent
abe54327a5
commit
092697f71e
@@ -17,12 +17,12 @@ if [ ! -f "$1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
IMG_DESTINATION="./qdrant-landing/static/articles_data/${2}/preview"
|
||||
mkdir -p $IMG_DESTINATION
|
||||
|
||||
convert "$1" "${IMG_DESTINATION}/title.jpg";
|
||||
mogrify -resize 898x300^ -gravity center -extent 898x300 "${IMG_DESTINATION}/title.jpg";
|
||||
convert "$1" -resize 1200x630^ -gravity center -extent 1200x630 "${IMG_DESTINATION}/social_preview.jpg";
|
||||
|
||||
convert "$1" -resize 898x300^ -gravity center -extent 898x300 "${IMG_DESTINATION}/title.jpg";
|
||||
convert "${IMG_DESTINATION}/title.jpg" -resize 530x145^ -gravity center -extent 530x145 "${IMG_DESTINATION}/preview.jpg";
|
||||
|
||||
cwebp -q 95 "${IMG_DESTINATION}/title.jpg" -o "${IMG_DESTINATION}/title.webp";
|
||||
|
||||
Reference in New Issue
Block a user