Thumbnail height in mla_gallery
-
Hi David,
since WordPress started generating thumbnails for pdf documents I have found problems with my mla_gallery. I explicitly specify the thumbnail height and width as such:
... columns=4 mla_viewer=true mla_viewer_height=150 mla_viewer_width=150 mla_viewer_resolution=100 ...For jpeg or pdf documents loaded until about December 2016, I am getting the correct 150 pixel size in height and width, while pdf (not jpeg) documents loaded after that time are displayed at 150px in width but at a different height, proportioned to the original document height.
I believe the pdf thumbnail image is no longer generated in real time by the viewer but rather stored by WordPress at document load time.
I have tried clearing the checkboxes
Enable Featured Imagesand
Enable Featured Image Generation
in the Administrator/Shortcodes tab, but I don’t notice any change.I have also tried adding the specification
mla_viewer_best_fit=true
to my mla_gallery shortcode but this makes things worse, as even older documents get displayed with proportional height.NOTE (relevant?).
In the Administrator/Shortcodes tab, I am now getting a warning about Ghostscript not beng present in the Linux virtual server (the check did find gs in the past). My web provider has stated that Ghostscript is available, but they won’t disclose the absolute path for security reasons, and said I should clear the check from
Enable explicit Ghostscript check
In fact only if I do clear it (thus avoiding checking) I can get the thumbnail generation by the mla_viewer to work for old pdf documents. Old jpeg are not affected.To summarize: Without an “Explicit Ghostscript check”, the mla_viewer creates thumbnails for old (2016 and earlier) pdf at 150×150, and it does not get involved for new (2017) pdfs, which are displayed at 150xSomething. All jpegs are OK.
With the “Explicit Ghostscript check”, the mla_viewer fails to create any old pdf thumbnails, and new pdf are displayed at at 150xSomething. All jpegs are OK.My goal is to control height even for new PDFs. What can I do?
Guido
The topic ‘Thumbnail height in mla_gallery’ is closed to new replies.