- Feature Add the ability to pass in a pre-configured redis host with option RESIZE_REDIS_HOST.
- Feature RESIZE_REDIS_PASSWORD added
- Bugfix RESIZE_RAISE_ON_GENERATE_IN_PROGRESS wasn’t respected - error was always raised.
- Bugfix s3 was erroneously added as a dependency instead of boto3 in the recommended installation option flask-resize[full]
- Feature Added commands for generating images, listing/clearing cache and generated images (see Command line usage)
- Feature Ability to run resizing without a Flask app being involved (see Setting up for standalone usage)
- Enhancement Windows is now supported, at least on paper. The test suite runs on a Windows host after each pushed commit, using the excellent CI service AppVeyor. The project still needs some real world usage though. Please report any issues you might find to the Github issues page. (see Compatibility)
- Enhancement dimensions is now an optional argument. Useful when just converting to a different format for example. (see dimensions)
- Enhancement Added some basic logging statements for debugging purposes
- Enhancement Pypy and Python 3.6 are now officially supported
- Bugfix Concurrent generation of the same image wasn’t handled properly
- Bugfix There was a logic error when installing flask-resize[full]. redis and s3 weren’t installed below python3.4.
- Breaking flask_resize.resize is no longer available. It’s instead accessible when creating the Flask app extension. I.e: resize = flask_resize.Resize(app) or resize = flask_resize.Resize(); resize.init_app(app)
- Improvement Add image to cache when the path is found while checking for its existence, even though it wasn’t in the local cache since before. This way a path can be cached even though the generation was done on another computer, or after the local cache has been cleared.
- Breaking Removed option RESIZE_USE_S3 and replaced it with RESIZE_STORAGE_BACKEND, more explicit and simple.
- Improvement Automatically load RESIZE_S3_ACCESS_KEY, RESIZE_S3_SECRET_KEY and RESIZE_S3_REGION settings using botocore.session, in case they are not explicitly specified.
- Improvement Added the option RESIZE_S3_REGION. Can be set if the S3 region has to be specified manually for some reason.
Flask-Resize 1.0 🎊 🍻 🎈 🎉
The big changes are:
- Feature Support Amazon S3 as a storage backend
- Feature Support Redis caching. The usefulness of this is threefold:
- When using S3 as a storage backend to save on HTTP requests
- No need to check if file exists on file storage backends - perhaps noticable on servers with slow disk IO
- Much lower chance of multiple threads/processes trying to generate the same image at the same time.
- Breaking Please note that this release forces all generated images to be recreated because of a change in the creation of the “unique key” which is used to determine if the image has already been generated.
- Breaking Drop RESIZE_HASH_FILENAME as an option - always hash the cache object’s filename. Less moving parts in the machinery.
- Breaking Rename RESIZE_CACHE_DIR to RESIZE_TARGET_DIRECTORY to better reflect what the setting does, now that we have Redis caching.
- Breaking Use SHA1 as default filename hashing method for less likelyhood of collision
- Improvement Release as a universal python wheel
- Feature Support SVG as input format by utilizing [CairoSVG](http://cairosvg.org/).
- Improvement Keep ICC profile from source image
- Minor fix Clarify that Python 3.5 is supported
- Bugfix Fill doesn’t cut the image any more
- Bugfix Fix Python 2 regression
- Improvement Tests that actually convert images with the
- Improvement Validates that
- Improvement Proper documentation, hosted on
- Improvement Properly documented all functions and classes
- Improvement Continuous integration with
- Improvement Code coverage with
- Improvement More tests
- Change Dropped
nosein favor of
- Change Removed unused method
- Feature Adds the setting
RESIZE_NOOPwhich will just return the passed in image path, as is. This was added to ease the pain of unit testing when Flask-Resize is a part of the project.
- Change Added more tests
- Feature Adds the
bgcoloroption for specifying a background color to apply to the image.
- Bugfix Because of a logic error no exception was raised when file to resize didn’t exist
- Bugfix Fix for pip parse_requirements syntax change (fixes #6)
- Feature Python 3.4 support (might work in other Pythons as well)
- Bugfix Placeholders were being regenerated on each page load.
- Bugfix Same placeholder reason text was used for all resizes with identical dimensions
- Feature Support for generating image placeholders
- Bugfix Format argument wasn’t respected
- Change Bumped default JPEG quality to 80
- Initial version