Skip to content

Move poster/thumbnail creation of video files to piwigo cache directory .../_data/i/galleries/... #97

@jan356

Description

@jan356

When creating a poster (i.e. a thumbnail) for a video file, this is done in the directory
[original location of the video]/pwg_representative

However, on my system the directory with (original) image and video files is not writable by the webserver (which is running as wwwrun:www), so when this plugin creates a video poster, I get the warning "Warning: mkdir(): Permission denied in /srv/www/htdocs/piwigo/plugins/piwigo-videojs/include/function_sync2.php on line 132".

Can an option be made to create the video poster in the piwigo cache directory .../_data/i/galleries/..., which is writable by the webserver? Thanks.

Example:
original file:
/data-hdd/images/2016/dirname/videoname.mp4
now, the poster is created in
/data-hdd/images/2016/dirname/pwg_representative/videoname.jpg
however the directory /data-hdd/images/2016/dirname/ is not writable by the webserver, so an error is generated.

my proposal is to create the poster in
/data-hdd/piwigo/_data/i/galleries/2016/dirname/pwg_representative/videoname.jpg
which is writable by the webserver.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions