Image Scale or Properties - Forum

Forum Navigation
You need to log in to create posts and topics.

Image Scale or Properties

So when I open an image using the image object, the image stretches to fit it.  Is there a way to turn this off so the mage shows it's normal dimensions inside the object?  I still want it to scale to the size of the box but maintain it normal shape or maybe a way to pull the width and height of an image into a variable.

@neal-stone to get the original image size, just delete the width and height properties value (no value at all). If you want to resize the image with the original aspect ratio just define only one property (width or height) and let the other one empty as it will be calculated automaticaly. Of course you can also use variables, percentages and any CSS valid units.

Let me know if you have any doubts.

Regards.

This works great.  All that is left is to get it to stay centered.

A little tweaking and I got it working perfectly now.

So here is the finished product and am quite happy with the results.  I did have a nice reflection effect below the image but had to toss it due to how this work as it required the reflection image to be shorter and threw off the sizing compared to the original image, however I just moved it behind the image as if light shining through a window effect and it works.

Uploaded files:
  • You need to login to have access to uploads.
Vadim has reacted to this post.
Vadim

Great! Congratulations :)