mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 11:00:39 +02:00
Merge branch 'develop' of dev.funkwhale.audio:funkwhale/funkwhale into develop
This commit is contained in:
commit
b07cc4c643
5 changed files with 17 additions and 10 deletions
|
@ -19,7 +19,18 @@ RUN \
|
|||
libffi-dev \
|
||||
make \
|
||||
zlib-dev \
|
||||
openldap-dev && \
|
||||
openldap-dev \
|
||||
jpeg-dev \
|
||||
zlib-dev \
|
||||
freetype-dev \
|
||||
lcms2-dev \
|
||||
openjpeg-dev \
|
||||
tiff-dev \
|
||||
tk-dev \
|
||||
tcl-dev \
|
||||
harfbuzz-dev \
|
||||
fribidi-dev \
|
||||
&& \
|
||||
\
|
||||
\
|
||||
ln -s /usr/bin/python3 /usr/bin/python
|
||||
|
@ -29,10 +40,6 @@ COPY ./requirements/base.txt /requirements/base.txt
|
|||
# hack around https://github.com/pypa/pip/issues/6158#issuecomment-456619072
|
||||
ENV PIP_DOWNLOAD_CACHE=/noop/
|
||||
RUN \
|
||||
echo 'fixing requirements file for alpine' && \
|
||||
sed -i '/Pillow/d' /requirements/base.txt && \
|
||||
\
|
||||
\
|
||||
echo 'installing pip requirements' && \
|
||||
pip3 install --upgrade pip && \
|
||||
pip3 install setuptools wheel && \
|
||||
|
|
|
@ -219,7 +219,7 @@ class StripExifImageField(serializers.ImageField):
|
|||
with io.BytesIO() as output:
|
||||
image_without_exif.save(
|
||||
output,
|
||||
format=PIL.Image.EXTENSION[os.path.splitext(file_obj.name)[-1]],
|
||||
format=PIL.Image.EXTENSION[os.path.splitext(file_obj.name)[-1].lower()],
|
||||
quality=100,
|
||||
)
|
||||
content = output.getvalue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue