cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Content Upload

carlosjr
Champ in-the-making
Champ in-the-making
Hi

My company is trying to create an application where, if you upload an image, a series of converted images are created on-the-fly. The converted images consists in the same basic image, but at predefined sizes and formats, that can be used in the webproject under development

Is there any way to do this without using workflows?
Is there any way to use Imagemagick to do the job?

thanks
3 REPLIES 3

carlosjr
Champ in-the-making
Champ in-the-making
I forgot to mention: the upload is done via add-content-dialog.jsp, because it must be transparent to the user.

rivarola
Champ on-the-rise
Champ on-the-rise
Hello,

You can trigger such transformations with rules. Alfresco's built-in image transformation use ImageMagick through the ImageMagickContentTransformer. You may reuse it to perform your transformations or write a new transformer with custom options (size) by inheriting the abstract class AbstractImageMagickContentTransformer.

Wiki : http://wiki.alfresco.com/wiki/Content_Transformations

PS : is your post really related to WCM ?

carlosjr
Champ in-the-making
Champ in-the-making
I tough it would be a WCM related because I'm using the AVM repository.

I'm trying to use the ImageMagickContentTransformer. I declared it inside the AddAVMContentDialog#saveContent, and did all the imports.
Running the init() method from the transform, returns a error: "System Runtime executer not set",but, at startup, there isn't any complaint about the transfomer( the common ImageMagick error) so, theoretically, the transform is well-defined and running.

I'm completely stuck at this error. Any Ideas?