By Jarook on Tuesday, 21 November 2017
Posted in General Issues
Replies 14
Likes 0
Views 413
Votes 0
My Image Resolution converting feature is not working..

I uploaded image into my site, It is reducing the image resolution size.

kindly go through the following links for my issue.
https://stackideas.com/forums/develop-a-best-image-converting-system-in-future-versions-kind-request#reply-377248
Can you attach one of the image which having this issue so I can able to troubleshoot this?
·
Wednesday, 22 November 2017 13:27
·
0 Likes
·
0 Votes
·
0 Comments
·
I have attached few images..Pls check
·
Wednesday, 22 November 2017 14:03
·
0 Likes
·
0 Votes
·
0 Comments
·

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


Based on what you mentioned on your other thread, it seems like you already made this changes from that constant.php file.

These language constant actually determine for only 'LARGE' type image size instead of original image size.

This is what i tested on your site :

20.jpg
--------

Original -> 1733 x 813
After convert to large image type -> 960 x 450
https://www.yoursitename.com/media/photos/47/1057/20_large.jpg

EVENTS.png
------------------

Original -> 1280 x 720
After convert to large image type -> 960 x 540
https://www.yoursitename.com/media/photos/47/1058/sick_large.jpg

sick.jpg
-----------

Original -> 2560 x 1536
After convert to large image type -> 960 x 576
https://www.yoursitename.com/media/photos/47/1058/sick_large.jpg

It did convert to the respected 960px width size.

By the way, may i know which image type you referring to?
·
Wednesday, 22 November 2017 18:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok.. But from my site, while downloading it has the same resolution and capcity also high. see the screen shot I attached.
I checked these from Admin2 Account

How can I reduce those resolution size as well?
·
Wednesday, 22 November 2017 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

If you referring that download part, actually by default the system will allow user to download the original image instead of the large image file.

I already help you modified the core file from JoomlaFolder/administrator/components/com_easysocial/tables/photo.php

It should download that large image file size now.

You can check my attached screenshot below.
·
Thursday, 23 November 2017 20:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok.
01. Do I have to change this codes when I update ES new versions?
02. Will my ES site store original image into my server after this change?
·
Thursday, 23 November 2017 20:40
·
0 Likes
·
0 Votes
·
0 Comments
·
01. Do I have to change this codes when I update ES new versions?

Yes, because you are the only one person who want to download for "large" size image on Easysocial.

02. Will my ES site store original image into my server after this change?

Without this changes, it will store the original image into your server as well when you upload a new image into Easysocial.
·
Friday, 24 November 2017 11:14
·
0 Likes
·
0 Votes
·
0 Comments
·
So, since It had been changed as large image for Download, I can save a little amount of space for each every photo upload..Isn't it?

...
I'll keep it in my mind while updating ES new versions.

I have to change ....Only "Large" instead of "Original" Isn't it?

(Sorry for asking this again and again. I just want to make sure the changes that you have done for me.)
·
Friday, 24 November 2017 22:10
·
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.

The changes i given in earlier is only affected on the download photo section, when the user upload a new photo into Easysocial, it will still generate these image size (original, stock, large, thumbnail) and store into server.

I'll keep it in my mind while updating ES new versions.

I have to change ....Only "Large" instead of "Original" Isn't it?

Yes, that is correct.


$file = $this->getPath('original');

// replace with
$file = $this->getPath('large');



$mime = $this->getMime('original');

// replace with
$mime = $this->getMime('large');
·
Saturday, 25 November 2017 10:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks

Is there any way to stop generating "Original" and "Stock" image in the server?

OR

Is there any way to stop generating "Original" image only in the server?

*Why can't you direct large image for both "Original" and "Stock" (Is it possible to customize this need only for me with help of any codes?)
·
Saturday, 25 November 2017 11:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Jarook,

The main reason that original and stock is around is because we need to use the stock photo when user performs actions on the photo. For instance, if the user rotates the photo, we can't use a resized photo to re-generate the rotated photo as it would eventually lead to loss of quality on the image.

I will try to see if we can disable the "original" version of the photo altogether since "original" is only being used when the user downloads the photo. Might as well allow the user to download the stock photo instead.
·
Saturday, 25 November 2017 17:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark

Since I am using "Large" image instead of "Original" image. I feel like it just consumes extra space on my server.. That's the reason.
If you can give me some solution to stop generating the "Original" image.. only for me.

I thing you have an option in the ES back end like "Allow Viewing Of Original Photo"
Like wise if you add a feature of degenerating in ES back end, it would be fine..

It is Just my suggestion;)
Don't mistake me Mr.Mark.

I am so satisfied with ur component..
·
Saturday, 25 November 2017 22:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Jarook,

Thanks for getting back to us on this. It's going to require a lot of hacks to get this to work At the mean time I have already logged a ticket for this in our internal issue tracker and we'll try to see if we can either stick with original / stock photos rather than having both in EasySocial 2.2
·
Sunday, 26 November 2017 16:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post