close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Understanding Fit to Box, Fit to Width etc

Thread began 10/09/2014 2:05 am by Nathon Jones Web Design | Last modified 10/09/2014 9:15 am by Nathon Jones Web Design | 1432 views | 5 replies

Nathon Jones Web Design

Understanding Fit to Box, Fit to Width etc

I have implemented the File Manipulation > Upload Files behaviour in a CMS I've built but I'm having trouble understanding how best to deal with Portrait and Landscape images.

I have set the Upload Files behaviour to create thumbnails at a specific size (400x300) and I understand that if the image is portrait, or the dimensions aren't 4:3, that the behaviour is filling in a background colour to compensate.

This looks ugly though:
http://www.stranraermusictown.org.uk/gallery-photographs.php?cat=2

Is there a way to simply fill out the thumbnail with the entire image or, at least, make sure it fits width ways? I'm aware there are other settings within the behaviour but I just don't have the time to spend hours trial-and-error'ing all the options.

In the help section it states...
Fit to box - will resize the image to fit within a specified height and width.
Fit width - will resize the image to fit within a specified width.
Fit height - will resize the image to fit within a specified height.
Fixed width and height - will resize all images to a specified width and height while maintaining the width-to-height ratio. If the resized image does not completely match the specified width and height, a fill color is applied.

Fit to box - won't work because portrait images will look squashed.
Fit width - won't work because the height will remain in ratio and therefore all the thumbnails will be of a different size
Fit height - as above but width will remain in ratio
Fixed width and height - leaves ugly spaces around the images

What is the best solution to this?
Thank you
NJ

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...