Copied to clipboard

Flag this post as spam?

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


  • fabrice 104 posts 227 karma points
    Dec 09, 2013 @ 13:13
    fabrice
    0

    Cropped Image cached ?

    Hello,

    I usually use ImageGen or ImageResizer with the DiskCached plugin to save custom resized image.

    Is there any cachinh with the DAMP cropped image ?

    For example, in the NewsItem.cshtml when you do

    "var image = Model.Content.GetCroppedImage("image", 300, 300, quality:70);"

    Is the cropped image cached with the 300x300 size somewhere ? or is it recalculated for each request ?

    Many thanks

    Fabrice

  • Jeroen Breuer 4909 posts 12266 karma points MVP 6x admin c-trib
    Dec 09, 2013 @ 13:30
    Jeroen Breuer
    101

    Hello,

    We're using CropUp which uses ImageResizer again. So if you just add the DiskCache plugin and configure it in the web.config all images from GetCroppedImage("image", 300, 300, quality:70); will be returned cached.

    In the Hybrid Framework version on github it's recalculated on each request, because the DiskCache pluging is commercial, but we enable it on all the websites we develop.

    Jeroen

  • fabrice 104 posts 227 karma points
    Dec 10, 2013 @ 10:43
    fabrice
    0

    Thank you very much,

    I missed that ImageResizer was intalled.

  • 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