Skip to content

When the image of a DX content type is updated, old crops are not purged (1.x) #54

Description

@pysailor

I noticed this while working on tests for DX:

IF a DX-based image type (e.g. Image from p.a.contentypes) has cropped scales
AND the image item is edited through the edit form, replacing the old image
THEN the cropped scales still contain the former image (in cropped version).

The test test_modify_context in test_cropping.py that checks this for AT mentions #21. This in turn mentions plone/plone.scale#3 and plone/plone.scale#4. So I'm not quite sure what the current status of development is, and whether plone.scale or p.a.imagecropping should take care of nuking the old cropping info when the image is replaced.

Example screen shot:
screen shot 2014-09-22 at 13 48 34

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions