By Philippe on Friday, 29 September 2017
Posted in Technical Issues
Likes 0
Views 790
Votes 0
Hello,

The constants.php file specifies especially the values of the following generated images :

define('SOCIAL_PHOTOS_THUMB_WIDTH', 256);
define('SOCIAL_PHOTOS_THUMB_HEIGHT', 256);

define('SOCIAL_PHOTOS_LARGE_WIDTH', 1280);
define('SOCIAL_PHOTOS_LARGE_HEIGHT', 1280);

This means that _ thumbnail.jpg images will have a maximum of 256 pixels in height or width.
And images _large.jpg will have a maximum of 1280 pixels in height or width.


In fact, I found that this rule is respected for _large images (1280 pixels is effectively the maximum value in width or height).
However this rule is not respected for _thumbnail images (we have 256 pixels for width or height, but the other value is always greater than 256 pixels).


For example, in your demo :
http://easysocial.stackideas.com/albums/19-scenery

wallpaper-4_large.jpg : 1280 x 853 pixels
wallpaper-4_thumbnail.jpg : 384 x 256 pixels
This is not consistent, wallpaper-4_thumbnail.jpg should have the following size: 256 x 171 pixels

wallpaper-27_large.jpg : 1280 x 960 pixels
wallpaper-27_thumbnail.jpg: 341 x 256 pixels
wallpaper-27_thumbnail.jpg should rather do: 256 x 192 pixels

Thank you.
Philippe
Yes, it will be fixed in RC.
·
Sunday, 01 October 2017 17:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Currently I am sure what is the reason for this yet, but I will consult with our developer regarding this and keep you update.

Based on what i check the code, you can try modify this code from this file to achieve this :

JoomlaFolder/administrator/components/com_easysocial/includes/photos/photos.php


// LINE 29
'mode' => 'outerFit'

// Replace with
'mode' => 'fill'

·
Saturday, 30 September 2017 16:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Arlex for your reply (even a weekend).

I tried, but with your custom code the _thumbnail is a square image (256 x 256 pixels).

'mode' => 'fill'

I have taken the line of code for _large images, and it works perfectly now !

'mode' => 'fit'

The _thumbnail image has a maximum of 256 pixels (height or width depending on whether the photo is in portrait or landscape format).

Philippe
·
Saturday, 30 September 2017 20:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Download the attached file and upload it into /administrator/components/com_easysocial/includes/photos/
·
Sunday, 01 October 2017 17:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark.

Does this will be fixed directly in EasySocial 2.1 RC ?
·
Sunday, 01 October 2017 17:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark
You are very effective even on a Sunday !
You answered all my questions in a few minutes
·
Sunday, 01 October 2017 17:27
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem.
·
Sunday, 01 October 2017 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post