I've managed to have an EventHandler create a thumbnail of the 1st page of a PDF when saved in the Media Section - but how do I get the Media section to show that thumbnail for the PDF?
If the PDF is named "/media/1234/presentation.pdf" the thumbnail gets the (standard) name "/media/1234/presentation_thumb.jpg" - but the Media Section apparently doesn't automatically show that file as the thumb, if it's not an Image Media Type (PDFs are File Media Types).
Not really sure if you can tweak this. I think a thumbnail is only displayed if the uploaded file has the correct extension. Maybe it's easier to create a custom property editor which you add the File Media Type. The property editor could check if there is a thumbnail available and show that always.
Show thumbnail for PDF when a thumbnail exists
Hi all!
I've managed to have an EventHandler create a thumbnail of the 1st page of a PDF when saved in the Media Section - but how do I get the Media section to show that thumbnail for the PDF?
If the PDF is named "/media/1234/presentation.pdf" the thumbnail gets the (standard) name "/media/1234/presentation_thumb.jpg" - but the Media Section apparently doesn't automatically show that file as the thumb, if it's not an Image Media Type (PDFs are File Media Types).
Does anyone know how/where to tweak?
/Chriztian
Not really sure if you can tweak this. I think a thumbnail is only displayed if the uploaded file has the correct extension. Maybe it's easier to create a custom property editor which you add the File Media Type. The property editor could check if there is a thumbnail available and show that always.
Jeroen
is working on a reply...