Copied to clipboard

Flag this post as spam?

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


  • AmandaEly 123 posts 379 karma points
    Nov 24, 2012 @ 15:24
    AmandaEly
    0

    ImageGen not working in Umbraco 4.10

    Umbraco version 4.10, Visual Studio 2012 (but also tried via WebMatrix 2.0)

    Hi,

    I have a simple Razor macro with two images on it. One is added using MediaPicker, the other via Upload. I can show both of these "plain" butneither works using ImageGen. As far as I can see my ImageGen (installed this week) is correct and all the rigth things are in web.config. This is not the pro version.

    In both cases, when I attempt to use ImageGen, I see a standard browser icon for missing image (not the ImageGen one) and the browser reports "Failed to load resource: the server responded with a status of 500 (Internal Server Error)". There is no crash.

    Like most people, I need to use ImageGen to control the size of images used by customers and to make sure the correct size is cached.

  • AmandaEly 123 posts 379 karma points
    Nov 24, 2012 @ 15:25
    AmandaEly
    0

    forgot the Razor code! sorry.

    <img src='@Library.MediaById(Model.homeImage).umbracoFile'  alt="test image" height="200"/>

    <img src="/[email protected](Model.homeImage).umbracoFile" alt="ImageGen version"/>

    <img src="@Model.secondTestImage" alt="Upload image" height="200"/>

    <img src="/[email protected]" alt="Upload image" height="200"/>

  • AmandaEly 123 posts 379 karma points
    Nov 24, 2012 @ 15:54
    AmandaEly
    0

    Got it (finally). You have to copy the ImageGen dll file to bin. It does NOT happen when the config file and ashx files are copied. Now this is a bug but a small one.

Please Sign in or register to post replies

Write your reply to:

Draft