Announcement

#1 2020-05-02 10:05:18

Kristian77
Member
2020-04-08
4

Thumbnails

Hello/Hi/Greetings, Can i somehow upload thumbnails to videos on manually. My server wount support ffmpeg, mediainfo, etc, and cant install those.



Piwigo version: 2.10
PHP version:
MySQL version:
Piwigo URL: http://

Offline

 

#2 2020-05-02 12:19:34

erAck
Only trying to help
2015-09-06
2026

Re: Thumbnails

You can manually FTP upload representatives into an accompanying pwg_representative/ directory, for example if there is a video upload/2020/05/02/filename.mp4 then the representative would be upload/2020/05/02/pwg_representative/filename.jpg
Copy the index.html from the parent directory into the pwg_representative/ directory to prevent directory listing regardless of how your server's indexes option is set.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2020-05-02 12:38:30

Kristian77
Member
2020-04-08
4

Re: Thumbnails

I did that, but still have no thumbnail :/

Offline

 

#4 2020-05-02 14:45:13

erAck
Only trying to help
2015-09-06
2026

Re: Thumbnails

Ah darn, I forgot, it needs an entry in the database as well, table piwigo_images field representative_ext the filename extension e.g. jpg (which would happen if you synced from an FTP folder or had it generated from the video which you can't).

[extension by plg] Photo Update is said to be able to update the representative, I never tried.


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2020-05-02 16:14:47

Kristian77
Member
2020-04-08
4

Re: Thumbnails

Im not expert on Mysql/Myphp, But did not get it work. I did this.

https://i.ibb.co/bHWsTXK/pg-images.jpg

I tried that addon, but it only seem to work images, not thumbnails, so i cant change default icon to my upload.

Last edited by Kristian77 (2020-05-02 16:18:39)

Offline

 

#6 2020-05-02 19:55:26

erAck
Only trying to help
2015-09-06
2026

Re: Thumbnails

Looking at plugins/photo_update/admin.php source code it also enters width and height of the representative to the database, but I don't know if that is necessary to have it displayed at all.

As it does that if ('representative' == $file_to_update) my guess is it offers to upload a representative as well if you upload/update the main file, I didn't investigate deeply.

Shrug, I'd rather kick the hosting provider who doesn't want to install ffmpeg.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact