optimize cache images

onne
onne
Offline
0
Hi Germi,

I was wondering if its possible to add the cached images your script creates to be optimized? They show up in my gtmetrix reports

=====
Optimize the following images to reduce their size by 62.4KiB (14% reduction).

Losslessly compressing https://www.rapsearch.com/cache/muscol/muscol_cache_200_8daa8c4e90_1399122045_00-cover.jpg could save 6.1KiB (13% reduction). See optimized version.
Losslessly compressing https://www.rapsearch.com/cache/muscol/muscol_cache_200_8daa8c4e90_00%20-%20gucci_mane_writing_on_the_wall-front-large.jpg could save 5.3KiB (13% reduction). See optimized version.
Losslessly compressing https://www.rapsearch.com/cache/muscol/muscol_cache_115_8daa8c4e90_mixtapesusa_2178_19420491.jpg could save 3.1KiB (16% reduction). See optimized version.
=========

Can i do something about this?
Responses (4)
  • Accepted Answer

    Thursday, March 23 2017, 04:06 PM - #Permalink
    0
    hi

    you can reduce the image of cache thumbnails created, but they may not be the same reduction as in some reports you can get

    if you open file /components/com_muscol/helpers/graphics.php

    you just have to set the quality to, say, 60, in line 19:

    function renderThumb($filename,$thb_width,$thb_height, $type_thumb = "album", $quality = 60){
    The reply is currently minimized Show
  • Accepted Answer

    onne
    onne
    Offline
    Thursday, March 23 2017, 04:24 PM - #Permalink
    0
    I'll play around with that, thanks!!
    The reply is currently minimized Show
  • Accepted Answer

    onne
    onne
    Offline
    Saturday, March 25 2017, 04:17 PM - #Permalink
    0
    Kinda related...

    I also see under 'Serve Scaled Images'...

    ===
    The following images are resized in HTML or CSS. Serving scaled images could save 28.8KiB (76% reduction).

    https://www.rapsearch.com//images/albums/2433_front.jpg is resized in HTML or CSS from 500x500 to 241x241. Serving a scaled image could save 28.8KiB (76% reduction).
    ===

    That's on the album page. Any way to adjust that?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 25 2017, 06:00 PM - #Permalink
    0
    not really. this is the image you provide. so the only way is that you resize BEFORE uploading it.
    The reply is currently minimized Show
Your Reply