By Jarook on Sunday, 24 September 2017
Posted in General
Replies 14
Likes 0
Views 1K
Votes 0
01. Image capacity is getting increase..
I uploaded a image with capacity of 76.1kb in ES stream, then I checked by downloading it. After downloading it the capacity of the image was 275kb which means it increase the capacity of real image into my server. It consume high space into my server

Why like this? See the diffrents (I uploaded original image the named "jk" with this ticket. and see the screen shot too)

02.And one more doubt. While uploading the image in Easysocial, it gets the real file name on the easy social, Is there any way to put common name on it or Can we delete the real name on it?
01. Image capacity is getting increase..
I uploaded a image with capacity of 76.1kb in ES stream, then I checked by downloading it. After downloading it the capacity of the image was 275kb which means it increase the capacity of real image into my server. It consume high space into my server

Why like this? See the diffrents (I uploaded original image the named "jk" with this ticket. and see the screen shot too)

In EasySocial, we actually using GD Library to process resize image but some time this library does not compress images properly, it actually depend on the image dimension as well, since most of the user would like to display high quality image on their website in previously, so we hardcoded that image quality value to 100%, but you can modify this file to reduce the image quality :

JoomlaFolder/administrator/components/com_easysocial/includes/image/adapters/asido/class.driver.gd.php


// line 31
// Prior to 2.0, photo quality is always 100
$quality = (int) 100;

// you can reduce your image quality from 100 to 60
// Prior to 2.0, photo quality is always 100
$quality = (int) 60;


02.And one more doubt. While uploading the image in Easysocial, it gets the real file name on the easy social, Is there any way to put common name on it or Can we delete the real name on it?

Yes, it will display the real name of that photo as what you upload to, to rename this either you rename the image file name before you upload or after you uploaded, you can rename it through edit photo page, you can refer on my attached screenshot below.

Hope this will help.
·
Monday, 25 September 2017 10:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks.
01.After this code edit I checked the same image, Fine It reduced the same image.

But I tried uploading a 1.25mb png type of image, you know it increased the capacity to 1.4mb.

Why?

I have attached the original and screen shot.

02.And also tried an image name called "Qz" but it says some kind of error(See original image & error screen shot)
·
Monday, 25 September 2017 14:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks.
01.After this code edit I checked the same image, Fine It reduced the same image.

But I tried uploading a 1.25mb png type of image, you know it increased the capacity to 1.4mb.

Why?

I will lock this issue into our issue tracker, we will see if we can find a better way to solve this, because it seems like that is GD library image compression issue.

I have attached the original and screen shot.

02.And also tried an image name called "Qz" but it says some kind of error(See original image & error screen shot)

It seems like I was unable to reproduce this issue, you can watch my video here : http://take.ms/QPfL9
May i know which user account you use to test this upload image?
·
Monday, 25 September 2017 19:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks.
01.I hope that u would find proper solution for it. I am looking forward ur answer on this issue.
02.You said that u couldn't find issue like that, in my case I tried again, but the issue is still available. pls try this from Registered user account.
Username:hasan
password:jk10897^
·
Monday, 25 September 2017 21:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Alright, once our developer find the better solution for this, I will update you.

Regarding with your second issue, I've tried again, it seems work fine, you can check my video here : http://take.ms/8rbOO

Perhaps you can follow my step open browser development console tool then check that upload image response and see what you getting.
·
Tuesday, 26 September 2017 11:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you

Ok. I'll be waiting for your solution. (And kind request I have planed to publish my site soon, so pls give me solution as soon as fast.)

And the 2nd issue may be with my browser as you said. I checked with diffrent browser It works. So leave it.
·
Tuesday, 26 September 2017 13:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Alright, I will keep you update regarding with your first issue.
·
Tuesday, 26 September 2017 15:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Just an update with your first issue, our developer still looking for the solution whether there got a way to optimise this, so next beta version 3 will not include any fix for this yet because we have to push out beta 3 today since we fixed quite a lots of bugs and changed some of the theme HTML doom structure.
·
Thursday, 28 September 2017 11:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Just a reminder,
Is there any solution you found for easysocial image capacity increase issue I stated above?
·
Monday, 02 October 2017 13:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Jarook,

There is really nothing we can do to this right now as we need GD library to apply alpha and transparency on the image. Otherwise, there is no way for us to get the transparent images to be resized properly.
·
Monday, 02 October 2017 21:44
·
0 Likes
·
0 Votes
·
0 Comments
·
I can understand, But it is a big issue..If we upload images except .jpge file it increases the size of the images in the site..

*My suggestion: Why don't you insert a image quality setting for EasySocial in the back end like you have in EasyBolg?(See the screen shot)

However if you provide me a solution for it, would be fine..
Waiting for your solution on this issue.

Thank you.
·
Tuesday, 03 October 2017 17:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Jarook,

This isn't just about image quality. It's more about the alpha blending and alpha filters for transparency. As soon as we apply those transparency, it becomes really difficult.

It is ideal to use jpeg instead of png when your image contains these kind of coloring and transparency.
·
Tuesday, 03 October 2017 21:08
·
0 Likes
·
0 Votes
·
0 Comments
·
However, we cannot ask the users to not to put .png image on our site. Isn't it. But It gets increase..
·
Tuesday, 03 October 2017 22:40
·
0 Likes
·
0 Votes
·
0 Comments
·
To be honest, we do not have a solution for this as of now. We rely heavily on the GD library from PHP and there is no work around for this that I can think off considering that we still need to maintain the filters and alpha blending. We will try to see if there are any better work arounds but to be quite frank, it's almost impossible to optimize those images with GD.

Also, if disk space is a concern, I think you should consider about storing images through a cheaper storage.
·
Tuesday, 03 October 2017 23:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post