ZenphotoCMS Forum
Image width and hieght on max space - 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: Image width and hieght on max space (/thread-11208.html)



Image width and hieght on max space - lainyrache - 2013-07-22

i am using




Image width and hieght on max space - acrylian - 2013-07-22

This assumes that the global for the current image $_zp_current_image is set:
$maxwidth = 300; $maxheight = 180; getMaxSpaceContainer($maxwidth, $maxheight, $_zp_current_image); $url = $_zp_current_image->getCustomImage(NULL, $maxwidth, $maxheight, NULL, NULL, NULL, NULL, NULL, NULL);