The thumbnails forge project was started quite a while ago (like Alfresco 0.9 or so… old school) and the first public release was put on the forge in late 2006 (which would have been around Alfresco 1.3 I guess).
The project gained the attention of the Alfresco team and they contacted me about making a few changes to bring it more inline with what they had in mind for an implementation, notably creating a public thumbnail service. Those changes were made and I continued to collaborate with Alfresco on the forge project and gave input on their implementation.
Alfresco 3 now has a native implementation of thumbnails and version 1.0 of the forge project migrated to the new architecture, but it’s still cool.
Here’s a look at some of the differences to be aware of between the old thumbnails project implementation and Alfresco’s new native thumbnails:
| Concept | Pre 1.0 Versions of Forge Project | Alfresco 3 Native | |||||||||||||||||||||
| The service responsible for generating and retrieving thumbnails |
ThumbnailServiceThe A specific thumbnail can be generated with overriding options |
ThumbnailServiceThe The content property from which the source data will be read |
|||||||||||||||||||||
| A common size and destination mimetype for thumbnails |
ThumbnailSpecification
|
ThumbnailDefinition
|
|||||||||||||||||||||
| The detailed resizing specifications |
TransformerSpecificationThe specific |
TransformationOptionsThe resizing details are specified using classes containing generic |
|||||||||||||||||||||
| The model type |
tn:thumbnail
Not being of type content prevents most rules from being run on |
cm:thumbnail
Care must be taken to not run rules or index thumbnail nodes since they One suggestion has been to add the following to the thumbnail type:
|
|||||||||||||||||||||
| The model property name of the common size and mimetype destination definition |
tn:specificationNameThe |
cm:thumbnailNameThe new |
|||||||||||||||||||||
| Default thumbnail sizes (max length/width) |
|
|
- Strikethroughs represent deprecated items.
- Avatar thumbnail size has nothing to do with what I can only assume is an incredibly overhyped movie about pissed off blue tree people since I haven’t been to a theater in like 10 years.
This information has been available in the thumbnails project’s 1.0 release readme but as it’s not shown by default I figured I’d post here as well.