aschempp / contao-previewdownload Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://unmaintained.tech
Home Page: http://unmaintained.tech
Die Erweiterung speichert ja die Vorschaubildchen im Contao-eigenen "assets"-Ordner, wenn nun aber der assets-Ordner sehr jungfräulich ist und noch keine (anderen) Cache-Ordner angelegt wurden, crasht die Erweiterung. Wenn man diesen aber händisch anlegt funktioniert alles wieder.
die Bilder sind auswählbar aber werden beim Speichern gelöscht
Es scheint, als würden sich verschiedene Interessenten an einer Realisierung finanziell beteiligen. Liesse sich dafür ein Preis in die Runde werfen?
Hi aschempp,
I found a small bug in your extension.
If our customer uses a space in the path to the pdf (yes, I know that this is bad habit) the Imagemagick will throw an extension.
You have to change ContentPreviewDownload.php, l. 163 (exec, sprintf) and add quotes:
'PATH=\$PATH:%s;export PATH;%s/convert %s
\'%s/%s%s
\' %s/%s 2>&1',
Furthermore, you should explain somewhere that the path to ImageMagick has to be set in the Contao Settings and how the path should look like:
https://community.contao.org/de/showthread.php?65801-PDF-Thumbnails-mit-quot-contao-previewdownload-quot&p=480257#post480257
I would like to suggest the possibility to have this functionality for a list of downloads as well.
Hallo,
ich habe ein Contao 4.4.26 mit PHP 7.1 am laufen.
Wenn ich das Modul eingebaut habe, dann erscheint auf der jeweiligen Seite eine exception.
[2018-10-25 11:58:18] app.CRITICAL: An exception occurred. {"exception":"[object] (ImagickException(code: 420): NoDecodeDelegateForThisImageFormat `PDF' @ error/constitute.c/ReadImage/501 at /html/contao4/system/modules/previewdownload/ContentPreviewDownload.php:141)"} []
Imagemagick ist aber installiert:
Test for versions and locations of ImageMagick
Path: convert
Version return code is 0
Version: ImageMagick 6.9.4-6 Q16 i686 2016-06-03 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib freetype jbig jng jpeg ltdl png tiff wmf xml
This should test for ImageMagick version 5.x
Path: /usr/bin/convert
Version return code is 127
Version: ImageMagick 6.9.4-6 Q16 i686 2016-06-03 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib freetype jbig jng jpeg ltdl png tiff wmf xml
This should test for ImageMagick version 6.x
Path: /usr/local/bin/convert
Version return code is 0
Version: ImageMagick 6.9.4-6 Q16 i686 2016-06-03 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib freetype jbig jng jpeg ltdl png tiff wmf xml
Version: ImageMagick 6.9.4-6 Q16 i686 2016-06-03 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib freetype jbig jng jpeg ltdl png tiff wmf xml
EDIT:
Sieht so aus, als hätte der Hoster gerade Probleme.
Hallo,
kann man das Vorschaubild der pdf mit einem responsiven
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.