close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Resize to width only

Thread began 5/23/2011 10:17 pm by superpac250441 | Last modified 5/26/2011 6:32 am by Jason Byrnes | 1390 views | 3 replies |

superpac250441

Resize to width only

Hi there,
I want to resize pictures on the basis of width with height automatically adjusting in size in proportion to width resize.

Looking at the code, I see it has set height to 120px:

$WA_UploadResult2_Params["WA_UploadResult2_1"] = array(
'UploadFolder' => "files/Images/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "200",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );

If I remove the 120, will it do the trick? eg.:

$WA_UploadResult2_Params["WA_UploadResult2_1"] = array(
'UploadFolder' => "files/Images/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "200",
'ResizeHeight' => "",
'ResizeFillColor' => "#FFFFFF" );

Many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

In the Upload File Server Behavior, set the re size options to "Fit To Width". this will resize the image based on the width you specify, the height will be calculated in relation to the width.

Sign in to reply to this post

superpac250441

Thanks Jason. I got confused because there was a height in the code

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

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...