Copied to clipboard

Flag this post as spam?

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


  • Dan Sunesen 45 posts 145 karma points
    May 17, 2013 @ 11:46
    Dan Sunesen
    0

    ImageGen and caching

    Hi,

    This question is sort of connected to this question: http://our.umbraco.org/forum/core/general/40756-Weird-caching-problems-with-images

    So, I'm working on this website which fetches quite a few images with ImageGen.

     

    However, the site tends to get slower and slower over time. I've noticed, that this one:

    http://en.r82.testweb.designit.com/ImageGen.ashx?image=/pimmedia/image/Crocodile_Hand%20brakes_86834_48281.jpg&width=236&height=236

    ... loads slower, than this one:

    http://en.r82.testweb.designit.com/pimmedia/image/Crocodile_Hand%20brakes_86834_48281.jpg

     

    I'm wondering, if ImageGen doesn't use the cached images and generates them each and every time, and therefore gets slower?. And what could be the solution to this?

     

    Br,
    Dan

  • Dan Sunesen 45 posts 145 karma points
    May 17, 2013 @ 12:56
    Dan Sunesen
    0

    Update:

    I tried to remove ImageGen on my menu item images, and that seems to improve it quite a lot. Instead I now resize the images with css instead.. 

     

    But it seems kinda a weird though..

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    May 17, 2013 @ 18:14
    Douglas Robar
    0

    Hi, Dan,

    I've just tried your links and they seem very responsive. ImageGen will always check the disk cache first so it shouldn't get slower over time, unless you have a folder with huge amount of images in it (which will also make a very large cached folder). This might be the case iwth your PIM folder of images. How many images are in that folder?

    cheers,
    doug. 

  • Dan Sunesen 45 posts 145 karma points
    May 24, 2013 @ 16:22
    Dan Sunesen
    0

    The cached folder contains a lot of images.

    I just tried out something:

    If you check this page: http://r82.testweb.designit.com/products/accessories-/vests-and-belts/c-23/c-75/p-204/?sku=48571 - it's quite slow.

     

    This page has a lot of images, espcially under the "Measurements" section.

    The way I show the images is:

    <xsl:variable name="image" select="concat('/ImageGen.ashx?image=/pimmedia/image/', Images/Image/FileName)" />
    <img src="{concat($image, '&amp;width=236&amp;height=236')}" alt="{Header}" /> 

     

    If I show the images without using ImageGen it loads a lot faster. But, then I get a laggy transition on my slideToggle because of the big images. :/ 

     

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    May 24, 2013 @ 16:35
    Douglas Robar
    0

    Thanks, Dan.

    When you say 'a lot of images' in the cached folder, how many-ish are we talking about? Hundreds, thousands, tens of thousands?

    cheers,
    doug. 

  • Dan Sunesen 45 posts 145 karma points
    May 24, 2013 @ 16:56
    Dan Sunesen
    0

    Somewhere between 500-1000 images.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    May 24, 2013 @ 17:02
    Douglas Robar
    0

    Hmmm. That shouldn't cause any significant slowdow.

    If you'd be willing to test something that might make a difference for you, could you contact me through my site and let me know your email address? It isn't released yet but might well address your issue. http://www.percipientstudios.com/about/contact.aspx

    Thanks!

    cheers,
    doug. 

  • Dan Sunesen 45 posts 145 karma points
    May 24, 2013 @ 17:11
    Dan Sunesen
    0

    Sure thing, i'll do it right away

  • 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