I'm not a PHP coder (more frontend dev) but I've been tasked with tweaking some PHP.
Specifically, the client wants to upload double-sized images but still get the image to display at the original size.
At the moment, when an image is uploaded (via a custom image manager) the width of the image is noted and an inline style is generated within a file called ajax_actions.php:
Code: Select all
$obj = new Image($id);
<img src="'.$obj->src().'" title="'.$obj->artist().'" style="max-width:'.$obj->width().'px;"/>
Code: Select all
style="max-width:'.$obj->width().'px;"
Code: Select all
$obj->width(/2)
Any help would be much appreciated
