• Resolved Gammonite

    (@gammonite)


    We would like to have PDF support in our albums. It seems like this can be done by installing the ImageMagick plugin. There are reported vulnerabilities with this plug and I wonder if this is a concern. As I understand, this plugin is only used in WPPA+ to extract the first page of a PDF and create a JPG from it. I would appreciate your comments on this so I can assure our admin that this is safe to do.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    If you make sure your pdf’s do not contain malicious content, and no other users are permitted to upload pdf’s… i would dare to do it.

    Also, make sure your imagemagick version actually processes pdf’s, unfortunalely my hosting provider installed a version that no longer works, so i can no longer add pdfs to the doc site.

    Thread Starter Gammonite

    (@gammonite)

    Thanks Jacob. That gives us a lot to think about actually.

    I wonder if you might consider adding support for PDF’s similar to that for Audio and Video? For those we upload 2 files, one for the actual media file and one for a thumbnail image? PDF’s are very important to our project and we would consider contributing to the cost of this.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    support for PDF’s similar to that for Audio

    This is a good idea.
    It may take a few weeks, but i will work on it.

    Thread Starter Gammonite

    (@gammonite)

    Thank you. Looking forward to seeing what you come up with. I think it ill be a very useful feature. ??

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Got it working (dev version, not released yet, but available here:)
    https://downloads.www.ads-software.com/plugin/wp-photo-album-plus.zip

    If you want to test it, install it like explained here:
    https://wppa.nl/docs-by-subject/development-version/

    You can upload a pdf on the upload page box A or B
    You will no longer get an errormessage, but a warning, telling you that you can upload a .jpg image of the same name thereafter. (.png does not work yet)

    Thread Starter Gammonite

    (@gammonite)

    I see this on your WPPA Beta Test. This is very nice. I am looking forward to seeing it in a live release. Our Web manager is reluctant to use a beta version of the plugin. Thanks!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    This is released at 7.0.03, dec 04.

    See https://wppa.nl/changelog/

    If you have no ImageMagick installed or your ImageMagick version does not convert .pdf to .jpg, you can now upload a self created image file (e.g. screenshot) after the upload of the .pdf file. Names must be equal except the file-extension. .jpg and .png files are supported for this purpose.

    The ‘document’ documentation page will be updated asap.

    Thread Starter Gammonite

    (@gammonite)

    Ah, very good!

    One thing though. When I select the Thumbnail of a PDF from an Album, the Thumbnail is enlarged but there doesn’t appear to be a PDF to navigate. Perhaps I don’t have some setting ticked in the configuration tables.

    Thread Starter Gammonite

    (@gammonite)

    Actually, now that I look at the documentation page, I see I needed to add some coding. It now works exactly the way I have envisioned.

    Thank you very much for this!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PDF Support’ is closed to new replies.