cancel
Showing results for 
Search instead for 
Did you mean: 

Blurry Flash Preview

soborno
Champ in-the-making
Champ in-the-making
I have encountered a problem with flash preview, after I migrate alfresco from a server to another.
I use the same version (3.3), and I follow the steps in http://wiki.alfresco.com/wiki/Backup_and_Restore, I have no problem with that at all, all my documents are available to the users that are allowed.
The problem is that the quality of the flash preview is really bad now, I don´t know is it a problem of resolution, but it`s blurry when I want no maximize any pdf or doc, xls..etc file.
I don`t have the problem with the other server, What can it be?.
One think that I note is that, in the previous server, When I zoom to 250% I see the image substantial larger than in the new one.


Thanks for the help,
Claudio
8 REPLIES 8

soborno
Champ in-the-making
Champ in-the-making
Solved. It was a problem with swftools, apparently there were errors when it was compiled from source, I follow the steps in here: https://designbye.wordpress.com/2010/02/23/installing-swftools-and-pdf2swf-on-ubuntu-linux/, and have no more problems.

thoralt
Champ in-the-making
Champ in-the-making
Hi,

I stumbled across the same issue. I use Alfresco 4.0.a on Debian Linux. As suggested, I compiled the latest version of swftools, but the preview is still shown in low resolution. Do I need to update/compile/reinstall any components which swftools depends on? Any help would be appreciated.

Regards,
Thoralt

soborno
Champ in-the-making
Champ in-the-making
Check your alfresco-global.properties, see if the swftools route is right for your current instalation, in my case with the steps I mention above it should be 
swf.exe=/usr/local/bin/pdf2swf
.
Don`t forget to restart alfresco!

Regards,
Claudio

thoralt
Champ in-the-making
Champ in-the-making
Hi,

thank you for your reply. I verified my installation, alfresco-global.properties contains "swf.exe=/usr/local/bin/pdf2swf", and did restart Alfresco after the change.

I verified the installation of swftools:

alfresco:~# /usr/local/bin/pdf2swf -V
pdf2swf - part of swftools 0.9.1
This shows that the right binary is in place (and it has a recent timestamp from my last "make install").

If I delete /usr/local/bin/pdf2swf, upload a new PDF and try to preview it, I get an error (preview not available). As soon as I copy back pdf2swf to /usr/local/bin, the PDF preview is possible. This shows that Alfresco is using the right file.

To sum it up: Alfresco uses my freshly compiled swftools 0.9.1 (I also tried 0.8.1 with same result).

Here's a screenshot what it looks like:

[img]http://www.thoralt.de/netbox/alfrescoscreenshot.png[/img]

Apparently Alfresco/swftools renders a pixel image instead of vector/glyph based data, which looks as shown above. How can I verify what's going wrong here? At the moment I don't know where to start…

Regards
Thoralt

soborno
Champ in-the-making
Champ in-the-making
I would start with swftools, test in the command line the pdf2swf tool (after all, is a tool for itself too) with some light pdf file, and then check the .swf, if its blurry, you have a problem with swftools.

Regards,
Claudio

thoralt
Champ in-the-making
Champ in-the-making
Thank you for the suggestion. I did the test and converted a pdf on the command line. If I load the resulting swf file with Firefox, it shows up normally. Even at highest magnification everything stays sharp, because it is vectorized. The same file within Alfresco stays blurred and rasterized.

My conclusion therefore is: Something between Alfresco and pdf2swf is wrong. I'll investigate that further.

Thoralt

thoralt
Champ in-the-making
Champ in-the-making
Hi there,

I did some debugging with pdf2swf. Alfresco uses the following command line to generate the preview:
/usr/local/bin/pdf2swf -T 9 -s zoom=72 -s ppmsubpixels=1 -s poly2bitmap=1 -s bitmapfonts=1 test.pdf -o test.swf
If I use the options above in a terminal, I get the same blurry output. I have to remove the options "-s poly2bitmap=1" and "-s bitmapfonts=1" to get a perfect preview.

Now the question is: Why does Alfresco use "-s poly2bitmap=1" and "-s bitmapfonts=1"? How can I avoid that?

Best regards
Thoralt

EDIT: I found out myself. After grepping through my Alfresco installation I discovered "webapps/alfresco/WEB-INF/classes/alfresco/subsystems/thirdparty/default/swf-transform.properties". There I changed the parameters to my needs. Now the preview is perfect Smiley Happy

loftux
Star Contributor
Star Contributor
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.