Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I'm using ImageGen today and have problems when uploaded images not having the same size.
I have a gallery which are sliding images. WHen a user uploads a image with a image layout horizontal (laying) it works fine.
But when he uploades a image with a image laoyot vertical (standing) my gallery makes it look really strange.
What i want to do is to have imagegen to always create a image with strict size and color the background for example white if the image is vertical.
Then i will always will have the same size and the image uploaded will be pasted into the "canvas" with the same size.
Please help me!
Regards Kristian
Hi Kristian,
Welcome to the Umbraco forum!
You can achieve what you're trying to do using something like this:
/imagegen.ashx?image=bigImage.jpg&width=50&height=50&constrain=true&pad=true&bgcolor=white
Rich
Hi Rich,
THANK YOU!!! Worked like a charm!
I must say I'm very impressed of how fast you answered!
Thanks again!
Hey Kristian,
No problem
Glad you got it working :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Create a canvas with strict size and add a image to that
Hi,
I'm using ImageGen today and have problems when uploaded images not having the same size.
I have a gallery which are sliding images. WHen a user uploads a image with a image layout horizontal (laying) it works fine.
But when he uploades a image with a image laoyot vertical (standing) my gallery makes it look really strange.
What i want to do is to have imagegen to always create a image with strict size and color the background for example white if the image is vertical.
Then i will always will have the same size and the image uploaded will be pasted into the "canvas" with the same size.
Please help me!
Regards Kristian
Hi Kristian,
Welcome to the Umbraco forum!
You can achieve what you're trying to do using something like this:
Rich
Hi Rich,
THANK YOU!!! Worked like a charm!
I must say I'm very impressed of how fast you answered!
Thanks again!
Hey Kristian,
No problem
Glad you got it working :)
Rich
is working on a reply...