Hello,
probably I am blind, but I am not able to see any pdf-documents.
After using piwigo for many years with approc 70k pictures, I would like to add 3 pdf.
I "can see" the pdf-icon in the folder, but no thumbnail and obviously I can not open the pdf.
Any hint is welcome.
KR
kuzco
Piwigo 13.7.0
Betriebssystem: WINNT
PHP: 7.4.6
MySQL: 5.5.5-10.4.17-MariaDB [2023-06-23 10:00:12]
Grafikbibliothek: GD bundled (2.1.0 compatible)
Admin Tools
Check Files Integrity
Custom Download Link
de_activate all language
Exif View
GThumb+
LocalFiles Editor
Media Icon
Personal Favicon
VideoJS
Offline
I believe there's a plugin for posting non-photo files
Offline
Kuzco, you should install first the plugin Charlies'content in its version 3.5. Read the notice to find the download link.
Then via localFiles Editor, local config tab, add : $conf['upload_form_all_types'] = true;
Note that on some servers, Piwigo may not create the PDF thumbnail. You will have to create it and add it to your pdf administration via the plugin update.
Here we added over 400 pdf : https://photos.revestou.fr/index?/categ … _le_revest
Offline
Thanks for the hint. I had downloaded the latest version(3.2.4) directly in piwigo, the version 3.2.4-2 is not valid for my piwigo version.
I was not aware that there was a v3.5 described on piwigo.org, however the download-link ** link HS ** does not work any longer for v3.5.
Are you are able to upload somewhere ?
Offline
I sent you a message.
Offline
Katryne - can I also ask for version 3.5.
I couldn't find her anywhere either.
Thank you very much.
Offline
there's a link to his website from the extension page. There you will find his various contacts.
Offline
Hello,
I am still struggeling with PDF-documents in my piwigo installation.
- Piwigo 13.8.0
- Betriebssystem: WINNT
- PHP: 7.4.6
- MySQL: 5.5.5-10.4.17-MariaDB
- Grafikbibliothek: GD bundled (2.1.0 compatible)
- Admin Tools
- Charlie's content 3.5
- Check Files Integrity
- Custom Download Link
- de_activate all language
- Exif View
- GThumb+
- LocalFiles Editor
- Media Icon
- Personal Favicon
- VideoJS
- checked that "$conf['upload_form_all_types'] = true;" is in my "LocalFiles Editor"
- copied the folder /charlies under /plugins
- activated "Charlie's content 3.5"
- copied *.pdf in my physical directrory (I am not using virtual directories)
- synchronized the folder and see that I have 2 more pdf
-- 2 photos' information synchronized with files metadata
-- 2 photos candidates for metadata synchronization
Unfortunately, I only see a questionmark with the pdf-icon.
Checking the source-code shows:
<li class="gthumb" style="height: 184px; width: 181px;">
<a href="javascript:;" data-index="90" style="clip: rect(0px, 181px, 184px, 0px); top: 0px; left: 0px;">
<span class="media_icon media_icon media_icon_pdf_logo"></span><img class="thumbnail" media_icon="2023_06_16_Abi-Zeugnis.pdf" src="themes/default/icon/mimetypes/unknown.png" alt="2023 06 16 Abi-Zeugnis" title="2023 06 16 Abi-Zeugnis" width="48" height="48" style="height: 184px; width: 181px;">
</a>
</li>Any hint is welcome.
Offline
Hello, the library for images on my server is External-Image-Magick, not GD as yours, so I do not know for the GD library. 2 years ago, when I uploaded pdf, the adequate thumbs were automatically created and were displayed without any action on my side.
Following an update of the library, thumbnails creation for non-image files have been disabled by default with image-magick. As I do not have access to the server settings, since I am on shared hosting, I had to look for a solution. And here is what worked for me :
1 - I installed the Photo update plugin
2 - I make locally a picture for the pdf thumb, from a page I choose, generally the 1st one
3 - I upload my pdf file (I always use the web form).
4 - Its thumb is displayed as an interrogation mark.
5 - I open the pdf in editing mod
6 - I click on the Tab called "Photo update"
7 - I choose to replace the thumb (Piwigo representative) and search on my computer for the previously made thumb picture.
8 - Save the page and there it is : thumbail for my pdf.
Thats' long, but look here, there are over 500 pdf available now on this site : https://photos.revestou.fr/index?/categ … _le_revest
Last edited by Katryne (2023-08-22 15:33:24)
Offline
Thanks for the great info. Have updated to PHP 8.0.29 and also installed Imagick on my Windows server. So, now I have: Graphics Library: ImageMagick 7.1.0-18 (do not know who to enable auto thumbnail generation).
The way you described was working for the thumbnail - many many thanks for the hint !!
However, if I click the thumbnail I will see only the thumbnail, but not my pdf - that is strange.
<a href="javascript:;" data-index="90" style="clip: rect(0px, 136px, 200px, 0px); top: 0px; left: 0px;">
<span class="media_icon media_icon media_icon_pdf_logo"></span><img class="thumbnail" media_icon="2023_06_16_Abi-Zeugnis.pdf" src="_data/i/galerien/Ausfluege_und_Events/2023/06_16_Zeugnis_Abi23_Elena/pwg_representative/2023_06_16_Abi-Zeugnis-cu_s9999x200.png" alt="2023 06 16 Abi-Zeugnis" title="2023 06 16 Abi-Zeugnis (3 visits)" width="136" height="200" style="height: 200px; width: 136px;">
</a>My href is "javascript" and yours is "picture?/Bulletin_AVR_...".
Last edited by kuzco (2023-08-22 18:47:09)
Offline
I have never used physical directories in Piwigo. So I cannot help.
Offline