cancel
Showing results for 
Search instead for 
Did you mean: 

Where is the code for the Flash Viewer that previews documen

goingcrazy
Champ in-the-making
Champ in-the-making
I'm attempting to find the code that displays the flash image previewer in Alfresco share.

The viewer I'm looking at is the one that is seen here:

http://www.packtpub.com/sites/default/files/Article-Images/4361-08-02.png 

I thought it was the web-preview.js but I made this file entirely empty and it did not effect the showing of the image.

Any assistance would be grateful!

Thank you
4 REPLIES 4

mikeh
Star Contributor
Star Contributor
You're probably running in non-debug mode which means Share is loading the -min.js version of the file. Always use something like Firebug or Web Inspector to work out what the browser is up to.

Thanks,
Mike

goingcrazy
Champ in-the-making
Champ in-the-making
Thanks for the response Mike-

I am attempting to get clear tiff images in the share preview because they're entirely too blurry to read esp when you zoom in they stay super pixelated. I'm on version 34d and am attempting to use this persons solution:
http://fabiostrozzi.eu/2010/10/27/improving-tiff-preview-in-alfresco-share/

The -min.js and the preview.js look like they're entirely different files… do you have any suggestinos on how to resolve with in a different way?

Mike

goingcrazy
Champ in-the-making
Champ in-the-making
Okay… So you were right it is using web-preview-min.js. So I am attempting to follow along his logic… I've added the files that he reccomended and also modified the web-preview-min.js to have this line: "if (this.options.mimeType.match(/^image\/tiff$/)) u = o; else" in the file where the change is made in his suggested change to the web-preview.js …. Now the previewer is starting to load but then a popup occurs and states that "the  preview could not be loaded from the server."

Any thoughts? I really need to make these .tif images better quality when viewing them in previewer (Also we will be using multipage tiffs… which this solution claims to fix as well)

Thanks to anyone with input who has don ethis befor eon 34d or knows why it might not be working fo rme!

Mike

goingcrazy
Champ in-the-making
Champ in-the-making
p.s. the error when i get that popup behind the scenes is: Transformer for 'image/tiff' source mime type and 'application/x-shockwave-flash' target mime type was not found. Operation can't be performed