Custom thumbnail ? hacking getThumb method ?

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 ;) )

Comments

  • acrylian Administrator, Developer
  • 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).
  • acrylian Administrator, Developer
    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.
  • Ok. I'm trying to create an upload interface to this thumbnail.

    thanks ;)
  • acrylian Administrator, Developer
    You can upload them directly via ftp, too.
  • antea Member
    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..
  • acrylian Administrator, Developer
    The feature is on our To do list. And before you ask I don't know when it will be there...:-)
  • Has this feature been added to Zenphoto after two years?
  • Yes. But that should have been obvious if you looked at the admin pages for images.
Sign In or Register to comment.