-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate thumbnail only for first page #1166
Comments
Thank you for the info. |
Hi, even after fix #1168 still PNGs for every document page are generated in /var/lib/fess/thumbnails/ I tried the script
for office and pdf files and this correctly generate a single pdf or png of the first page. But during fess crawling the process start: gs -sstdout=%stderr -dQUIET .... -sOutputfile/tmp-magik-....... This is a 100% CPU process that last a lot of time.
and then again gs. And so on back and forth. Also, after this procedure a single thumbnail is visible on search results (of about 60 files crawled).
so the img src is not pointing to image in /var/lib/fess/thumbnails/ In var/log/fess there are a lot of similar lines:
|
What is the server hardware spec? |
Xeon with 16 GB RAM. Debian 9. The gs process put a single thread to 100% CPU, not all threads. Crawled now 27 files (docs and pdfs) and after 15 min still active Thumbnail generator job. No thumbnail visible on search results. Same errors in /var/log/fess Tried also with a new from scratch VPS, Debian 9, OpenJDK, 16 GB, but same problem. |
Thank you for the info. |
YES, now the generate-thumbnail task is very fast and the thumbnails are visible on the search results. But only for PDF files. This is not due to missing thumbnail but to a web config problem: in fact with office docs I cannot see the blank image (img src="/images/noimage.png) usually visible before generate thumbnail job. |
Perfect! The fix #1175 solved the problem. I tried crawling about 6000 docs and I have no problem.
because a lot of
errors (slow disk). This caused the thumbnail job to abort and restart a few minutes later. |
Hi again,
I noticed that the generate-thumbnail script make thumbnail of every page of the pdf/office documents.
You can see it in /var/lib/fess/thumbnails/
This is useless because only the first page is supposed to be showed on thumbnails results. And this kill the server, imagine a 300 page document... in fact gs kill the server with this task:
gs -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pngalpha -dTextAlphaBits=4 ..........
As a solution, you should add the flag
-e PageRange=1-1
to the commandline
unoconv -o $TMP_FILE -f pdf $TARGET_FILE
More details on
http://bernaerts.dyndns.org/linux/76-gnome/325-gnome-shell-generate-msoffice-thumbnail-nautilus
Another suggested feature is to add thumbnail also for image files, you could use
mogrify for jpg, png and other formats:
https://superuser.com/questions/844912/generate-thumbnail-with-imagemagick
The text was updated successfully, but these errors were encountered: