By Peter McLeland on Friday, 18 November 2016
Replies 23
Likes 0
Views 1.3K
Votes 0
EasySocial 2.0.5

I'm really pleased with the way this component encourages interaction from my users and it helps that it's sort of like Facebook for them to use and understand.

However when they upload photos into albums from their phones etc, these images can be such large files that its becoming noticeable very quickly how much space is disappearing on my server...

In order to limit the problem until I find a solution I have limited the upload filesize and the number of photos uploaded per user per day. But this causes frustration for the user as their uploads don't work.

Is there a setting I could have missed to resize any photo when uploaded?

As far as I can see when a photo is uploaded there is the original, large, stock and thumbnail versions created.

I looked at just one photo that had been uploaded as an example and saw that the original was 1600x1200 (Just over 1MB), the stock was also 1600x1200 (572KB), the large was 1280x960 (787KB) and the thumbnail 341x256 (73KB). This is far from being the largest of photos that have been uploaded, some have been nearer 6MB!

Reducing the 3 largest photos to a long edge of 800px brought their filesizes down to just over 100KB each and this seems fine for web display purposes. But its not practical for me do do this manually after the photos are on the server.

I know that I can try the long hard slog of encouraging users to resize their photos somewhere else before uploading but that takes away all the convenience to them of using EasySocial.

So, sorry for the long post but is it possible:

To resize photos during the users' upload?

If not, is this a feature that could be added?


Thanks
Hello Peter,

We don't currently have a settings to be enforced for photo sizes but what I would suggest you is to consider utilizing Amazon S3 to store your files on a cheaper storage.

I will see if we could add a new settings in the upcoming version of EasySocial where you can define the maximum width / height for photos that are uploaded on the site and if the image exceeds these dimensions, it would then resize it accordingly.
·
Saturday, 19 November 2016 00:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I had a look at Amazon S3 yesterday with a view to it providing a solution. But to be honest it seemed quite a complicated setup and very difficult to work out what the ongoing costs might be, so I decided against and thought I'd put the situation to you guys...

If you are able to incorporate a setting to define maximum longest side I think that would be a perfect solution and I'm sure there must be other EasySocial users that face this issue so they'd benefit too

Thanks again for your advice.
·
Saturday, 19 November 2016 00:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Amazon S3 is actually pretty cheap Peter. We have almost a daily backup of our site's db and files for over 2 year's worth and it costed us only about $30 a month.
·
Saturday, 19 November 2016 16:40
·
0 Likes
·
0 Votes
·
0 Comments
·
....I will see if we could add a new settings in the upcoming version of EasySocial where you can define the maximum width / height for photos that are uploaded on the site and if the image exceeds these dimensions, it would then resize it accordingly.


Hi, did this happen? If so could you point me to where the settings are please?

Thank you
·
Tuesday, 06 December 2016 20:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Nope it is not there yet Peter. We will probably focus on releasing major updates in 2.1.
·
Wednesday, 07 December 2016 00:40
·
0 Likes
·
0 Votes
·
0 Comments
·
As a photographer indeed this would be a great setting to have. In my case I would still prefer people to be able to upload big photos, however I want to enable users to upload huge photos that would be resized to a large image. This would allow us to increase the upload size requirement (creating less failed uploads) but then being resized by the server which would bring the photo size down to what it should be. A 6000 x 4000px photo could be resized to a 3000px wide photo which is still a great resolution and would save a tremendous amount of space. Other site owners will likely want smaller than this.

Less upload failures is a very important part of the user experience, especially in an age of high resolution photography and big smart phone photos.
·
Wednesday, 07 December 2016 01:13
·
0 Likes
·
0 Votes
·
0 Comments
·
....Less upload failures is a very important part of the user experience, especially in an age of high resolution photography and big smart phone photos.


I think that sums up the need for this feature.

I'm already getting grumbles from users who get upload failures, they just don't realise how big their iphone (and other mobiles) photos are.
·
Wednesday, 07 December 2016 02:25
·
0 Likes
·
0 Votes
·
0 Comments
·
+1 for such a feature
·
Wednesday, 07 December 2016 02:31
·
0 Likes
·
0 Votes
·
0 Comments
·
This functionality will not solve upload issues because if the file size exceeds the maximum allowed size in php, it will still stall. It only prevents large files from being stored on the site as the original photo has been resized to a maximum width / height.
·
Wednesday, 07 December 2016 16:38
·
0 Likes
·
0 Votes
·
0 Comments
·
In my case my max php upload size is fine but I don't want users uploading straight from their phones images that can be 6MB which are then stored at that size on my site. In most cases on my site the photos are only really snapshots so don't need to be anything like that quality.

Lowering the filesize of photo that can be uploaded is the temporary solution but then those photos straight from the phone then fail on uploads - which upsets the users.

If they can upload straight from the phone and the component automatically reduces the longest edge to a preset figure all would be well.

Neil
·
Wednesday, 07 December 2016 17:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Noted, will move this thread to the feature requests section.
·
Wednesday, 07 December 2016 17:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you
·
Wednesday, 07 December 2016 17:46
·
0 Likes
·
0 Votes
·
0 Comments
·
This functionality will not solve upload issues because if the file size exceeds the maximum allowed size in php, it will still stall.


Even before I knew HTML I knew to modify the php.in file in case of needing a means of uploading bigger images. Having a resize option will reduce upload failures so long as we properly configure the server file. I recall the server default on multiple hosts being much higher than 8MB. This would inevitably create less issues for Stackideas due to the greater success of uploading photos through out ES.
·
Wednesday, 07 December 2016 21:20
·
0 Likes
·
0 Votes
·
0 Comments
·
The problem with most web hosters is, they have no idea that php by default uses 2MB as it's default upload size :| Anyhow I think this option would be good in terms of saving your disk space which is something that we are gearing towards as well by reducing some different variant of the profile pictures, cover and photos in EasySocial 2.0

Moving forward, we will aim at only having at max 2 files for a particular image.
·
Thursday, 08 December 2016 13:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi all,

Any updates on this one? This feature will be awesome. It is not only for disk space but also the speed of the website is very important so big filesize of images will prevent a fast website.

Kind regards,
Hugo van Leeuwen
·
Friday, 30 June 2017 21:23
·
0 Likes
·
0 Votes
·
0 Comments
·
+1
·
Saturday, 14 October 2017 21:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Will this now be possible in ES 2.1?
·
Saturday, 14 October 2017 21:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello any news about this ??? We are testing easysocial and for sure this is a problem I have uploade a 2MB photo to my site and every time Has to load, please any solution ?
·
Sunday, 22 October 2017 03:52
·
0 Likes
·
0 Votes
·
0 Comments
·
little reminder - are there any news about this
·
Wednesday, 15 November 2017 22:52
·
0 Likes
·
0 Votes
·
0 Comments
·
+1 also

It's quite fundamental these days that people will upload photos direct from their phones, so having EasySocial then shrink them down really is needed.

JomSocial and even Community builder have this feature!
Jay
·
Sunday, 03 June 2018 23:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Any update on this?
·
Wednesday, 25 July 2018 21:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, any updates on this? Seems like a feature that's quite in demand from ES admins. As mentioned above, one option is to limit file upload size but users will just skip the site and go to FB or Instagram. The best option is to use client side image resizing or compression.

I've been getting 504 errors trying to load my site because uploaded images are too big and just posted about client side image resizing (I posted about this on Community Builder a while back and took them a while but they implemented it). Hope to see this in ES asap!
·
Thursday, 06 September 2018 18:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post