View Full Version : Photo Enlarges
Just installed PP on Xampp and using the Relaxation theme. When I display small images, it enlarges to about double that size on display. (it does this on just the Relaxation theme)
Question: is there a way to keep all the images the same as original sizes without enlarging them?
07-05-2007, 03:16 PM
Probably the widht and height of the image are hardcoded in the template. Does the format stays constant? Then this is probably the case.
I'll have to look into the Relaxation theme to see were it is in the CSS.
Hi, thanks for the reply. Yes, all the images large or small, blow up to one large size.
07-05-2007, 03:44 PM
ok, then the size for the image is set in the template
I'm unable to find where to edit that image setting in Relaxation template, but luckily, there are other templates that work perfectly.
07-05-2007, 06:27 PM
Perhaps someone else can have a look at it, I'm swamped. Sorry about that
07-05-2007, 06:45 PM
The Relaxation template has hard coded the image width to 550 pixels.
In image_template.html you'll see:
<img src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="<IMAGE_TITLE>" width="550" id="photo" />
You can take out the width="550" entirely, or you can change it to width="<IMAGE_WIDTH>". I don't know if this will break the template design though.
Ah, thank you dakwegmo, I was looking but must have missed that code in the file. I'll go and look hard for it.
Update: just adjusted the file to 350px and it works great! thanks again.
07-05-2007, 07:28 PM
Glad to help. Make sure you post a link to your site when it's up so everyone can see.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.