![]() |
|
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 <img src="<?php echo getCustomSizedImageThumbMaxSpace(300,180); ?>" class="landscape" alt="Photograph of <?php echo getImageTitle(); ?> How do i get width="" and height="" in the html (images thumbs are the same height but always a different width.) I can see the width and height is calculated in the end html (1373642903_w223_h180_thumb.jpg) Is it possible to somehow get this into the width and height field? Any guidance much appreciated. 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); ` |