Support

  1. zuotoski
  2. Support
  3. Tuesday, July 08 2014, 12:11 AM
Hi!

I would like to know if the upload image changes the original image size. For example: I have images on 1920 X 1080 pixels, after upload them to an Album, they are now 1000 X 562 pixels. What defines this size? I already tested it in different browsers sizes but the image properties are always the same.

Thanks.
References
  1. http://www.zpeed.com.br/social/albums/view/59/formula-premium-3a-etapa-2014
admin Accepted Answer
Admin
Hi Alex,
the size of uploaded image is defined into file /plugins/jsn/socialnetwork/app/Config/bootstrap.php

Images keep same ratio so if you have set:
define('PHOTO_WIDTH', 1000);
define('PHOTO_HEIGHT', 800);

and you have image 1920 X 1080 the system will transform into 1000 x 562

Still. From Admin panel->Settings->Features you can enable the option to save Original Image.
  1. more than a month ago
  2. Support
  3. # 1
zuotoski Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
yes you must replace the file on every update.

For other questions about the images: I'm sorry but the changes are made from PHP libraries. PHP is unfortunately not a good way to do this. but it is the only way that is "machine independent" and independent from the software installed on the server. What I mean is that I can not use programs like photoshop, but only PHP. in many cases the images are reduced in others not. We use GD library to work on image, but GD is not perfect.

Original image are stored when you enable this option. but then, you decide what to do.

For mobile: the gallery load images with ajax, so you never load all album images; album page display only thumbs.
  1. more than a month ago
  2. Support
  3. # 3
zuotoski Accepted Answer
I never said that I didn't understand how it works, and for sure, I would never think that it might be possible to use Photoshop. But the difference between one image compression and the other is too much. Please, forgive me if I am wrong, but It doesn't matter if the album is loading images using ajax, the core problem is the size of each image: an image with 262 KB "costs" much less than an image with 806 KB for the bandwidth, this is my point. Let me be clear that I know that you do the best as possible to make the best solution, but it doesn't mean that these solutions can't be improved.

For the original image set, I set the option to keep the original image, but the system is still using its converted image, not the original one. So, I don't understand why to set this up.

I'm sorry if I am being irritating, I really am sorry... if it serves as a consolation, I also have customers and they do similar questions to me, every day.
  1. more than a month ago
  2. Support
  3. # 4
admin Accepted Answer
Admin
I'm sorry if I am being irritating, I really am sorry.

Alex, no problem.:)

You have image with 800Kb because you have choose a resolution of 1920x1080 (2Megapixel) and 100% of quality (low compression) in bootstrap.php

So 1920x1080 with 100% of quality not is good for web.
Example, I have attached a screenshot from my desktop. I have image (almost all white, poor colors,ecc), I have resize this to 1920x1080 and I want save into JPG with 100% of quality (12 in photoshop). The size of file is 320Kb (original 79Kb).

Original Image option is to leave a original copy on disk (not for render instead the web image). You can edit theme files to render this image. NOT RECOMMENDED!!!!!
  1. more than a month ago
  2. Support
  3. # 5
admin Accepted Answer
Admin
Sorry the example here.

EDIT
after save the size is 332KB, for almost white image (original 79KB).

EDIT 2
Also I have tested photo with Grayscale color and is 500Kb (original 44Kb)
Image with rich color and many subjects is 800KB, this is normal. even for Photoshop
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 6
zuotoski Accepted Answer
I understand what you mean, my original images are not 100% of quality (12 in Photoshop), they are medium (5 in Photoshop) as the attached image shows.

How can I do the same in bootstrap.php?
  1. more than a month ago
  2. Support
  3. # 7
admin Accepted Answer
Admin
The best way is to reduce the size (in pixel of images). 1980x1080 is too big for web. if you change the quality difference is a lot.

But I will made some other test to find the best solution. and maybe some other libraries. On our TODO we already plan to change library for upload Avatar, because it is very slow to manipulate images and create some conflict with other extensions. So in order to optimize all we will uniform libraries.
  1. more than a month ago
  2. Support
  3. # 8
zuotoski Accepted Answer
Ok, I understand. Unfortunatelly, to reduce the image size is not an option, once it is possible to do the same upload to Facebook, for example, without increase the size like this. These images are set to have quality, because of its subjects.

As I said, I know how hard work you put on this to make it the best as possible and I don't mean to imply that the current solution is bad, but I need to find a way to make it work for my needs. If it is possible in same place else, it can be here, too. Of course, there are different technical issues involved - but here, between us, I want that Easy Profile/Social Network grow more and more, and be as good, or better than, Facebook (which most people are tired already). That being said, I hope that you understand where I wanna get and why I ask and try things.

Thanks for the feedback and for trying to help me.
  1. more than a month ago
  2. Support
  3. # 9
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Online

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.