Image Core crop filling color
Suggestions
This should be working now - reload Image Support 2.0.8 from the Marketplace and let me know if that works better.
Thanks!
{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="xxxlarge" crop="fill" fillcolor="249:249:249" class="img_scale" alt=$item.profile_name title=$item.profile_name}
if (empty($_post['fillcolor'])) {
$r = 0;
$g = 0;
$b = 0;
}
else {
@list($r, $g, $b) = explode(':', $_post['fillcolor'], 3);
if (!isset($r) || !jrCore_checktype($r, 'number_nn')) {
$r = 0;
}
if (!isset($g) || !jrCore_checktype($g, 'number_nn')) {
$g = 0;
}
if (!isset($b) || !jrCore_checktype($b, 'number_nn')) {
$b = 0;
}
}
$color = imagecolorallocate($image['handle'], $r, $g, $b);