Copied to clipboard

Flag this post as spam?

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


  • Jamie 35 posts 87 karma points
    Jul 20, 2015 @ 03:40
    Jamie
    0

    Umbraco 7 ImageGen not found?

    When I try and use http://testsite.com/imagegen.ashx?version on a local machine I get

    Server Error in '/' Application.

    The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /imagegen.ashx

    The site is running OK so it's not a sitewide config issue. I thought ImageGen shipped with Umbraco (been a while since I used this CMS) .. but from these pages/manual I noticed I have to run the package installer and it seemed to report everything was OK.

    But it's not. I run the installer again to see if I missed an error report but again seems OK.

    I searched the site files and I can see the imagegen.dll is in the root/bin folder, and the config file is in the config folder.

    I see (below) in the web.config at the very bottom of

    <ImageGenConfiguration configSource="config\ImageGen.config" />

    and

    <section name="ImageGenConfiguration" type="ImageGen.ImageGenConfigurationHandler,ImageGen" />

    listed in the

    Not sure what else to do here. Any ideas?

  • James Jackson-South 489 posts 1742 karma points c-trib
    Jul 20, 2015 @ 07:17
    James Jackson-South
    0

    Hi Jamie,

    It isn't ImageGen that ships with Umbraco, it is ImageProcessor. You can find the documentation for that here. http://imageprocessor.org

    Any questions regarding usage just shout.

    Cheers

    James

  • Jamie 35 posts 87 karma points
    Jul 20, 2015 @ 08:29
    Jamie
    0

    Hi James thanks for your response,

    I'm just after something that lets me retrieve a resized image ( to save bandwidth) I know ImageGen will let me do this via a simple formatted url call when installed.

    ImageProcessor I'm not sure .. you said it ships with Umbraco .. but the page you link to is more generic .. the getting started page just list downloads (which your saying I won't need??) ... looking through for a few minutes and I can't even see an example of its uses. I go to github and I need to install something to just read the documentation.....so. I'm going to have to put this in the too-hard-basket as I know my limits, I'm more User Interface then backend (think CSS, JS, XSLT).. but have never been a compile from source sort of person - heck I apparently can't get a package to install.

  • James Jackson-South 489 posts 1742 karma points c-trib
    Jul 20, 2015 @ 10:11
    James Jackson-South
    2

    Hi Jamie,

    ImageProcessor ships with Umbraco from v7.1.4 but it is not designed specifically for Umbraco. It works with any .NET website and the base library can be used for multiple application types from desktop to Azure Webjobs.

    The links on the website point to Nuget packages that are installed via Visual Studio. You can also update to (almost) the latest version using the Umbraco package manager here https://our.umbraco.org/projects/collaboration/imageprocessor/

    I would recommend doing that as the version shipped with Umbraco is actually quite out of date. I'll try to get that package updated over lunchtime today.

    The website itself is the documentation that is referenced from the github page. You only need to install something if you want to help edit and improve the documentation.

    I'm working on the docs to make it a bit more clear but image resizing requests using simple url instructions for ImageProcessor.Web are documented here. It's all very similar in syntax to ImageGen.

    http://imageprocessor.org/imageprocessor-web/imageprocessingmodule/resize/

    I hope that helps

    James

  • Jamie 35 posts 87 karma points
    Jul 20, 2015 @ 10:37
    Jamie
    0

    Wow. So it was as easy as just adding

    ?width=600&height=250&mode=stretch (for example) after the image URL - exactly what I was after. Almost too simple really.

    I don't think I can/will upgrade as scaling/cropping is obviously basic feature that exists and all I need really.

    Thank you very much.

  • James Jackson-South 489 posts 1742 karma points c-trib
    Jul 20, 2015 @ 11:56
    James Jackson-South
    0

    My pleasure :) If you do ever choose to upgrade it should be a painless process.

Please Sign in or register to post replies

Write your reply to:

Draft