Sign in to follow this  
Followers 0
Joe Weaver

Scaling images in one dimension

6 posts in this topic

What would it take for the Background Slideshow to scale the images proportionally rather than stretching to fill the screen?

I want it to fill the width of the window, but scale the height by the same amount, not fill the window in that direction. That way the images don't get stretched out of proportion.

Make sense? (I'm poking around in the code loking for that now. )

Share this post


Link to post
Share on other sites

Hi

BT Background slideshow always satisfy the following conditions:

- Fit with

- Scale height

- Only stretch height if image height size is too short (avoid gaps appearing)

I'd like to see a screenshot of what you encountered!

Thanks & Best regards.

Hungtx

Share this post


Link to post
Share on other sites
Hi

BT Background slideshow always satisfy the following conditions:

- Fit with

- Scale height

- Only stretch height if image height size is too short (avoid gaps appearing)

I'd like to see a screenshot of what you encountered!

Thanks & Best regards.

Hungtx

That last step is what I'd like to limit. If the screen/window is taller than it is wide (portrait orientation) then fit width and scale height but no stretch. Screenshot attached. (Sorry it is kinda big, about to leave work.)

Share this post


Link to post
Share on other sites

Hi!

I understood the problem. You can update my attachment to solve it

[attachment=780]mod_bt_backgroundslideshow_j2.5_v1.1.1.zip[/attachment]

Share this post


Link to post
Share on other sites

The attachment only have one file default.js. Please extract it & replace to mod_bt_backgroundslideshow/tmpl/js/default.js

Hope it helps you!

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0