Hello,
using latest version of piwigo
I update the file local/config/config.inc.php using the plugin "Local file Editor"
with this:
$conf['file_ext'] = array_merge(
$conf['picture_ext'],
array('pdf')
);$conf['upload_form_all_types'] = true;
Any idea, help, are welcome.
Thanks
Phil
Raspberry pi 4
Piwigo 16.4.0 Dernière version ?
Installé le 5 janvier 2022, il y a 4 ans 4 mois 4 semaines
Système d'exploitation: Linux
PHP: 8.2.30 (Montrer les informations) [2026-06-02 17:35:37]
MySQL: 10.5.29-MariaDB-0+deb11u1 [2026-06-02 17:35:37]
Bibliothèque graphique: External ImageMagick 6.9.11-60
Offline
I moved forward with success except on thumbnail topic.
pdf are now visible except IF the pdf file is too large, the message is clear.
However the last issue to solve: how to generate thumbtail of a pdf file, to not have the default pdf icon ?
How I solved?
1/ local file editor
only have one standza like this one, otherwise the second one overwrite the first one
$conf['file_ext'] = array_merge(
$conf['picture_ext'],
2/ edit file /etc/ImageMagick-6/policy.xml and modify none with read|write
grep -i pdf /etc/ImageMagick-6/policy.xml
<!-- <policy domain="module" rights="read|write" pattern="{PS,PDF,XPS}" /> -->
<policy domain="coder" rights="read|write" pattern="PDF" />
Thanks for all answers.
Offline
I desactivate the plugin "media icon"
delete the pdf file
synchronize
transfert the pdf file again
synchronize
same result, a PDF icon but not the thumnail of the pdf file.
Any idea?
Thanks
Phil
Last edited by Phil35 (2026-06-02 20:32:18)
Offline
Phil, I gave you an answer on your other thread : check with your hosting provider.
Here is what I noted down : https://agora.chauvigne.info/viewtopic.php?id=596
Last edited by Katryne (2026-06-02 21:06:33)
Offline
Hi Katryne,
Thanks for your answer, I appreciate the time you took for.
hosting provider: this is me :-)
Piwigo is hosted on a raspberry pi4 with apache2 / mariadb and let's encrypt, this is only for family.
There is nothing in logs (dir: /_data/logs), no error.
I can confirm what you wrote about metadata never catch, values are "NULL" in database
MariaDB [piwigo_db]> SELECT id,file,width,height,representative_ext -> FROM piwigo_images -> WHERE file LIKE '%.pdf'; +-------+--------------------------------+-------+--------+--------------------+ | id | file | width | height | representative_ext | +-------+--------------------------------+-------+--------+--------------------+ | 92207 | yyy.pdf | NULL | NULL | NULL | | 92208 | xxxxxxxxxxxxxxx.pdf | NULL | NULL | NULL | +-------+--------------------------------+-------+--------+--------------------+ 2 rows in set (0,147 sec)
a command such
convert xxxxx.pdf[0] test.jpg
runs correctly
about binaries
# whereis ffmpeg
ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz
# whereis exiftool
exiftool: /usr/bin/exiftool /usr/share/man/man1/exiftool.1p.gz
# whereis mediainfo
mediainfo: /usr/bin/mediainfo /usr/share/man/man1/mediainfo.1.gz
# whereis ffprobe
ffprobe: /usr/bin/ffprobe /usr/share/man/man1/ffprobe.1.gz
So the question is:
-is it a normal behavior with piwigo 16.4.0?
-is it a function not yet implemented?
-is it a bug?
thanks to piwigo team @plg for an answer.
@Katryne I will try the update photo plugin. / thanks
Phil
Last edited by Phil35 (2026-06-03 10:22:32)
Offline
Hello Katryne,
Huge thanks for the tip (plugin photo update) , it works perfectly.
However it is strange piwigo was not able to do it itself, isn't it?
When a pdf file is detected during synchronization:
1/ convert document.pdf[0] document.jpg
2/ use the file document.jpg as representative in the subdirector "pwg_representative" for the file document.pdf
I will be happy to listen from the Piwigo Team :-)
Phil
PS: I also found in the documentation:
"It can also be used to update the image representing a non-image file (video, audio, document, etc.)."
https://doc.piwigo.org/import-and-manag … ing-photos
Last edited by Phil35 (2026-06-03 18:43:27)
Offline
Don't forget Phil, that if you have the Charlies Content plugin enabled, the photo update tab won't be displayed when editing a video. You will have to disable Charlies (not delete !), then the Photo update tab will be available for the vidéo, and only then you will be able to upload the video thumbnail. Once it's done, you may enable Charlies content again.
It's a pain, I know, but I did not find a way to do it otherwise.
Offline