diff --git a/_ressources/logo_carre.png b/_ressources/logo_carre.png new file mode 100644 index 0000000..7439e72 Binary files /dev/null and b/_ressources/logo_carre.png differ diff --git a/_ressources/logo_carre.svg b/_ressources/logo_carre.svg new file mode 100644 index 0000000..3c0782c --- /dev/null +++ b/_ressources/logo_carre.svg @@ -0,0 +1,85 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/_ressources/logo_carre_blanc.png b/_ressources/logo_carre_blanc.png new file mode 100644 index 0000000..3b97903 Binary files /dev/null and b/_ressources/logo_carre_blanc.png differ diff --git a/_ressources/logo_carre_noir.png b/_ressources/logo_carre_noir.png new file mode 100644 index 0000000..9e20154 Binary files /dev/null and b/_ressources/logo_carre_noir.png differ diff --git a/includes/images.php b/includes/images.php index 885711a..ff8e653 100755 --- a/includes/images.php +++ b/includes/images.php @@ -25,10 +25,10 @@ function generate_image_thumbnail($source_image_path, $thumbnail_image_path, $wi // If the limitation is on the height (cuts on the width) if($height*$source_image_width/$source_image_height > $width) { $src_x = (int)(($source_image_width - $source_image_height * $width / $height) / 2); - $source_image_width = $source_image_height * $width / $height; + $source_image_width = (int)($source_image_height * $width / $height); } else { $src_y = (int)(($source_image_height - $source_image_width * $height / $width) / 2); - $source_image_height = $source_image_width * $height / $width; + $source_image_height = (int)($source_image_width * $height / $width); } $thumbnail_gd_image = imagecreatetruecolor($thumbnail_image_width, $thumbnail_image_height);