cancel
Showing results for 
Search instead for 
Did you mean: 

Renditions: Multipage conversions for TIFF, PDF?

dhartford
Champ on-the-rise
Champ on-the-rise
Hey all,
Would it be a good idea or reasonable to have Alfresco, on a multi-page format entry, to support a 'rendition scheme' to convert all the individual pages of a TIFF or a PDF into single-PNG files (or other single-page formats, where there would be multiple images for each single multi-page original)?

If so, any recommendations so people do not go down the wrong path…(usecase is to retrieve all the .PNGs related to a single TIFF or PDF via CMIS for web usage)


Thoughts please,
-D
1 REPLY 1

brainsfear
Champ in-the-making
Champ in-the-making
Hi,

I would appreciate it very much, if Alfresco image transformations would handle multi-page images (e.g. tiff) correctly - be it in your use case or any other. There have been posts about "document.transformImage()" and features alike for at least the past 5 years.

The reason why only the first page is transformed is still in the Alfresco code, see class org.alfresco.repo.content.transform.magick.ImageMagickContentTransformerWorker:

    protected void transformInternal(File sourceFile, File targetFile, TransformationOptions options) throws Exception {
         :
        properties.put(VAR_SOURCE, sourceFile.getAbsolutePath() + "[0]"); // <– bad idea??
         :

The "[0]" tells ImageMagick to apply the transformation for the first page only. I don't know if there is a reason/necessity for this.

But anyway, multi-page image files are quite common, especially in a business environment with electronic document management processes. Multi-page TIFF with CCITT Group4 encoding for example is a very popular archive format. So Alfresco features should be able to handle them correctly.  Smiley Happy

Cheers,
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.