Copied to clipboard

Flag this post as spam?

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


  • Christian W. Larsen 27 posts 49 karma points
    May 11, 2011 @ 13:12
    Christian W. Larsen
    0

    Problems with crop

    I have a large image. What I want to do is create an image that is 480x200 px. I want to resize it to 480px and then crop it to 480x200.

    However, this just resizes the image:
    ImageGen.ashx?image=/media/8142/image.jpg&width=480&height=200&crop=resize

    I feel I'm missing something here :)

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    May 11, 2011 @ 13:24
    Douglas Robar
    0

    Hi, Christian,

    First things first... you need ImageGen Professional to use the crop feature. Do you have a registration key for the domain you're using?

    You can play with all the Professional features if you're running on localhost or any *.local domain even without purchaing a registration key.

    With ImageGen Professional it should work as expected... the original image will be resized to fit within a 480x200 window and anything that extends beyond that window is cropped off, showing as much of the image as possible and always the middle of the image (you can control which part of the image is shown by using the align= and valign= parameters or using the crop=x,y,w,h parameter).

    Let me know what you find out.

    cheers,
    doug.

     

  • Christian W. Larsen 27 posts 49 karma points
    May 11, 2011 @ 13:31
    Christian W. Larsen
    0

    Thanks a lot - I was missing that it showed the middle of the picture.

    image=/media/8142/image.jpg&width=480&height=200&valign=top&crop=resize

    .. is what I was looking for.

    Yes, I have a registration key :)

Please Sign in or register to post replies

Write your reply to:

Draft