![]() |
|
accessing custom thumbnail - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: accessing custom thumbnail (/thread-4646.html) |
accessing custom thumbnail - romain.maurer - 2009-02-08 Hi, accessing custom thumbnail - romain.maurer - 2009-02-08 Ok, I've been deeper into the i.php file. accessing custom thumbnail - acrylian - 2009-02-08
The parameters are documentated on top of i.php itself. accessing custom thumbnail - sbillard - 2009-02-08 No, s=thumb does indeed give the standard thumbnail image. For a custom thumb (or other custom image) you need to provide the appropriate parameters. We have no intention of creating a "custom thumb" parameter since it is not needed. Just provide the parameters you desire. I suggest you see what gets generated for custom thumbs by the custom thumb functions and just use that. Not all parameters are needed, it depends on what you want. accessing custom thumbnail - romain.maurer - 2009-02-08 I understand that, but as we have the possibility to define a custom thumbnail for each image using the admin-thumbcrop.php file, it think it is logical when asking for the thumbnail of an image to have indeed the specified zone, otherwise what's the point of being able to specify a crop zone if you have to resend all the parameters each time you want to get the thumbnail ? accessing custom thumbnail - sbillard - 2009-02-08 I guess you don't understand. What you have is a custom cropping of the standard thumb size. Not a custom thumb. accessing custom thumbnail - romain.maurer - 2009-02-08 Yes you are right ! Sorry if i choose the wrong term, I had a hard time to explain this in english accessing custom thumbnail - sbillard - 2009-02-09 The crop information is in the image record, so you can retrieve it. accessing custom thumbnail - romain.maurer - 2009-02-09 Yes I know that the information is in the database, but my current knowledge of php and javascript sucks a little accessing custom thumbnail - acrylian - 2009-02-09 Cool, I did indeed not know about accessing custom thumbnail - romain.maurer - 2009-02-09 Ok, just in case someone else is interested, I've modified the zenphotopress plugin so that when custom cropping zones have been defined they are taken into account in both the badge and the photo import. I do not publish the modifications because... that's not really really clean atm (should take some time to also retrieve the default thumbnail size... currently it is hardcoded for my needs). |