Problem/Motivation

When we save media entity with pdf file, the thumbnail image is saved public://styles/thumbnail/public/ directory, but this directory is reserved for image styles. Then when we go to the media list page and check thumbnail image url, we can see something like this /sites/default/files/styles/thumbnail/public/styles/thumbnail/public/2019-09/examplefile.pdf.png

Proposed resolution

We should create a separate directory "media_pdf_thumbnails" and save new images here. Also we should remove deprecated functions.

CommentFileSizeAuthor
#2 media_pdf_thumbnail-3085777-2.patch2.23 KBlamp5
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lamp5 created an issue. See original summary.

lamp5’s picture

Assigned: lamp5 » Unassigned
Status: Active » Needs review
FileSize
2.23 KB
sgostanyan’s picture

Status: Needs review » Fixed

The module has received significative updates. Please update to version 2.1
Thanks.

sgostanyan’s picture

Status: Fixed » Closed (fixed)