Copied to clipboard

Flag this post as spam?

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


  • Mark Evans 86 posts 116 karma points
    Nov 26, 2014 @ 10:27
    Mark Evans
    1

    image processor

    can the image processor be set to cache images?

    it seems to be processing on every page load where we use this, causing a delay in page rendering

     

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 26, 2014 @ 10:40
    Stefan Kip
    0

    It does cache images, controlled by the cache.config.

  • Mark Evans 86 posts 116 karma points
    Nov 26, 2014 @ 10:50
    Mark Evans
    0

    ok

    do i need to add those settings to my web.config - configsettings?

    i dont see this folder in my website - \config\imageprocessor\

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Nov 26, 2014 @ 10:53
    Jan Skovgaard
    0

    Hi Mark

    How did you install image processor? Have you followed the steps mentioned in "Getting started"? http://imageprocessor.org/getting-started.html

    /Jan

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 26, 2014 @ 10:53
    Stefan Kip
    0

    I'm sorry, I always install ImageProcessor via NuGet, including the optional config package, but it's not a mandatory package.
    The page states:

    As of ImageProcessor.Web v3.2.0 configuration outwith the Web.Config file is not installed automatically. Instead default configuration matching the values below is built into the system.

    I guess caching should be on by default. You said:

    it seems to be processing on every page load where we use this, causing a delay in page rendering

    How do you know? What did you do to conclude this? Any symptoms?

  • Mark Evans 86 posts 116 karma points
    Nov 26, 2014 @ 11:01
    Mark Evans
    0

    sorry for the confusion

    i beleive it was an integral part of a recent umbraco upate, allowing us to resize images on the fly...

    the pages with images are taking a significant longer time to load (10secsonds) as opposed to those without and server cpu jumps to 90% when rendering pages with images...

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Nov 26, 2014 @ 11:17
    Jan Skovgaard
    0

    Hi Mark

    Ah yes, indeed it is.

    What exact version of Umbraco 7 are you using?

    /Jan

  • Mark Evans 86 posts 116 karma points
    Nov 26, 2014 @ 11:30
    Mark Evans
    0

    7.1.7

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Nov 26, 2014 @ 11:32
    Jan Skovgaard
    0

    Ok, yes then it's included out of the box. But as far as I can tell it's used for making crops when using the image cropper according to http://umbraco.com/follow-us/blog-archive/2014/3/20/release-candidates-of-umbraco-710-and-620-now-available

    But it of course requires that you use and setup the image cropper http://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Image-Cropper

    If you are already using it like that then there might be a bug with it?

    /Jan

  • Mark Evans 86 posts 116 karma points
    Nov 26, 2014 @ 11:49
    Mark Evans
    0

    ok possibly....

    i cant see where any configuration is done within umbraco for this...

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Nov 26, 2014 @ 11:52
    Jan Skovgaard
    0

    Hi Mark

    If you have created the image cropper as a property editor and replaced it with the default upload property editor on an image item in the settings section then I don't think it should be necessary to do anything else.

    But could you show some of the code you're using for rendering your images? And how large are they when you upload them?

    /Jan

  • Mark Evans 86 posts 116 karma points
    Nov 26, 2014 @ 12:02
    Mark Evans
    0

    <img src="@Umbraco.TypedMedia(@child.GetPropertyValue("divisionSliderImage")).GetCropUrl(960, 300)"/>

    but some are rendered by appending a querystring to the image and specifying the dimensions there...

     

  • James Jackson-South 489 posts 1747 karma points c-trib
    Nov 27, 2014 @ 15:36
    James Jackson-South
    1

    Hi Mark.

    Can you show us what the generated urls are like or even better link to a development server for me to look at.

    It sounds to me like something is forcing ImageProcessor to reprocess the images on each visit which would mean the url is changing on each page load.

    Could you also check for me what version of ImageProcessor and ImageProcessor.Web are installed?

    You should be able to tell either by looking at the response headers for the images in the browser or in the bin folder for the site.

    Cheers

    James

Please Sign in or register to post replies

Write your reply to:

Draft