Thumbnails generation

450 views
Skip to first unread message

Leandro Pereira

unread,
Apr 12, 2024, 7:13:27 AM4/12/24
to DSpace Community
Hi everyone.

I'm using DSpace version 7.6.1

Is there any way to control or disable the automatic generation of thumbnails? I didn't find the configuration but I noticed that they are being done in the morning without tasks added to crontab.

Victorhugo Bisangwa

unread,
Apr 12, 2024, 7:24:34 AM4/12/24
to Leandro Pereira, DSpace Community
Hello,

These thumbnails are generated by the media filter (filter-media). Once it runs, the thumbnails are generated. Check if you added this task to crontab.

regards,




Mailtrack Sender notified by
Mailtrack
04/12/24, 01:22:55 PM

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/ff23f4c8-d122-4183-a062-40cf822f7334n%40googlegroups.com.

Matthias Letsch

unread,
Apr 13, 2024, 6:09:44 AM4/13/24
to DSpace Community
Hi there,

just as Victorhugo said, the thumbnail generation is done by the command $DSPACE/bin/dspace filter-media (see https://wiki.lyrasis.org/display/DSDOC7x/Scheduled+Tasks+via+Cron)

In addition to thumbnail generation, filter-media is also responsible for text extraction for full-text indexing.

Which filters become active when filter-media is executed can be configured in dspace.cfg (currently from line 446):

#### Media Filter / Format Filter plugins (through PluginService) ####
# Media/Format Filters help to full-text index content or
# perform automated format conversions

#Names of the enabled MediaFilter or FormatFilter plugins
filter.plugins = Text Extractor
filter.plugins = JPEG Thumbnail
filter.plugins = PDFBox JPEG Thumbnail

(https://github.com/DSpace/DSpace/blob/main/dspace/config/dspace.cfg)

You could comment out the following lines here:
 
# filter.plugins = JPEG Thumbnail
# filter.plugins = PDFBox JPEG Thumbnail

This will allow the cronjob to remain active and continue to perform full-text indexing, but no more thumbnails should be generated.

Kind regards,
Matthias

Leandro Pereira

unread,
Apr 13, 2024, 6:38:31 AM4/13/24
to DSpace Community
But in my case, this is being done automatically without scheduled tasks via cron. This part I didn't understand.

Emilia Lobo

unread,
Apr 15, 2024, 2:54:24 PM4/15/24
to DSpace Community

How and where do you run the "crontab -e" command on a development machine to test automatically generating thumbnails of items loaded into the local database?
Thank you.
Emilia.-

Leandro Pereira

unread,
Apr 15, 2024, 6:25:06 PM4/15/24
to DSpace Community
This is my crontab list jobs. No rotine to generate thumbnail. All thumbnails are genereted after hours without an explicit scheduled tasks.

DS_BACKEND = /dspace/backend
JAVA_OPTS="-Xms512m -Xmx512m -XX:+UseG1GC -Dfile.encoding=UTF-8"

5 0 * * *  $DS_BACKEND/bin/dspace subscription-send -f  D > /dev/null

5 0 * * 0  $DS_BACKEND/bin/dspace subscription-send -f W  > /dev/null

5 0 1 * *  $DS_BACKEND/bin/dspace subscription-send -f M  > /dev/null

0 0 * * *  $DS_BACKEND/bin/dspace oai import > /dev/null

0 0 * * *  $DS_BACKEND/bin/dspace index-discovery > /dev/null

30 0 * * * $DS_BACKEND/bin/dspace index-authority > /dev/null

0 1 * * *  $DS_BACKEND/bin/dspace stats-util -i  > /dev/null

30 1 * * * $DS_BACKEND/bin/dspace cleanup > /dev/null


Reply all
Reply to author
Forward
0 new messages