GithubHelp home page GithubHelp logo

contao-previewdownload's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

contao-previewdownload's Issues

Die Erweiterung crasht wenn der Cacheordner nicht angelegt wurde

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.

Minor bugs and feature request: Spaces in file path, explain the path to ImageMagick

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.

ImagickException(code: 420): NoDecodeDelegateForThisImageFormat `JPEG'

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.

responsive <picture>

Hallo,
kann man das Vorschaubild der pdf mit einem responsiven Tag versehen, damit auch auf mobilen Klienten ein gestochenes Bild erscheint?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.