Member
Member
YvesTan   21-03-2008, 10:23
#1

Hello,

It's possible to define custom thumbnail ? If the answer is "no", change getThumb method is the good way ?

like :

`

$custom_th_path = $_SERVER['DOCUMENT_ROOT'] . WEBPATH . "/custom_thumbnails/";

if(file_exists($custom_th_path . $this->album->name . "/" . $this->filename)) {

        return WEBPATH . "/custom_thumbnails/" . $this->album->name . "/" . $this->filename;

}

`

thanks !

(french user, sorry for my bad english )

Administrator
Administrator
acrylian   21-03-2008, 12:21
#2

What exactly do you want to do, manually generated thumbs? In case you don't know, you could use this:
http://www.zenphoto.org/documentation/Zenphoto/_template-functions.php.html#functionprintCustomSizedImage

or for album thumbs this:
http://www.zenphoto.org/documentation/Zenphoto/_template-functions.php.html#functionprintCustomAlbumThumbImage

Member
Member
YvesTan   21-03-2008, 18:51
#3

Thanks to your answer.

I want to use a image to thumbnail that's should be different than original image... Or use different crop image by image (to capture only one detail on original image).

Administrator
Administrator
acrylian   22-03-2008, 11:07
#4

Alright, then you could use your workaround or just take look at the cache folder. You could rename your images that way and place them there, then zenphoto does not generate them itself. There was another thread about this, but I just don't know which.

Member
Member
YvesTan   23-03-2008, 08:54
#5

Ok. I'm trying to create an upload interface to this thumbnail.

thanks

Administrator
Administrator
acrylian   23-03-2008, 10:22
#6

You can upload them directly via ftp, too.

Junior Member
Junior Member
antea   23-05-2008, 03:56
#7

has anybody developed an interface for custom thumbnails? i am putting together a site for someone who has no idea on the internet, let alone renaming and ftp-ing thumbnails.. for the life of me i cant find anything on these forums that points me in the right direction.

what i am looking for is a way of maintaining a standardised thumbnail shape, but changing the crop point of the thumbnail to a custom part of the image.. eg so if i am taking a portrait photo, and the persons head is at the top of the portrait, being able to crop a square thumbnail so that the head is not cut off at the chin..

previously i have used menalto gallery, which has been slow and over complicated, but allowed custom thumbnails of any shape or size to be uploaded and edited separate to the main image within the admin page..

Administrator
Administrator
acrylian   23-05-2008, 09:02
#8

The feature is on our To do list. And before you ask I don't know when it will be there...:-)

Member
Member
Alis   08-10-2010, 20:13
#9

Has this feature been added to Zenphoto after two years?

Member
Member
sbillard   08-10-2010, 20:50
#10

Yes. But that should have been obvious if you looked at the admin pages for images.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.