Jump to content

Combine 3 selected/generated screenshot images into one


Recommended Posts

Hi Tech Support

Is it possible to combine images(3 actually) that is generated as screenshot to be combined into one using php? What I'm trying to do is select 3 screenshots using js in admin area for videos that I'm adding manually and do execute php function to combine 3 screenshots into one.



Link to comment
Share on other sites

It is possible to do with custom post processing plugin and customizing it to check if the video is vertical and merge screenshots. However, you will have to create a new file that will not be known to KVS, and it won't be managed by KVS. So if you for example decide to change something with screenshots in the future, e.g. switch to AVIF format for example, this separate file will be excluded from the conversion process. Or if we ever decide to migrate screenshot storage to a new structure, this will again not be included.

The better way would be to render 3 images directly in template, but this is also not optimal, because it will produce 3 requests instead of 1. Also there is currently no any way to know if the video is vertical or not inside a video list.

So I think we may probably need some adjustments here at conversion engine level. First of all we need to add ability to separate vertical VS horizontal videos. And secondly we need to add some option that will create a single screenshot from combined 3 for vertical videos. We will see if we can make this coming into 6.2.0.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...