Webmastersite.net
Register Log In

How to set square image size
question on resizing images

Comments on How to set square image size

mel
Member

Usergroup: Customer
Joined: Dec 16, 2006

Total Topics: 9
Total Comments: 29
mel
Posted Feb 18, 2007 - 3:18 PM:

Hi everyone,

Having a problem with image sizes

I want to set the image size as a fixed size of 65x65

The problem I am having is when you upload a vertical
type picture it will apply the 65 to the height but not
the width - it instead applies a proportional size to
the width making the width smaller than 65

Likewise with a horizontal picture - you get the 65 on
the width but less on the height

Is there a way that I can get a fixed square size pic?
anybody know if this is possible and what code should
be used?

Reason for wanting a square pic is that I am running a
thumbnail against all links in a category so it would look
more tidy to have set picture size

Have tried using the default setting thumbnail size in
file settings but get the same results

The coding I am using is below - I am linking the picture to
the detail page which works fine

<IF {ATTACHISIMAGE}><a href="{LINKDETAILSURL}"><img src="thumbnail.php?id={LINKID}&attachid={ATTACHID}&thumbwidth=65&thumbheight=65" alt="image" border="0"></a>

Melsmiling face
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Feb 20, 2007 - 2:34 AM:

Admin->Settings->Files->Always use fixed thumbnail size rather than proportional?
mel
Member

Usergroup: Customer
Joined: Dec 16, 2006

Total Topics: 9
Total Comments: 29
mel
Posted Feb 20, 2007 - 2:55 AM:

Thanks Paul found it, think I am spending too many hours sitting in
front of the pc, did not see that check box, even though I had been
on that page

Mel smiling face
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.