By Jarook on Saturday, 18 November 2017
Replies 9
Likes 0
Views 727
Votes 0
Kindly pay more attention to develop a best image converting system for EasySocial.

Already It has a image converting system on ES. but it takes little high capacity while converting the images(80% the converting system is fine for .jpg file).


Issue -01:
The current image converting system on ES doesn't convert .png files. on the other way it increases the size of .png files while converting.


Issue -02:
If any image with high resolution (Eg.1250px X 850px, 2900px X 1250px or more), it doesn't reduce the image resolution while converting. Which means the capacity also will be little high.

That's why I am requesting Stackideas' guys to pay your attention with developing a best image converting system in future.
It is my kind request.

Thank you.
Hi Jarook,

I myself wondered about these issues of image compression.
I invite you to go see this post :
https://stackideas.com/forums/image-quality


Philippe
·
Saturday, 18 November 2017 23:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mr. Philippe

As you said in ur post, if there is Converting Option in the back end, would be fine.
·
Saturday, 18 November 2017 23:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes i’m agree with you.
For the moment, you have to manually edit two files.

administrator/components/com_easysocial/includes/image/adapters/asido/class.driver.gd.php
administrator/components/com_easysocial/constants.php
·
Sunday, 19 November 2017 00:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks.
Also kindly let me know. How to edit those two files (Is that still available in 2.1?)
·
Sunday, 19 November 2017 00:08
·
0 Likes
·
0 Votes
·
0 Comments
·
class.driver.gd.php
As a matter of fact, it is not really necessary to modify it because it is now possible to choose the compression value in the back-end

But modify constants.php, allows to modify the resolutions of images generated after each upload.
Avatar, Cover and Photos.
Just by changing the values into numbers.

For example for Large and Thumbnail Photos, edit to

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

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


Philippe
·
Sunday, 19 November 2017 22:35
·
0 Likes
·
0 Votes
·
0 Comments
·
I did following changes on the codes you sent.

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

After that I uploaded an image with 1.47mb capacity.
(Resolution was 2560 x 1536)

But in my site, there was the same resolution image (2560 x 1536). Which means this code doesn't work.
·
Tuesday, 21 November 2017 14:42
·
0 Likes
·
0 Votes
·
0 Comments
·
It's not normal. You have to open a post in Technical Issues.

Philippe
·
Tuesday, 21 November 2017 17:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok..I'll do it.
Thanks Mr. Philippe
·
Tuesday, 21 November 2017 19:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post