Join the community today
Become a Member

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:
    3:48 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. rdan

    rdan Premium Member Premium Member

    4,196
    1,014
    113
    May 25, 2014
    Ratings:
    +1,438
    Local Time:
    9:48 AM
    Mainline
    10.2
    • Like Like x 2
  3. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    3:48 AM
    1.9.12
  4. rdan

    rdan Premium Member Premium Member

    4,196
    1,014
    113
    May 25, 2014
    Ratings:
    +1,438
    Local Time:
    9:48 AM
    Mainline
    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:
    3:48 AM
    1.9.12
    Nevermind, figured it out.
    Thanks :)
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    34,624
    7,653
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,771
    Local Time:
    11:48 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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:
    3:48 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

    34,624
    7,653
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,771
    Local Time:
    11:48 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    You're welcome.. makes my life easier too :D
     
    • Like Like x 1
..