cancel
Showing results for 
Search instead for 
Did you mean: 

Images manipulation

giorgio_cardell
Champ in-the-making
Champ in-the-making
Assumption: I have Alfresco 2.1 + Tomcat running on Suse linux server.

I made a new space in which users can upload their photos.
I setted out actions that automatically generates thumbnails (200x200) and full screen view (1024x1024) and copy generated images in different subfolders.
This is great but now I would do more and my question is how this could be achieved with alfresco.
I would like an XML to be automatically generated and I would move images + XML to a web project folder.
The Xml file should have the follow structure:


<items>
    <thumb separation="5" dysplayNum="6">
   <image>../../../../../../../../../OD_cache/OD1_photos_netherlands/SalesForce/low/001_orig.JPG</image>
        <description>001_orig.JPG</description>
   <link>http://mydomain/OD_cache/OD1_photos_netherlands/SalesForce/high/001_orig.JPG</link>
        </thumb>

       <thumb>
       ….
       </thumb>
</items>
How does alfresco handle something like this ?

Best regards
2 REPLIES 2

ds-crcpress
Champ in-the-making
Champ in-the-making
You could use the JavaScript API to write a webscript that creates the XML and saves it to the desired content space.

Check out http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook for some ideas.

giorgio_cardell
Champ in-the-making
Champ in-the-making
What i read about Webscript tells that they generate XML code when the user ask for a determinate URL (something like …/alfresco/service/…)
I would like my XML to be automatically generated and updated for each image that user will upload.
Are Web Script the right tool for this job ?

Thank for your help !