• Resolved georg4075

    (@georg4075)


    Hi David,

    Thank you so much for this great plugin, it’s amazing and so powerful.

    Creation of PDF thumbs worked fine with my install using imagemagick and gs.
    Since I am offloading my media to S3 however using the “WP Offload S3 Plugin”, I am getting the following error when creating thumbnails:

    ERROR: Item 2061, thumbnail generation failed – Image load exception: Unable to read the file: s3eucentral1://mybucketname/myfilename.pdf[0]

    (I did replace the real values to mybucketname and myfilename for privacy.)

    Do you have any hint for me?

    Best,
    Georg

    https://www.ads-software.com/plugins/media-library-assistant/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for the positive feedback and for your question. Thanks as well for the details on WP Offload S3 and the error message you are getting.

    The MLA PDF viewer and thumbnail generator use Ghostscript and Imagic/ImageMagic on your server to process files on your server. The current version does not have any ability to read and process remote files based on a URL. It looks like the WP Offload S3 plugin has replaced the WordPress “attached file” value with the S3 URL.

    I see that the WP Offload S3 plugin has an “Advanced Option” to remove files from the local server, which defaults to Off. There may be some other way to access a local copy of the file if it’s still on the server. It would take some experimentation with the plugin to find out if and how that can be done.

    I also found this mention in their documentation:

    WP Offload S3 Lite

    Out of the box the plugin supports the WordPress image editing and Customizer image tools, as well as the popular Regenerate Thumbnails plugin. It also allows plugins to communicate with S3 images, even if they have been removed from the server, fixing the majority of plugin compatibility issues.

    There might be some hooks or functions that would help, but the solution they describe is for them to write an add-on to handle the task.

    I don’t use S3 so it would be difficult for me to proceed. If you can do some investigation and find how to access the local file in some way I can investigate further. I’m traveling until June 18 so there will be a delay in responding. Thanks for your patience and any additional information you can provide.

    Thread Starter georg4075

    (@georg4075)

    David,

    Thank you so much for your kind help.

    Indeed that setting was key.
    I had it on “off”, after having it back on everything works fine!

    Thumbs up!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PDF Thumbnail generation when files are offloaded to S3’ is closed to new replies.