Join the community today
Register Now

Nginx PageSpeed How do I compress attachments?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Maester Aemon, Mar 24, 2016.

  1. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    2:38 AM
    1.9.12
    This forum compresses attachments into webp, I want to do that as well (I use xenforo).

    Though my problem is that an attachment image link is for example "-jpg.123", "-png.123" and not ".jpg" or ".png".

    I am using LoadFromFileRuleMatch and I've tried different entries but didn't work for me.
    Anyone that knows how to do it?
     
  2. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:38 AM
    1.11
    10.2
    • Like Like x 2
  3. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    2:38 AM
    1.9.12
  4. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:38 AM
    1.11
    10.2
    I think he move attachment to /data/ folder.
     
    • Like Like x 1
  5. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    2:38 AM
    1.9.12
    Nevermind, figured it out.
    Thanks :)
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:38 AM
    Nginx 1.13.x
    MariaDB 5.5
    yup that's what i do on this forum :)
     
  7. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    2:38 AM
    1.9.12
    Have to thank you a lot for centminmod, makes life easier :D
     
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:38 AM
    Nginx 1.13.x
    MariaDB 5.5
    You're welcome.. makes my life easier too :D
     
    • Like Like x 1