Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MaartenVissers 32 posts 149 karma points
    Feb 26, 2022 @ 09:58
    MaartenVissers
    0

    Compress images automatically

    Is there a way to compress images uploaded by the client automatically? I can't ask him to do image optimizations himself...

  • Lee Kelleher 4013 posts 15773 karma points MVP 12x admin c-trib
    Feb 26, 2022 @ 13:29
    Lee Kelleher
    0

    Hi Maarten,

    If it's Umbraco 8, then you could take a look at the Tinifier2 package?

    https://our.umbraco.com/packages/backoffice-extensions/tinifier2/

    If it's Umbraco 9, I'm not aware of any packages that currently do this - that's not to say they don't exist. 😄

    Cheers,
    - Lee

  • David Walker 19 posts 90 karma points
    Jul 05, 2022 @ 11:18
    David Walker
    0

    Did you get anywhere with this. I assumed a modern Umbraco CMS should do this as core?? I'm on V9.

  • Ambert van Unen 174 posts 811 karma points c-trib
    Jul 05, 2022 @ 14:47
    Ambert van Unen
    2

    You could also do it the way around, return a specific format in your crops! (This is possible since V10 with now has ImageSharp V2)

    var cropUrl = blog.GetCropUrl(cropAlias:"Small", furtherOptions:"&format=WebP");
    

    Now all your crops are easily converted to WebP formats.

Please Sign in or register to post replies

Write your reply to:

Draft