diff options
author | git-pc-greta <ordipolo@gmx.fr> | 2024-09-16 14:42:28 +0200 |
---|---|---|
committer | git-pc-greta <ordipolo@gmx.fr> | 2024-09-16 14:42:28 +0200 |
commit | 1b5a82aafd1cba507627317ddbe116239bc5ec73 (patch) | |
tree | 9660fafe5dadde7a8250fcc84262a85f014ab4be /model | |
parent | b2d42f9d5d53aebdbac6446ce70f9840d8a75074 (diff) | |
download | melaine-1b5a82aafd1cba507627317ddbe116239bc5ec73.zip |
debug GD extension jpg des miniatures
Diffstat (limited to 'model')
-rw-r--r-- | model/Album.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/model/Album.php b/model/Album.php index 1954800..7d7f663 100644 --- a/model/Album.php +++ b/model/Album.php | |||
@@ -43,6 +43,15 @@ class Album extends Article | |||
43 | { | 43 | { |
44 | //$this->format = 'json'; | 44 | //$this->format = 'json'; |
45 | 45 | ||
46 | // gd ne produit que des JPG | ||
47 | global $imageLibrary; | ||
48 | if($imageLibrary == 'gd') | ||
49 | { | ||
50 | $file_name = pathinfo($pochetteMini); | ||
51 | $pochetteMini = $file_name['filename'] . '.jpg'; | ||
52 | //var_dump($pochetteMini);die(); | ||
53 | } | ||
54 | |||
46 | $albumJSON = json_encode([$titre, $annee, $pochette, $pochetteMini]); | 55 | $albumJSON = json_encode([$titre, $annee, $pochette, $pochetteMini]); |
47 | //var_dump($albumJSON); die(); | 56 | //var_dump($albumJSON); die(); |
48 | 57 | ||