aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dockerfile-debian-python3-sqlite13
-rw-r--r--docs/source/siteadmin/media-types.rst18
-rw-r--r--docs/source/siteadmin/relnotes.rst1
3 files changed, 27 insertions, 5 deletions
diff --git a/Dockerfile-debian-python3-sqlite b/Dockerfile-debian-python3-sqlite
index 295fa24c..8f38879c 100644
--- a/Dockerfile-debian-python3-sqlite
+++ b/Dockerfile-debian-python3-sqlite
@@ -98,6 +98,15 @@ gir1.2-gstreamer-1.0 \
gstreamer1.0-tools \
python3-gi
+# Install raw image dependencies.
+#
+# Currently (March 2021), python3-py3exiv2 is only available in Debian Sid, so
+# we need to install py3exiv2 from PyPI (later on in this Dockerfile). These are
+# the build depedencies for py3exiv2.
+RUN apt-get install -y \
+libexiv2-dev \
+libboost-python-dev
+
# Install document (PDF-only) dependencies.
# TODO: Check that PDF tests aren't skipped.
RUN apt-get install -y \
@@ -154,6 +163,9 @@ RUN ./bootstrap.sh
RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure
RUN make
+# Install raw image library from PyPI.
+RUN ./bin/pip install py3exiv2
+
# Run the tests.
RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
@@ -161,6 +173,7 @@ RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
# customised mediagoblin.ini to already install these.
RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini
RUN echo '[[mediagoblin.media_types.video]]' >> mediagoblin.ini
+RUN echo '[[mediagoblin.media_types.raw_image]]' >> mediagoblin.ini
# Prepare the SQLite database.
#
diff --git a/docs/source/siteadmin/media-types.rst b/docs/source/siteadmin/media-types.rst
index 9b2e4d9d..6c7409eb 100644
--- a/docs/source/siteadmin/media-types.rst
+++ b/docs/source/siteadmin/media-types.rst
@@ -178,9 +178,17 @@ Configuring video
Raw image
=========
-To enable raw image you need to install pyexiv2::
+MediaGoblin can extract and display the JPEG preview from RAW images.
- # Debian and co.
+To enable raw image you need to install the Python library ``py3exiv2``. This
+library is not currently available for Debian 10 or 11 but can be installed from
+the Python Package Index after installing the build dependencies::
+
+ # Debian 10/11
+ sudo apt install libexiv2-dev libboost-python-devn
+ ./bin/pip install py3pyexiv2
+
+ # Debian 12 (currently not released)
sudo apt install python3-pyexiv2
Add ``[[mediagoblin.media_types.raw_image]]`` under the ``[plugins]``
@@ -188,10 +196,10 @@ section in your ``mediagoblin.ini`` and restart MediaGoblin.
Run::
- $ ./bin/gmg dbupdate
+ ./bin/gmg dbupdate
-Restart MediaGoblin (and Celery if applicable). Now you should be able to submit
-raw images, and MediaGoblin should extract the JPEG preview from them.
+Restart MediaGoblin (and Celery if applicable). You should now be able to submit
+raw images.
ASCII art
diff --git a/docs/source/siteadmin/relnotes.rst b/docs/source/siteadmin/relnotes.rst
index 2ddeb466..1292e114 100644
--- a/docs/source/siteadmin/relnotes.rst
+++ b/docs/source/siteadmin/relnotes.rst
@@ -34,6 +34,7 @@ carefully, or at least skim over it.
**Bug fixes:**
+- Fix raw image plugin installation instruction [#5523] (Ben Sturmfels)
- Pin sqlalchemy to fix due to changed internals [#5624] (Charlotte Koch)
- Fix test suite to pass 100% (Ben Sturmfels)
- Make LDAP plugin Python 3 compatible [#5607] (Olivier Mehani)