Copied to clipboard

Flag this post as spam?

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


  • Jennifer Killingsworth 191 posts 248 karma points
    Jun 08, 2011 @ 20:20
    Jennifer Killingsworth
    0

    images gone after upgrade

    On a test environment running Umbraco 4.6.1 on IIS 6 - I uninstalled ImageGen 2.0.1 and installed 2.5.2.  Some how or another it seems like all the resized images that were created in ImageGen prior to this procedure have disappeared.  Not that big of a deal since it is a test environment, but can't risk it happening on our staging or production servers.

    Are there some recommended steps to get from 2.0.1 to 2.5.2?

     

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jun 09, 2011 @ 09:51
    Douglas Robar
    0

    Hi, Jennifer,

    The upgrade instructions are:

    Upgrade Instructions
    1. Uninstall prior versions of ImageGen (and remove 2 entries in web.config)
    2. Delete all 'cached' folders
    3. Install ImageGen 2.5 Package
    4. Read Users Guide and Reference Manual documentation
    5. Note that imagegen.ashx is now installed to website's root (either move to /umbraco or update macros to use the new location)
    (these are also noted on the main ImageGen page, http://our.umbraco.org/projects/website-utilities/imagegen)
    Step 2 has you delete the previously cached images. ImageGen will then re-create any needed images when requested and cache them for future use. From the website visitor's perspective they shouldn't notice this at all, even on a production site.
    cheers,
    doug.

  • Jennifer Killingsworth 191 posts 248 karma points
    Jun 09, 2011 @ 14:04
    Jennifer Killingsworth
    0

    Yes, those were the instructions I followed, at least to the extent that I could. For example, I uninstalled ImageGen 2.0.1, but there were no entries in the web.config to remove.  There are also no cached folders to delete.  This seems to indicate that there's a significant difference between the 2.0.1 and 2.5.2 - so I was thinking that those upgrade instructions were more relevant to upgrading from a more recent version of ImageGen and that maybe there's a recommended upgrade path from 2.0.0 to 2.5.2.

    When I view the website - all the images that were resized are gone - so from a website visitors perspective there are a lot of missing images.

    I read the Users Guide and Reference Manual, but it just tells you how 2.5.2 works.  Thanks anyway.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jun 09, 2011 @ 14:22
    Douglas Robar
    0

    Thanks for the clarification.

    Using the free version of ImageGen doesn't require any changes to the web.config so that check is needed but there might not be anything to do, as in your case. The 'cached' folders should exist below wherever the images are that ImageGen resizes. For instance, if you resize /media/1234/photo.jpg you'll find a cached folder at /media/1234/cached. Depending on how many different locations your source images are you'll find cached folders in each of those areas. 

    The issue with images not appearing is that there was a change to the location of the imagegen.ashx file with 2.5. It is now located in the root of your site but in earlier versions it was in /umbraco/imagegen.ashx. You can either copy the .ashx file from the root to the /umbraco folder or update your macros to reflect the new path. That's the note in step 5 of the upgrade instructions.

    cheers,
    doug.

     

  • Jennifer Killingsworth 191 posts 248 karma points
    Jun 09, 2011 @ 14:38
    Jennifer Killingsworth
    0

    Aha!  I missed the part about moving the imagegen.ashx file - the images are showing up now! Thanks. :)

    There were no cached folders in the media files.  For instance, /media/1234/photo.jpg and /media/1234/photo_thumb.jpg - but that may be a function of how the developer that was originally hired built the image galleries with ImageGen.

    Thanks for your help!  I'd give you a high five, but I don't have enough Karma.

     

  • Jennifer Killingsworth 191 posts 248 karma points
    Jun 09, 2011 @ 14:38
    Jennifer Killingsworth
    0

    Aha!  I missed the part about moving the imagegen.ashx file - the images are showing up now! Thanks. :)

    There were no cached folders in the media files.  For instance, /media/1234/photo.jpg and /media/1234/photo_thumb.jpg - but that may be a function of how the developer that was originally hired built the image galleries with ImageGen.

    Thanks for your help!  I'd give you a high five, but I don't have enough Karma.

     

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jun 09, 2011 @ 14:41
    Douglas Robar
    0

    Glad it is working now.

    You may also find a /data/cached folder or /app_data/cached folder if you use text-only images. There have to be cached folders around somewhere or you're wasting server resources generating images with every website visitor request. It might be worthwhile asking the original webdev about it so you get the most benefit of ImageGen.

    Keep asking questions, answering posts, making packages and being involved in the umbraco community and your karma will grow quickly. :)

    Do mark the answer at least for the next person.

     

    cheers,
    doug.

Please Sign in or register to post replies

Write your reply to:

Draft