Hi, Adrien.
If you want to fiddle with images compression I advise you to install on your server ImageMagick library and set path to it in:
Backend -> Components -> JomSocial -> Photos -> Photos Settings.
By default JomSocial uses GD library so you may also configure it on your server to get better results.
JomSocial doesn't compress or process any images. Everything is done by external (server) image processing libraries so any changes should be applied in them directly.
I just installed imagick :
# php -m | grep imagick
imagick
Backend -> Components -> JomSocial -> Photos -> Photos Settings.
Path ImageMagick : /usr/lib64/php/modules/
or
Path ImageMagick : /usr/lib64/php/modules/imagick.so
?
How can I verify that it is enabled?
Hello,
In Backend -> Components -> JomSocial -> Photos -> Photos Settings :
it is necessary to path :
/usr/bin/convert
or
/usr/include/ImageMagick/magick
or
/usr/include/ImageMagick
or
/usr/lib64/ImageMagick-6.5.4
or
/usr/lib64/php/modules/imagick.so
?
Thanks
Hi, Adrien.
It should be /usr/bin/convert
Hi Adrien,
before I answer the imagick issue, I just wanna clarify something
do you want compress the image size to be smaller size? are you sure??? because the image quality will be bad. Have you tried set "Image Output Quality" from Photo setting?
Hi,
Photo setting :
Quality of the output image => Medium
but it does not compress images
I do not want to reduce the size of images, but compress images automatically
it should probably be a parameter file to optimize the compression of images and thumbs ?
(ex : thumb image 64x64px = 22Ko !! this should be 5 or 10 Ko max)
Regards,
Hi Adrien,
That size 22Kb is the best size for that resolution from phpGD/imagick, if you wanna make smaller your image will be pixelize.
thank you
You can edit this file components/com_community/defines.community.php and change value "COMMUNITY_SMALL_AVATAR_WIDTH"
we create the css and designed it for 64x64 pixel, if you edit it, I afraid it will make your site bad, and you should edit css as well.