Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

resizeByWidth Not Working In Template


Reply

978 Views

Avatar
Liam

7 November 2008 at 7:58pm Community Member, 470 Posts

I can use any of the GD functions except ResizedImage(). Am I misunderstanding how they work. Below is the code:'

<% control Photo1 %>
   <% control resizeByWidth(125) %>
      <img src="$URL" class="portrait" alt="" title="" />
<% end_control %>
<% end_control %>

The reason I use it in a control, is so I can attach a class to the image tag.