Page 1 of 1
bigger than thumb, smaller than orginal photo
Posted: Sun Mar 11, 2007 12:06 pm
by Krzyzak
Hi.
I`ve got small problem with my template-
I want to have some thumbnail photos in articles - that`s easy to do. But problem is, that I want to have a little bit bigger photo in first article- exactly 2 times bigger than thumbnail photo - is it possible to do that functionality?
Re: bigger than thumb, smaller than orginal photo
Posted: Sun Mar 11, 2007 2:02 pm
by garvinhicking
Hi!
You can only increase the thumbsize in general.
But you can't use a large thumbnail for only some images, because by default serendipity does not create larger thumbnails.
There are manual ways to enable dynamic image resizing, but then you need to manually enter the links to thumbnail images. Instead of
Code: Select all
<img src="/uploads/mypicture.serendipityThumb.jpg" />
you would need to use
Code: Select all
<img src="/serendipity_admin_image_selector.php?serendipity[step]=showItem&serendipity[image]=XXX&serendipity[resizeWidth]=YYY&serendipity[resizeHeight]=ZZZ />
(And you need to use Serendipity 1.1's option in the global configuration to enable the option "Allow dynamic image resizing?" set to 'True' to use that.
Replace 'XXX' with the ID of the image (you can see the ID of an image in the media manager by hovering over either the image or the 'delete' link and checking for the number). Replace 'YYY' with the width and 'ZZZ' with the height of the thumbnail how you like to have it resized.
Best regards,
Garvin
Posted: Thu Mar 15, 2007 7:54 pm
by d_cee
Hi
One other thing you might consider -
You can upload your image into the media manager as usual, then replace the generated thumbnail in the uploads folder with your own which you've made in photoshop (or whatever image editor you use) at the size you want it to be.
HTH
Dave