By Philippe on Wednesday, 30 May 2018
Posted in Technical Issues
Replies 9
Likes 0
Views 634
Votes 0
Hello,

When a user add a new video from YouTube, a image is generated by EasySocial.

And i notice that when I add this video : https://www.youtube.com/watch?v=ftlvreFtA2A
On my site, the image have a large size : 1280x720 px
The same video on your demo site, the image have a less size : 480x360 px

I've tested with Vimeo, it's the same thing.

Why ?
What is file in EasySocial witch define this size ?

Thank you
Philippe
Hi there,

Currently, we will crawled those images based on the video og tag and and those videos uses large og images and will us them instead. As for our demo, it is because our demo still not on it latest version actually. I have asked our developer to update them. Thanks for your understanding.
·
Wednesday, 30 May 2018 11:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah ok. I see.

The video images are sometimes very big. 2272 × 1704 px
For thumbnails, it's a bit heavy.
Which file defines the choice of this og images, compared to the old version of EasySocial (your demo) ?

Thank you Warith
·
Wednesday, 30 May 2018 17:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Currently, we are fetching it original image tag, according to og image given for that videos and for our older version, we only fetch the image, convert them and use small version of the images.

Here i included codes we used on our older version and current version. You can modify them here .../administrator/components/com_easysocial/includes/video/video.php

[gist type="php"]
//current version 2.2.1
if ($opengraphImage) {
$thumbnail = $params->opengraph->image;
} else if (isset($params->oembed->thumbnail)) {
$thumbnail = $params->oembed->thumbnail;
}

//version 2.1.x
if ($opengraphImage) {
$thumbnail = $params->opengraph->image;
} else if (isset($params->oembed->thumbnail)) {
$thumbnail = $params->oembed->thumbnail;
}
[/gist]

Please give it a try and see how it goes.
·
Thursday, 31 May 2018 10:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok. Thank you.

On this subject, I saw that JomSocial offers a nice feature :
It offers two sizes for video : the video thumbnail size in wall stream and full width for elsewhere places.



Philippe
·
Sunday, 17 June 2018 21:02
·
0 Likes
·
0 Votes
·
0 Comments
·
I believe that is merely just css to define the width of the image (html wise), but the image source is still the same.
·
Sunday, 17 June 2018 21:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh I see.
·
Monday, 18 June 2018 17:19
·
0 Likes
·
0 Votes
·
0 Comments
·
I wish there is a better way of handling this but as of now, customers are complaining about too many files being generated
·
Monday, 18 June 2018 18:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hard to please everyone
·
Monday, 18 June 2018 19:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Yeah, exactly and adding too much settings is not ideal too because customers would keep asking about what each settings does.
·
Monday, 18 June 2018 21:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post