We had a whole collection of Plone 3 sites with a custom image type subclass from ATImage. This allowed us to add additional image scaling to the standard list ("logo": (454, 58) "used by our theme pack).
While this works in Plone 4, now this is not the right approach, plone.app.imaging is part of the standard toolkit. It can define custom scales on fly.
It looks like I can enable plone.app.imaging for any type of subclass from ATImage by simply setting “sizes = No” to collect custom scales by type. However, I was left with a redundant subclass of ATImage. Looking at the long term, it would be useful to replace all of our existing “FalconImage” content elements (hundreds in total) with standard “Image” content elements.
A brief experiment on a test site shows that if I just go through a document tree that updates the portal_type attribute from "FalconImage" to "Image", then the content behaves like "Image": each object suddenly acquires Transform and all scales defined using the panel control @@ imaging-controlpanel.
I am sure that there will be consequences of such an approach of brute force. Is there a recommended approach for converting one type to another?
(I'm glad to add a source for our custom ATImage type if someone thinks this is relevant. This is really a very minimal setup for ATImage, with a different collection of sizes on ImageField)
source share