hello: Add interactive block showing basic usage.

Co-Authored-By: Vlad Korobov <terpimost@gmail.com>
This commit is contained in:
Aman Agrawal
2024-09-30 15:37:46 +00:00
committed by Tim Abbott
parent 3001f59d00
commit ec23f5e77b
15 changed files with 315 additions and 129 deletions

View File

@@ -36,7 +36,7 @@ def generate_landing_page_images() -> None:
scaled_width = get_x_size(image.width, size)
scaled_height = get_x_size(image.height, size)
scaled = image.thumbnail_image(scaled_width, height=scaled_height)
for format in ("webp[Q=55]", "jpg[Q=75,optimize-coding=true]"):
for format in ("webp[Q=60]", "jpg[Q=80,optimize-coding=true]"):
scaled.write_to_file(f"{GENERATED_IMAGES_DIR}/{file_name}-{size}x.{format}")