You have
Notice: Undefined variable: bigtree in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/modules/pages/_front-end-crop.php on line 4
Notice: Trying to access array offset on value of type null in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/modules/pages/_front-end-crop.php on line 4
Warning: count(): Parameter must be an array or an object that implements Countable in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/modules/pages/_front-end-crop.php on line 4
0 image if (count($bigtree["crops"]) > 1) { ?>s } ?> that need if (count($bigtree["crops"]) == 1) { ?>s } ?> to be cropped.
$x = 0;
foreach ($bigtree["crops"] as $crop) {
$x++;
list($width,$height,$type,$attr) = getimagesize($crop["image"]);
$image = str_replace(SITE_ROOT,WWW_ROOT,$crop["image"]);
$cwidth = $crop["width"];
$cheight = $crop["height"];
$box_width = $width;
$box_height = $height;
if ($box_width > 420) {
$box_height = ceil($box_height * 420 / $box_width);
$box_width = 420;
}
$preview_width = $cwidth;
$preview_height = $cheight;
if ($preview_width > 420) {
$preview_height = ceil($preview_height * 420 / $preview_width);
$preview_width = 420;
}
$image_ratio = $box_width / $width;
$min_width = ceil($cwidth * $image_ratio);
$min_height = ceil($cheight * $image_ratio);
if ($preview_height < $box_height) {
$preview_margin = floor(($box_height - $preview_height) / 2);
$box_margin = 0;
} else {
$box_margin = floor(($preview_height - $box_height) / 2);
$preview_margin = 0;
}
$initial_x = ceil(($box_width - $min_width) / 2);
$initial_y = ceil(($box_height - $min_height) / 2);
?>
1) { ?> style="display: none;" } ?>>
}
?>