PDA

View Full Version : Photo Enlarges


gary
07-05-2007, 02:52 PM
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?

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

gary
07-05-2007, 03:21 PM
Hi, thanks for the reply. Yes, all the images large or small, blow up to one large size.

gary

Dennis
07-05-2007, 03:44 PM
ok, then the size for the image is set in the template

gary
07-05-2007, 04:22 PM
I'm unable to find where to edit that image setting in Relaxation template, but luckily, there are other templates that work perfectly.

Thanks..gary

Dennis
07-05-2007, 06:27 PM
Perhaps someone else can have a look at it, I'm swamped. Sorry about that

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

gary
07-05-2007, 06:58 PM
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.

gary

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