feat(media): هر رسانهٔ آپلودی به WebP نرمال می‌شود — Pillow مسیر اصلی، FFmpeg برای ویدیو و فرمت‌های خاص؛ ویدیو تا ۸ثانیه/۱۲fps وب متحرک، غیرقابل‌رمزگشایی ۴۱۵

This commit is contained in:
aramesh-site deploy
2026-09-30 09:27:21 +00:00
parent 79ebe69221
commit c0eaac1daa
6 changed files with 258 additions and 71 deletions
+6
View File
@@ -9,6 +9,12 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# FFmpeg — نرمال‌سازی رسانه به WebP برای ورودی‌هایی که Pillow نمی‌خواند
# (ویدیو → WebP متحرک، فرمت‌های تصویری خاص). مسیر Pillow به آن وابسته نیست.
RUN apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg \
&& rm -rf /var/lib/apt/lists/*
COPY app ./app
COPY alembic.ini ./
COPY migrations ./migrations