Breaking changes:
- add item here
New features:
- Target Zope 4 (test chnages only).
Bug fixes:
- Prepare for Python 2 / 3 compatibility [ale-rt, pbauer]
- remove mention of "retina" (plone/Products.CMFPlone#2123) [tkimnguyen]
- Fix test to use new zope testbrowser internals. [davisagli]
Bug fixes:
- Fix bug #56 where
srcset
generation failed on no given width or height if there was no sclae given. plone#56 [jensens]
Bug fixes:
- Dont't break DefaultImageScalingFactory, if for any reason the fieldname isn't available on the context. [thet]
- Different caching keys for different domains [mamico]
Bug fixes:
- Fix #46, when
process_png
,process_jpeg
andprocess_tiff
could fail with awidth referenced before assignment
error. [thet] - Fix contentType attribute should be str type, what leads to validation errors (fixes #38). [rodfersou]
- Fix bug on Image rotation if ImageIFD.XResolution or ImageIFD.YResolution are not set. [loechel]
- Fix: Do not log failing PIL image regognition as error, but as warning. [jensens]
- Fix: compatibility for Plone 4 re-added. [loechel]
New features:
- Add retina image scales using srcset attribute. [didrix]
Bug fixes:
- BrowserViews have no Acquisition. [pbauer]
New features:
- Add automatic image rotation based on EXIF data for all images. Based on piexif library and ideas of maartenkling and ezvirtual. Choosen piexif as it allow read and write of exif data for future enhancements. http://piexif.readthedocs.org/en/latest/ For Orientation examples and description see http://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/ test data https://github.com/recurser/exif-orientation-examples Additional Test Images with different MIME-Types (JPEG and TIFF) and possible problems: https://github.com/ianare/exif-samples.git [loechel]
- Support SVG images [tomgross]
Bug fixes:
- Added handler for Tiff Images in getImageInfo. [loechel]
- Restructured packages. Moved image meta data detection in an own subfolder [loechel]
New features:
- Add Pdata storage [vangheem]
Incompatibilities:
- Targets Plone 5.1 only, coredev 5.0 and 4.3 are on 3.0.x branch [jensens]:
plone.supermodel
,plone.scale
andplone.schemaeditor
are now hard depedencies. The extras in setup.py are kept for bbb reasons, but are empty. Conditional code is now no longer conditional. This simplifies the code a lot.zope.app.file
is no longer hard dependency. If it is there, its FileChunk implementation is still checked for, otherwise not.
New:
- uses adapter as factory for scales as in plone.scale>=1.5 [jensens]
Fixes:
- Several tests were failing on Windows 10 due to binary files being opened in text mode. Fixed. [smcmahon]
- Prevent attempt to create a filestream_iterator from a temporary file associated with an uncommited blob. Fixes an error on Windows 10 "WindowsError 32" by attempting to delete or access a file in use by another process. [smcmahon]
- Fix tests to work with latest plone.scale changes, where gif images are no longer converted to jpeg. [thet]
- Fixed test setup to use layers properly. [jensens]
- Fixed test isolation problem in
test_blobfile.py
. [jensens] - Fix warning on testing.zcml missing an i18n:domain. [gforcada]
- Fix some code analysis warnings. [gforcada]
Fixes:
- PEP 8, UTF-8 headers, implements/adapts to decorators, doctest formating. [thet, jensens]
- Workarround for method getImageSize. Prevent returning (-1, -1) as the size of the image. [andreesg]
Fixes:
- Make plone.protect a soft dependency. This allows to use this package in setups without the Plone stack. Fixes plone/Products.CMFPlone#1311 [thet]
Fixes:
- Stabilised tests. [gotcha]
New:
- Added webdav support to image scales. plone/Products.CMFPlone#1251 [maurits]
Fixes:
- No longer rely on deprecated
bobobase_modification_time
fromPersistence.Persistent
. [thet]
- Don't fail, when accessing the
tag
method of the@@images
view, ifscale
returnsNone
. [thet]
- Cache image scales using the plone.stableResource ruleset when they are accessed via UID-based URLs. (Requires plone.app.imaging >= 1.1.0) [davisagli]
- Fixed inserting filename in Content-Disposition header. [kroman0]
- Respect field level security in download views also for primary fields. [jensens]
- Internationalize field factory label. [thomasdesvenain]
- Disable CSRF protection when creating a scale so we can write to the database [vangheem]
- Ensure zope.app.file.file module alias is created before its use in file package. [thomasdesvenain]
- Disable CSRF protection when creating a scale so we can write to the database [vangheem]
- Validate image field : check if content is actually an image using mimetype. [thomasdesvenain]
- Fix: get_contenttype works when empty string is given as contentType.
- Backward compatibility of NamedFile with zope.app.file FileChunk. Avoids NamedFile validation unexpected failures. [thomasdesvenain]
- Ensure zope.app.file.file module alias is created before its use in file package. [thomasdesvenain]
- Backward compatibility of NamedFile with zope.app.file FileChunk. Avoids NamedFile validation unexpected failures. [thomasdesvenain]
- Validate image field : check if content is actually an image using mimetype. [thomasdesvenain]
- Fix: get_contenttype works when empty string is given as contentType. [thomasdesvenain]
- Scaling Traverser now does not try to traverse two steps in one. This is impossible in chameleon. [do3cc]
- Use plone.app.imaging's (>=1.0.8) quality setting if it exists. https://dev.plone.org/ticket/13337 [khink]
- fix invalidation on contexts that do not implement dublin core; Notably portlet assignments. Fallback is bobo_modification_time. Maybe portlet assignments should implement modified() instead? [tmog]
- Fixed handling of TTW Dexterity content type image field data when image data is large and stored as zope.app.file.file.FileChunk in ZODB instead of raw string data. Issue appearated after Plone 4.3 migration [miohtama]
- Add direction parameter support in scaling (was ignored in tag and scale functions). Now calling tag function with parameter direction='down' crops the image. direction='thumbnail' by default so default behaviour remains the same. [jriboux]
- Move file and image value implementations here instead of extending the ones from zope.app.file and z3c.blobfile. This helps tame a mess of dependencies. [davisagli]
- The blob-based file and image implementations are now always available. (But they will only work if Zope is using a storage with blob support.) [davisagli]
- Add support for HEAD requests to @@images view [anthonygerrard]
- Add hook to override headers in subclasses of file download view [anthonygerrard]
- Don't set filename in header if filename contains non ascii chars. [do3cc]
- Adding Dexterity Image caused TypeError if jpeg file contained corrupt metadata. Closes http://dev.plone.org/ticket/12753. [patch by joka, applied by kleist]
- Fix test failure. [davisagli]
- Fix bug in producing tag for a scale on an item with a unicode title [tomster]
- Make the
download
view respect custom read permissions for the field being downloaded, rather than only checking the view permission for the object as a whole. [davisagli]
- Fix bug in producing tag for a scale on an item whose title has non-ASCII characters. [davisagli]
- Make sure image scales of allowed attributes can be accessed on disallowed containers. [davisagli]
- Add unit tests for safe_filename, since not exercised within this module. (should be moved to plone.formwidget.namedfile?) [lentinj]
- Relicense under BSD license. See http://plone.org/foundation/materials/foundation-resolutions/plone-framework-components-relicensing-policy [davisagli]
- Don't omit empty string attributes from ImageScale tag. [elro]
- In the tag method of ImageScale to allow height/width/alt/title to be omitted when they are supplied as a None argument. [elro]
- In marshalled file fields, encode the filename parameter of the Content-Disposition header in accordance with RFC 2231. This ensures that filenames with non-ASCII characters can be successfully demarshalled. [davisagli]
- Make the various file classes be strict about only accepting unicode filenames. [davisagli]
- Use unique urls for accessing the original scale. [elro]
- Avoid Content-Disposition for image scales. [elro]
- Declare dependency on plone.rfc822 >= 1.0b2 (for IPrimaryField). [davisagli]
- Add a @@display-file view which doesn't set Content-Disposition, so we don't force download of images, for example. [lentinj]
- Support getting the original size as a scale. [elro]
- Add tag() method to scaling view. [elro]
- Scaling: quote values of extra tag attributes. [elro]
- Add primary field support to @@download and @@images views. [elro]
- Add getAvailableSizes and getImageSize to the @@images view. [elro]
- Add support for scaled images. See usage.txt for details. [davisagli]
- Fix the field schemata so they can be used as the form schema when adding the field using plone.schemaeditor. [rossp]
- Avoid using the internal _current_filename() helper, which disappeared in ZODB 3.9. [optilude]
- Add field factories for plone.schemaeditor (only installed if plone.schemaeditor is available) [davisagli]
- Add plone.rfc822 field marshaler (only installed if plone.rfc822 is available) [optilude]
- Add plone.supermodel import/export handlers (only installed if plone.supermodel is available). [optilude]
- Make z3c.blobfile (and blobs in general) a soft dependency. You'll need to separately depend on z3c.blobfile (and probably pin it to versio 0.1.2) to get the NamedBlobFile and NamedBlobImage fields. This means that plone.namedfile can be used with ZODB versions that do not support BLOBs. This policy will probably be revisited for a 2.0 release. [optilude]
- Initial release