Renditions: Multipage conversions for TIFF, PDF?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2011 01:26 PM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2012 02:50 PM
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.
Cheers,
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.

Cheers,
