Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » 3.1 ImageMagick PDF Request

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 240 Views
  • tazzydemon
    Avatar
    Community Member
    114 Posts

    3.1 ImageMagick PDF Request Link to this post

    Guys,

    One huge advantage of ImageMagick (IMHO) is that it can make images out of PDFs. Many clients want thumbnails of their pdfs so that they can link to that.

    So, I rather naively told File.php that .pdf files were Images, hoping that a thumbnail would just be created. Doh!

    But I did copy a pdf as a png (ludicrous I know) and lo and behold the system made a thumb out of it and it worked.

    I am therefore suggesting that if a pdf is uploaded, the upload system is arranged to make a png or jpg copy of the pdf and store that as well so it can be used for link purposes. I think this would a a popular idea. I will try to present an example myself.

    Julian

  • tazzydemon
    Avatar
    Community Member
    114 Posts

    Re: 3.1 ImageMagick PDF Request Link to this post

    By the way, is the correct syntax with ImageMagick config

    YML:

    Image:
    backend: 'ImagickBackend'

    or _config.php:

    Image::set_backend('ImagickBackend');

    When to use the different type of config and what the arguments might be as as clear as mud.

    240 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.