Skip to content

Commit ccf8904

Browse files
authored
Merge pull request #1835 from nextcloud/enh/noid/imaginary-add-mimetypes
imaginary - allow further mimetypees out-of-the-box
2 parents 578f02a + f572289 commit ccf8904

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Containers/nextcloud/entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,17 @@ if version_greater "$installed_version" "24.0.0.0"; then
548548
if [ "$IMAGINARY_ENABLED" = 'yes' ]; then
549549
php /var/www/html/occ config:system:set enabledPreviewProviders 0 --value="OC\\Preview\\Imaginary"
550550
php /var/www/html/occ config:system:set preview_imaginary_url --value="http://$IMAGINARY_HOST:9000"
551+
php /var/www/html/occ config:system:set enabledPreviewProviders 20 --value="OC\\Preview\\HEIC"
552+
php /var/www/html/occ config:system:set enabledPreviewProviders 21 --value="OC\\Preview\\SVG"
553+
php /var/www/html/occ config:system:set enabledPreviewProviders 22 --value="OC\\Preview\\TIFF"
554+
php /var/www/html/occ config:system:set enabledPreviewProviders 23 --value="OC\\Preview\\WebP"
551555
else
552556
php /var/www/html/occ config:system:delete enabledPreviewProviders 0
553557
php /var/www/html/occ config:system:delete preview_imaginary_url
558+
php /var/www/html/occ config:system:delete enabledPreviewProviders 20
559+
php /var/www/html/occ config:system:delete enabledPreviewProviders 21
560+
php /var/www/html/occ config:system:delete enabledPreviewProviders 22
561+
php /var/www/html/occ config:system:delete enabledPreviewProviders 23
554562
fi
555563
fi
556564

php/templates/containers.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,9 @@
503503
<input type="checkbox" id="fulltextsearch" name="fulltextsearch"><label for="fulltextsearch">Fulltextsearch (needs ~1GB additional RAM)</label><br>
504504
{% endif %}
505505
{% if is_imaginary_enabled == true %}
506-
<input type="checkbox" id="imaginary" name="imaginary" checked="checked"><label for="imaginary">Imaginary</label><br>
506+
<input type="checkbox" id="imaginary" name="imaginary" checked="checked"><label for="imaginary">Imaginary (for previews of heic, svg, tiff and webp)</label><br>
507507
{% else %}
508-
<input type="checkbox" id="imaginary" name="imaginary"><label for="imaginary">Imaginary</label><br>
508+
<input type="checkbox" id="imaginary" name="imaginary"><label for="imaginary">Imaginary (for previews of heic, svg, tiff and webp)</label><br>
509509
{% endif %}
510510
{% if is_talk_enabled == true %}
511511
<input type="checkbox" id="talk" name="talk" checked="checked"><label for="talk">Nextcloud Talk (needs ports {{ talk_port }}/TCP and {{ talk_port }}/UDP open in your firewall/router)</label><br><br>

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Included are:
77
- High performance backend for Nextcloud Files
88
- High performance backend for Nextcloud Talk
99
- Backup solution (based on [BorgBackup](https://github.com/borgbackup/borg#what-is-borgbackup))
10-
- Imaginary
10+
- Imaginary (for previews of heic, svg, tiff and webp)
1111
- ClamAV (Antivirus backend for Nextcloud)
1212
- Fulltextsearch
1313

0 commit comments

Comments
 (0)