rads4567 / share-extras

Automatically exported from code.google.com/p/share-extras
0 stars 0 forks source link

MediaViewers tiff conversion #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Current mediaviewer plugin converts tiff to pdf but does not work for  large 
tiff files. Need quicker conversion for large tiff files or fall back to 
flashviewer.

firebug reports errors in firefox

Error: stream must have data
assertWellFormed@http://alfrescotest:8080/share/res/extras/components/preview/pd
fjs/pdf-min.js:72
init@http://alfrescotest:8080/share/res/extras/components/preview/pdfjs/pdf-min.
js:45
PDFDocument@http://alfrescotest:8080/share/res/extras/components/preview/pdfjs/p
df-min.js:42
wphSetupDoc@http://alfrescotest:8080/share/res/extras/components/preview/pdfjs/p
df-min.js:1449
messageHandlerComObjOnMessage@http://alfrescotest:8080/share/res/extras/componen
ts/preview/pdfjs/pdf-min.js:1446

Original issue reported on code.google.com by shorif2...@gmail.com on 17 Oct 2012 at 2:39

GoogleCodeExporter commented 8 years ago

Original comment by will.abson on 17 Oct 2012 at 5:41

GoogleCodeExporter commented 8 years ago
Have you got a good example file which reproduces this issue? If so could you 
attach it to this ticket?

Original comment by will.abson on 17 Oct 2012 at 5:46

GoogleCodeExporter commented 8 years ago

Original comment by shorif2...@gmail.com on 22 Oct 2012 at 1:42

GoogleCodeExporter commented 8 years ago
The Media Viewers config does not explicitly configure TIFF > PDF 
transformations, instead the underlying transformers configured within the 
repository are used for this.

If you have a better transformation engine for converting TIFF files and you 
configure it in the repository, then the viewer should automatically use that. 
Note that some of the options around transformers are changing in 4.2 - see 
http://blogs.alfresco.com/wp/wabson/2013/07/09/changes-to-transformers-configura
tion-in-alfresco-4-2/.

The only change that could be made to the viewer is to add a maximum file size, 
beyond which the preview will fall back to another viewer as you suggest. I 
have opened a new issue on GitHub to track this - 
https://github.com/share-extras/media-viewers/issues/16.

I am closing this issue as NotABug, since the issue does not really lie here.

Original comment by will.abson on 15 Jul 2013 at 6:56