![]() |
|
Change default cropping - 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: Change default cropping (/thread-5836.html) |
Change default cropping - SubJunk - 2009-09-14 Is there a way I can change the portion of the image which is shown in thumbnails by default? Change default cropping - Anniemee - 2009-09-14 Yes, it's easy to adjust it but you must edit the core file template-functions.php (this is mentioned in the online Documenation too, but there's not a lot of detail on how to adjust the functions and maybe that's because they don't want us messing with it if we don't know what we're doing, but that doesn't stop me as long as I have a backup copy.) On line 2705, you can assign values to the cropx and cropy, like this: I believe the absolute top-left of the photo is 0 and 0 but I wasn't sure and the numbers 1 and 1 seem to do the job. Because I wanted the top portion of my photos to show since they're mostly headshots. Here is a page that explains the X and Y axis: http://www.computerhope.com/jargon/x/xaxis.htm There are other values on that line 2705, but you'd have to research what they do. So there are a lot of variables to work with, there. Change default cropping - sbillard - 2009-09-15 You would be better off using a custom thumbnail function than modifying the core. Modifying the core is pretty well a guarentee of problems whenever we update zenphoto and it is almost never actually necessary. |