By Josh Lewis on Thursday, 21 May 2015
Posted in General Issues
Replies 3
Likes 0
Views 812
Votes 0
This is a continuation of the thread Tiny Image Stretches when Sharing Link. With the introduction of ES 1.3.26 and sharing links, the image dimensions seem to be checked when scrolling through the images.



Now that we have a method for checking for the image size, I suggest that images below a certain size be hidden so that we don't end up with stretched arrows and navigating many not very useful images when posting links.



Here is a real life example of a page that uses many small images before getting to a decent one (excluding the logo). When you place it in the stream, you are forced to navigate through 7 images until you get to a relevant photo due to all the icons.

What I recommend is a option that allows the admin to hide images under X width or height.
Hello Josh,

The concept that you have is ideal and it is what we did in the previous versions of EasySocial but to actually get the size of these images via PHP is too slow as the script needs to retrieve more information about the image and since the image is hosted externally, it needs to first download all these images and get the sizes.

I am still finding a better optimized way of doing this without using php scripts to download these images. Perhaps via javascript but more thoughts needs to be placed here.
·
Friday, 22 May 2015 13:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:

... to actually get the size of these images via PHP is too slow as the script needs to retrieve more information about the image and since the image is hosted externally, it needs to first download all these images and get the sizes.


What method is being used to get the image size as seen here?



I admit that I was going on a whim hoping that the same method used for getting the image size could be applied to filtering of images.
·
Friday, 22 May 2015 13:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Josh,

I am sorry for the delay of this reply.

The image link is currently taken directly from the metadata image tag from the link itself. For example http://stackideas.com/blog/one-step-closer-easyblog5-alpha3-is-here is using http://cloud.stackideas.com/images/easyblog_images/67899/b2ap3_thumbnail_eb-alpha3.jpg as the image metadata with 400x276 in dimension.
·
Monday, 25 May 2015 17:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post