Copied to clipboard

Flag this post as spam?

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


  • Himasnhu K 17 posts 86 karma points
    Feb 02, 2018 @ 10:12
    Himasnhu K
    0

    how to use ImageGen package for thumnail image creation in template

    I have installed package and try to generate the thumb image from media gallery image but getting problem server responded with a status of 404 (Not Found) ImageGen.asxh, where as when i am trying with http://localhost:50471/ImageGen.ashx i am getting some result hello defualt page . let me know where i am going wrong. any help appreciated.

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Feb 02, 2018 @ 10:52
    Alex Skrypnyk
    0

    Hi Himasnhu

    You have just to add ?width=100&height=100 to media item Url, you don't need to use ImageGen.asxh

    What version of Umbraco are you using?

    Alex

  • Himasnhu K 17 posts 86 karma points
    Feb 02, 2018 @ 11:21
    Himasnhu K
    0

    Thanks, using umbraco 7.6 , so should i need to installed that package ImageGen or automatically it will generate the thumb with image tag with given height and width?

  • Sotiris Filippidis 286 posts 1501 karma points
    Feb 02, 2018 @ 12:10
    Sotiris Filippidis
    1

    You don't have to install anything - Umbraco comes with ImageProcessor and passes all request for image media through it. You can either add width and height parameters to the media URL or use the GetCropUrl() extension function which, contrary to its name, can also be used to just resize an image (but you can do other very interesting things too). Start here: https://our.umbraco.org/Documentation/Getting-Started/Design/Rendering-Media/

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Feb 02, 2018 @ 12:26
    Alex Skrypnyk
    0

    Himasnhu, use ImageProcessor as Sotiris said

Please Sign in or register to post replies

Write your reply to:

Draft