From 8232825a088c3e82aee6bcc8654a04465492afe7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 29 Sep 2022 19:12:21 +0100 Subject: [PATCH] Add support for animated GIFs This does sadly make the container a fair bit bigger... --- Dockerfile | 4 +++- poetry.lock | 18 +++++++++++++++++- pyproject.toml | 1 + 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 16f529f..c3e7f01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,9 @@ RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-r build-essential \ libpq-dev \ curl \ - git + git \ + # wand dependencies + libmagickwand-6.q16-6 libmagickwand-6.q16hdri-6 RUN curl -fsSL https://github.com/aptible/supercronic/releases/download/v0.2.1/supercronic-linux-amd64 -o /usr/local/bin/supercronic && chmod +x /usr/local/bin/supercronic diff --git a/poetry.lock b/poetry.lock index cea1e01..45337eb 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1286,6 +1286,18 @@ python-versions = ">=3" [package.dependencies] wagtail = ">=3.0" +[[package]] +name = "Wand" +version = "0.6.10" +description = "Ctypes-based simple MagickWand API binding for Python" +category = "main" +optional = false +python-versions = "*" + +[package.extras] +doc = ["Sphinx (>=2.4.1)"] +test = ["pytest (>=5.3.5)"] + [[package]] name = "webencodings" version = "0.5.1" @@ -1359,7 +1371,7 @@ python-versions = "*" [metadata] lock-version = "1.1" python-versions = "^3.10" -content-hash = "760147aa57672b6b020362ac59e2b2cb22a058a78ff7d8423f1e950077c40ab8" +content-hash = "d963569b79f63bea87352d7f80b07a8ffaf5286aa30b10d4cfa5e44aaee61b90" [metadata.files] anyascii = [ @@ -2122,6 +2134,10 @@ wagtail-metadata = [ {file = "wagtail-metadata-4.0.1.tar.gz", hash = "sha256:688dffa4d14d63fdec24e907eeefc0df6343d6eec4c5f25c8f0ca5751e2c8f98"}, {file = "wagtail_metadata-4.0.1-py2.py3-none-any.whl", hash = "sha256:eb0f8ff47d12c7f778c4c75cd8b0cb0c03e680bee46e6041c25d6dcc00a28a09"}, ] +Wand = [ + {file = "Wand-0.6.10-py2.py3-none-any.whl", hash = "sha256:ff69eeba36ec243d9a80dec31e738091653dcd01c2668a9c22dc3ff20392596b"}, + {file = "Wand-0.6.10.tar.gz", hash = "sha256:373f4a7f2866c868c31ce910e1f9b36a92d132640a20068ec17cea3284fedc57"}, +] webencodings = [ {file = "webencodings-0.5.1-py2.py3-none-any.whl", hash = "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78"}, {file = "webencodings-0.5.1.tar.gz", hash = "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"}, diff --git a/pyproject.toml b/pyproject.toml index 0864241..48f29ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,7 @@ django-sri = "0.5.0" wagtail-2fa = "1.6.0" django-health-check = "3.17.0" wagtail-autocomplete = {git = "https://github.com/wagtail/wagtail-autocomplete", rev = "03f46a0c256989690d0a43fc21fe0f37f9ede765"} +Wand = "^0.6.10" [tool.poetry.group.dev.dependencies]