diff options
author | polo <ordipolo@gmx.fr> | 2023-07-27 11:33:52 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2023-07-27 11:33:52 +0200 |
commit | 353a25789d477a0403f0acf35cef158ec8c8e4eb (patch) | |
tree | b3ebc830db9de6baf9ef46f1519633fc968bc5cf /model | |
parent | 3c35bd40e92ef11230d5ad3ea2d9dbe516508eb4 (diff) | |
download | melaine-353a25789d477a0403f0acf35cef158ec8c8e4eb.zip |
float left actualité, validation W3C partie 1
Diffstat (limited to 'model')
-rw-r--r-- | model/Image.php | 2 |
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 | ||