Learn about Centmin Mod LEMP Stack today
Register Now

Xenforo image optimization

Discussion in 'Forum software usage' started by upgrade81, Feb 23, 2018.

  1. upgrade81

    upgrade81 Premium Member Premium Member

    133
    6
    18
    Sep 5, 2016
    Italy
    Ratings:
    +8
    Local Time:
    4:22 PM
    1.13.8
    10
    Hello to all

    Do you think there is a way to optimize Xenforo images with the optimise-images tool and maybe even serve webp? Without using pagespeed ...
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,897
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,177
    Local Time:
    12:22 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Probably if someone smart enough with php coding and xenforo knowledge does it. But that ain't me heh. IIRC, there's a Xenforo addon for optimising images though.
     
  3. upgrade81

    upgrade81 Premium Member Premium Member

    133
    6
    18
    Sep 5, 2016
    Italy
    Ratings:
    +8
    Local Time:
    4:22 PM
    1.13.8
    10
    there is a problem with pagespeed that happened to me in the past.

    the images that generates example:
    forum / images / smilies / xdimokchan.png.pagespeed.ic.D1YXJf6_vC.webp

    are indexed in some way and when you stop using pagespeed you have a lot of 404 errors that affect even after several years.
     
  4. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,897
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,177
    Local Time:
    12:22 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    index in google ? is it really a concern google indexes images ? only pages should of concern

    google should crawl pages and update your site, i haven't heard of google indexing images and not updating in years ?

    any examples of 404 that are indexed still after a long time ?

    when you disable ngx_pagespeed in centmin mod, images revert back to original format/path so google should index that
     
    • Like Like x 1
  5. upgrade81

    upgrade81 Premium Member Premium Member

    133
    6
    18
    Sep 5, 2016
    Italy
    Ratings:
    +8
    Local Time:
    4:22 PM
    1.13.8
    10
    Yes, it's all true, how can I lie?
    on this domain I do not use pagespeed for at least 3 years.

    Code (Text):
    2018/02/23 14:46:02 [error] 7852#7852: *113270 open() "/home/nginx/domains/domainxxx.it/public/wp-content/uploads/2014/09/Renault-Eolab-consumo-1-litro-100-km-640x426.jpg.pagespeed.ce.1B2M2Y8Asg.jpg" failed (2: No such file or directory), client: 66.249.88.146, server: www.domainxxx.it, request: "GET /wp-content/uploads/2014/09/Renault-Eolab-consumo-1-litro-100-km-640x426.jpg.pagespeed.ce.1B2M2Y8Asg.jpg HTTP/1.1", host: "www.domainxxx.it"
    


    But I also get errors like this:
    Autoptimize plugin I have not used it for 4 months ...

    Code (Text):
    2018/02/23 16:23:11 [error] 7853#7853: *131925 access forbidden by rule, client: 66.249.76.127, server: www.domainxxx.it, request: "GET /wp-content/cache/autoptimize/autoptimize_1de4458fc349615fe3efdd21b2478ee9.php HTTP/1.1", host: "www.domainxxx.it", referrer: "http://www.domainxxx.it/7911-il-nuovo-spot-della-famiglia-fiat-500-negli-usa.html"
    

    Code (Text):
    2018/02/23 16:39:57 [error] 7852#7852: *135058 open() "/home/nginx/domains/domaixxx.it/public/wp-content/uploads/essb_cache/28991c8e003bf2c57a447205a74f9ec9.css" failed (2: No such file or directory), client: 207.241.232.40, server: www.domainxxx.it, request: "GET /wp-content/uploads/essb_cache/28991c8e003bf2c57a447205a74f9ec9.css HTTP/1.0", host: "www.domainxxx.it", referrer: "http://www.domainxxx.it/5757-maserati-vendite-crescita-del-136-nel-2014.html"
    
     
    Last edited: Feb 24, 2018
  6. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,897
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,177
    Local Time:
    12:22 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    but are they coming from google indexed referrals ? where are they being referenced ?

    most likely explanation is your site users or wordpress admin copy and pasted a url link to a pagespeed optimisied .webp url into a comment or wp post so it's hardcoded into the html of the post or comment.
     
  7. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,897
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,177
    Local Time:
    12:22 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    oh 3rd error ip is a crawler 207.241.232.40 IP Address Details - ipinfo.io so it seems it's a url link referenced either on your site or someone's site i.e. those mirror copied sites etc that spring up. There is no hard to your site either way if they're 404'd as long as your site works with pagespeed disabled
     
  8. upgrade81

    upgrade81 Premium Member Premium Member

    133
    6
    18
    Sep 5, 2016
    Italy
    Ratings:
    +8
    Local Time:
    4:22 PM
    1.13.8
    10
    this is precisely what I would like to avoid.
    any user can copy the link to an image that could then change at the first image update or in any case after 1 year based on what the pagespeed guide says with pagespeed enabled extend_cache.

    this for me is a big limitation especially for a forum with photos of cars and related, which even after years can be very current or in any case serve for some tutorials.

    that's all

     
  9. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,897
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,177
    Local Time:
    12:22 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Guess ngx_pagespeed default rewritten optimised urls isn't suited for you then. You probably need to look at PageSpeed In-Place Resource Optimisation (IPRO) which optimises but keeps the original url name PageSpeed System Integration but it's tricky. It's default enabled but Centmin Mod ngx_pagespeed disables it by default as it's tricky to implement sometimes.

    Personally, I don't mind about 404 images versus the bandwidth savings and page load speed your get from ngx_pagespeed. For large sites that could be 100s of dollars saved and a much better experience for visitors that access your site - leading to increased engagement and activity on your site! Compared to those visitors who directly access a linked and outdated old broken 404 image who won't add a single cent to your advertising revenues etc.

    also you can use pagespeed disallow directives to exclude some important images for pagespeed rewrite/optimisations and leave site images themselves optimised.
     
    • Like Like x 1
  10. upgrade81

    upgrade81 Premium Member Premium Member

    133
    6
    18
    Sep 5, 2016
    Italy
    Ratings:
    +8
    Local Time:
    4:22 PM
    1.13.8
    10
    Hi here I am back to the attack. :)

    Let's say I give up the webp, if I use the script directly in the Attachments directory (as an attachment) it should go ... what do you think?

    grabilla.g44416.png

    The only problem is that the organization of attachments does not seem to make sense.
     
  11. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,897
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,177
    Local Time:
    12:22 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    won't help you need to update the references in xenforo database too which a script can't do by itself.
     
  12. upgrade81

    upgrade81 Premium Member Premium Member

    133
    6
    18
    Sep 5, 2016
    Italy
    Ratings:
    +8
    Local Time:
    4:22 PM
    1.13.8
    10
    cabbage, this XenForo complex...
     
  13. upgrade81

    upgrade81 Premium Member Premium Member

    133
    6
    18
    Sep 5, 2016
    Italy
    Ratings:
    +8
    Local Time:
    4:22 PM
    1.13.8
    10
    I'll buy that hateful Addon but that without Kraken.
     
..