forked from django-cms/django-filer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SVG support for django-filer (django-cms#1226)
* drop support for high resolution images * migrate image model fields width and height to float * SVG images: store width and height in table * fix django-cms#1216: mime-type when using dropzone * drop quality and other parameters for PNG and SVG in thumb-filename * fix django-cms#1216: mime-type when using dropzone * Fix: SVG images don’t have an exif header * Fix: SVG images don’t have an exif header * do not check for file extension if MIME type is 'application/octet-stream' * replace all occurences of force_text by force_str * upgrade to work with nodejs version 14 * move towards templatetag thumbnail * upgrade to work with nodejs version 14 * proceed with latest versions of npm and gulp * downgrade phantom and request * install gulp globally * add gulp-util to dependencies * pin nodejs to 14.15.0 * more tests in gulp ci * try with older versions * with these versions of node packages, CI runs locally * remove hacks required for retina.js’s highres images * introduce templatetag file_icon * fix some exceptions cause by bad filetype guessing * Add method ‘exists()’ on MultiStorageFieldFile * increase icon size in directory listing from 25 to 40 * use SVG icons * remove png icons and add deprecation warning if used * add properties mime_maintype and mime_subtype * make audio element behave like image * add video element * render file icon for PDF * Do not create file icons upon upload * remove focal-point.js from views without preview image * remove unused icon * handle drag & drop of images onto existing plugins * adopt drag-zone to preview images in 80x80 * adopt drag-zone to preview images in 80x80 * create prerelease of upcoming version of django-filer * fix scaling of very large images: ceil height to integer * use exists-method to check for file on disk * Pin to pre-release of easy-thumbnails (with SVG support) * fix typo * fix: add mime_type to filer’s Image rather than Django’s File model * Fields _width and _height are floats now * round width and height to one decimal unit * Drop support for Python-3.5 it is not supported by reportlabs and end of life anyway * fix E125 continuation line with same indent as next logical line * Fields _width and _height are floats now * fix sorting order reproted by isort * isort complains about one missing empty line * Bump to version 2.1rc1 * Bump to version 2.1rc1 * simplify code for property exif * fix django-cms#1227: Dropzone layout and render field label Co-authored-by: Jacob Rief <[email protected]>
- Loading branch information
Showing
188 changed files
with
822 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,6 @@ matrix: | |
- python: 3.6 | ||
env: TOX_ENV='frontend' | ||
# Django 2.2 | ||
- python: 3.5 | ||
env: DJANGO='dj22' SWAP='swap' | ||
- python: 3.6 | ||
env: DJANGO='dj22' SWAP='noswap' | ||
- python: 3.7 | ||
|
@@ -39,7 +37,6 @@ matrix: | |
|
||
install: | ||
- pip install coverage isort tox | ||
- "if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then export PY_VER=py35; fi" | ||
- "if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then export PY_VER=py36; fi" | ||
- "if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then export PY_VER=py37; fi" | ||
- "if [[ $TRAVIS_PYTHON_VERSION == '3.8' ]]; then export PY_VER=py38; fi" | ||
|
@@ -48,10 +45,9 @@ install: | |
before_script: | ||
- if [ $TOX_ENV == 'frontend' ]; then | ||
pip install -r tests/requirements/frontend.txt; | ||
nvm install 0.12.7 && nvm use 0.12.7; | ||
nvm install 14.15.0 && nvm use node; | ||
npm config set spin false; | ||
npm install -g npm@2; | ||
npm install -g [email protected]; | ||
npm install -g [email protected]; | ||
npm install; | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 3.0.8 on 2020-10-28 16:28 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('filer', '0012_file_mime_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='image', | ||
name='_height', | ||
field=models.FloatField(blank=True, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='image', | ||
name='_width', | ||
field=models.FloatField(blank=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.