bigger than thumb, smaller than orginal photo

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Krzyzak
Regular
Posts: 41
Joined: Mon Oct 16, 2006 1:13 pm

bigger than thumb, smaller than orginal photo

Post 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?
Sorry for my language errors- It`s not my native language.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: bigger than thumb, smaller than orginal photo

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post 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
Post Reply