plugin:mediathumbnails
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:mediathumbnails [2021-05-12 00:26] – Added new information to installation of ImageMagick thomas-schaefer-nh | plugin:mediathumbnails [2022-08-16 16:12] (current) – corrected formatting thomas-schaefer-nh | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : thomas@hilbershome.de | email : thomas@hilbershome.de | ||
type : syntax | type : syntax | ||
- | lastupdate : 2021-04-02 | + | lastupdate : 2021-05-24 |
- | compatible : 2020-07-29 "Hogfather" | + | compatible : Hogfather, Igor |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : images, media, mediamanager, | tags : images, media, mediamanager, | ||
- | downloadurl: | + | downloadurl: |
bugtracker : hhttps:// | bugtracker : hhttps:// | ||
sourcerepo : https:// | sourcerepo : https:// | ||
Line 20: | Line 20: | ||
screenshot_img : | screenshot_img : | ||
---- | ---- | ||
+ | |||
+ | ===== What's it for? ===== | ||
+ | |||
+ | This plugin will show thumbnail images for supported media files (ODT, DOCX, PPTX, PDF, JPG, etc.) within your wiki pages. | ||
+ | |||
+ | In default settings, a click in the thumbnail will have your browser download the media file. | ||
+ | |||
+ | And an error message will be shown by default in case a referenced media file does not contain a thumbnail (office files) or is an unsupported file type (see dependencies on how you might work around that). | ||
===== Installation and Dependencies ===== | ===== Installation and Dependencies ===== | ||
Line 27: | Line 35: | ||
:!: **External requirements: | :!: **External requirements: | ||
- | * [[https://imagemagick.org|ImageMagick]] //(obligatory | + | |
- | * [[https:// | + | |
- | * [[https:// | + | * libzip-dev |
+ | * Support | ||
+ | * [[https://imagemagick.org|ImageMagick]] | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
Hints: | Hints: | ||
- | * Installation | + | * ImageMagick installation might be troublesome. At least it was for me. My installation routine |
- | * It does not cover the installation | + | * Install '' |
- | * In addition to the description on Michele' | + | * Ascertain that GS's '' |
- | * Concerning the installation of GhostScript: | + | * Install '' |
+ | * Extract the ZIP's content | ||
+ | * Add '' | ||
+ | * Open '' | ||
+ | * Install '' | ||
+ | * Extract all '' | ||
+ | * Extract '' | ||
+ | * Open '' | ||
+ | * Don't forget to restart the webserver. | ||
+ | * If you want or have to install another version, this might be a useful resource: [[https:// | ||
+ | * I also wrote a Dockerfile (for an earlier | ||
- | ===== What's it for? ===== | + | < |
+ | FROM php:7-fpm | ||
- | This plugin will show thumbnail images for supported media files (ODT, DOCX, PPTX, PDF, JPG, etc.) within your wiki pages. | + | RUN apt-get update && apt-get install -y \ |
+ | imagemagick libmagickwand-dev \ | ||
+ | libzip-dev \ | ||
+ | libgs-dev \ | ||
+ | ghostscript --no-install-recommends \ | ||
+ | && pecl install imagick \ | ||
+ | && docker-php-ext-enable imagick \ | ||
+ | && pecl install zip \ | ||
+ | && docker-php-ext-enable zip | ||
- | In default settings, a click in the thumbnail will have your browser download the media file. | + | # Adjust ImageMagick security policy to allow PDF conversion |
+ | ARG imagemagic_config=/ | ||
- | And an error message will be shown by default in case a referenced media file does not contain a thumbnail (office files) or is an unsupported | + | RUN if [ -f $imagemagic_config ] ; then sed -i ' |
+ | </ | ||
===== Syntax ===== | ===== Syntax ===== | ||
Line 119: | Line 152: | ||
* v0.91 (added image and PDF support) | * v0.91 (added image and PDF support) | ||
* config option `thumb_width` was dropped, so you might want to delete that entry from `conf/ | * config option `thumb_width` was dropped, so you might want to delete that entry from `conf/ | ||
+ | * **2021-05-24** | ||
+ | * v0.92 (Added checks for ImageMagick security policy issues) | ||
=== Known Bugs and Issues === | === Known Bugs and Issues === |
plugin/mediathumbnails.1620771972.txt.gz · Last modified: 2021-05-12 00:26 by thomas-schaefer-nh