Copied to clipboard

Flag this post as spam?

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


  • Margot Hjelmstrom 2 posts 82 karma points
    Sep 06, 2018 @ 08:14
    Margot Hjelmstrom
    0

    Replaced image - thumbnail not updating

    I have an image on my website, after a period of time (say 2 weeks) I change some details in the image.

    For example: the image is sitting in Media > Folder > image.png

    I click on image.png, click on Remove file(s), the upload the image (it has the exact same name, just perhaps a colour or some other details has changed), then click the Save button. The change is successful and I can see the image has updated to the new image in the Image tab which shows the image information. If I refresh the image on the website, I can also see there it has correctly updated.

    When I click on Media > Folder, I can see all the thumbnails of the images in that folder. The thumbnail in this area does not change.

    When I right click on the thumbnail and open in a new tab I can see the URL is as follows:

    https://mysite/media/1236/image.png?width=500&mode=max&animationprocessmode=first

    This is showing the old version of the file. If I change the URL to...

    https://mysite/media/1236/image.png?width=500&mode=max&animationprocessmode=last

    it shows the correct image.

    Is this a bug? Or is there something funky going on with my site?

    Created via Visual Studio 2017 web app using NuGet package UmbracoCms 7.11.1 Got the following packages installed:

    1. CM Umbraco Tools
    2. Fanoe Starter Kit
    3. Simple 301
  • Sven Geusens 169 posts 881 karma points c-trib
    Sep 06, 2018 @ 08:42
    Sven Geusens
    100

    Hey Margot

    Welcome to the Umbraco community!

    Umbraco uses Imageprocessor to create the thumbnails and save them in a cache. Since the name of the image stays the same and the parameters passed to image processor width=500&mode=max&animationprocessmode=first stay the same, Imageprocessor just serves up the item it has in its cache \App_Data\cache.

    When you change one of the parameters, imageprocessor creates a new image and serves that one up.

    Solution: clear the cache folder or upload an image with name image_v2.png

    For more information on how you can use Imageprocessor yourself using Umbraco, look at this documentation

  • Margot Hjelmstrom 2 posts 82 karma points
    Sep 06, 2018 @ 09:30
    Margot Hjelmstrom
    0

    Thanks for that. Worked perfectly.

  • 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.

    Continue discussion

Please Sign in or register to post replies