Copied to clipboard

Flag this post as spam?

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


  • Mike Beale 38 posts 132 karma points
    Jan 26, 2021 @ 11:56
    Mike Beale
    0

    SmallerImages package on existing images

    Hi there,

    Just put the SmallerImages package on one of the sites we've done as the users keep uploading massive images, some > 30Mb!

    Anyway, working well for new images, it says it will work for existing images by setting ImageResizeApplyToExistingImages to true. How does this work or how do we get it go through existing images as it doesn't appear to be doing anything.

    Cheers, Mike

  • Brendan Rice 538 posts 1102 karma points
    Jan 26, 2021 @ 13:42
    Brendan Rice
    1

    Seems like it's applied on saving the image:

    https://github.com/prjseal/SmallerImages/blob/c751e92d1d8bdd6888f2e7beb8f28dfd3d53b506/SmallerImages/Compose/SmallerImagesComponent.cs#L59

    I guess to retrospectively apply it, you'd loop through all the existing images using the MediaService and save them.

    The code above *should kick in on save.

  • Christina 127 posts 390 karma points notactivated
    Feb 04, 2021 @ 15:59
    Christina
    1

    Hi I have the same problem with editors who upload images >30MB and I have tried smaller images packages but nothing works in umbraco 8.9.0. I have tried to create composer and component like this https://github.com/prjseal/SmallerImages/tree/c751e92d1d8bdd6888f2e7beb8f28dfd3d53b506/SmallerImages/Compose to debug but It wont trigger MediaService_Saving.

    Can someone point me in right direction?

    .It works when I upload images in version 8.6.4

    Many Thanks Christina

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies