Copied to clipboard

Flag this post as spam?

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


  • Manfred Klinger 12 posts 82 karma points
    Jun 15, 2023 @ 08:55
    Manfred Klinger
    0

    Compression of pictures

    Hey people, I know that I can upload images in the backoffice in Umbraco and I can crop them in different sizes in all variations. But is there any chance to alter the compression in the backoffice (also open for code solutions). We want the file sizes to be a bit smaller.

    Is there any clever way to do this?

    Thanks in advance for any answers

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Jun 17, 2023 @ 12:04
    Huw Reddick
    1

    you could try using the format=webP in your views

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

    I would also say that any media content editor should realy know that images should be compressed before being uploaded for better web performance :)

  • Yakov Lebski 591 posts 2346 karma points
    Jun 18, 2023 @ 04:08
    Yakov Lebski
    0

    if you want you can use this package it automatically for all images https://marketplace.umbraco.com/package/dyfort.umbraco.autoimageoptimize

Please Sign in or register to post replies

Write your reply to:

Draft