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).
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 :)
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.
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 :)
is working on a reply...