summaryrefslogtreecommitdiff
path: root/model/Image.php
diff options
context:
space:
mode:
Diffstat (limited to 'model/Image.php')
-rw-r--r--model/Image.php2
1 files changed, 2 insertions, 0 deletions
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
103 { 103 {
104 // cette fonction fonctionne pour tous les formats 104 // cette fonction fonctionne pour tous les formats
105 $source = imagecreatefromstring(file_get_contents($this->path . $this->FileName)); 105 $source = imagecreatefromstring(file_get_contents($this->path . $this->FileName));
106 // on créera un jpg quelque soit l'image d'origine
107 // nécessite une correction du html dans Article::makeHtmlMiniImages()
106 $nomMiniImage = $this->pathMini . $this->pathInfos['filename'] . '-mini.jpg'; 108 $nomMiniImage = $this->pathMini . $this->pathInfos['filename'] . '-mini.jpg';
107 $forme = imagesy($source) / imagesx($source); 109 $forme = imagesy($source) / imagesx($source);
108 110