Реализовать lab5 на оценку 4: async attachments, outbox, worker и variants.

This commit is contained in:
Mikhail Verkovykh
2026-11-19 20:47:08 +03:00
parent 276dbdad8a
commit 92c67c23c0
86 changed files with 10148 additions and 30 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

@@ -0,0 +1,17 @@
"""Regenerate synthetic JPEG fixtures (needs Pillow; run once in a throwaway container):
docker run --rm -v "$PWD/student-tests/fixtures:/out" python:3.12.8-slim-bookworm \
sh -c "pip install -q pillow==11.0.0 && python /out/make_jpeg_fixtures.py"
"""
from PIL import Image
im = Image.new("RGB", (320, 200))
px = im.load()
for y in range(200):
for x in range(320):
px[x, y] = (x * 255 // 319, y * 255 // 199, (x + y) % 256)
im.save("/out/sample.jpg", "JPEG", quality=85)
im.save("/out/progressive.jpg", "JPEG", quality=80, progressive=True)
im.convert("L").save("/out/gray.jpg", "JPEG", quality=80)
print("ok")
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB