From 353a25789d477a0403f0acf35cef158ec8c8e4eb Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 27 Jul 2023 11:33:52 +0200 Subject: =?UTF-8?q?float=20left=20actualit=C3=A9,=20validation=20W3C=20par?= =?UTF-8?q?tie=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/Image.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'model') diff --git a/model/Image.php b/model/Image.php index dbdad62..f0bb390 100644 --- a/model/Image.php +++ b/model/Image.php @@ -103,6 +103,8 @@ class Image { // cette fonction fonctionne pour tous les formats $source = imagecreatefromstring(file_get_contents($this->path . $this->FileName)); + // on créera un jpg quelque soit l'image d'origine + // nécessite une correction du html dans Article::makeHtmlMiniImages() $nomMiniImage = $this->pathMini . $this->pathInfos['filename'] . '-mini.jpg'; $forme = imagesy($source) / imagesx($source); -- cgit v1.2.3