aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/filestore.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php
index dcf802cd5..25befa449 100644
--- a/engine/lib/filestore.php
+++ b/engine/lib/filestore.php
@@ -622,9 +622,6 @@
// Get the size information from the image
if ($imgsizearray = getimagesize($input_name)) {
- // Get the contents of the file
- $filecontents = file_get_contents($input_name);
-
// Get width and height
$width = $imgsizearray[0];
$height = $imgsizearray[1];
@@ -656,7 +653,7 @@
$accepted_formats = array(
'image/jpeg' => 'jpeg',
'image/png' => 'png',
- 'image/gif' => 'png'
+ 'image/gif' => 'gif'
);
// If it's a file we can manipulate ...
@@ -664,7 +661,7 @@
$function = "imagecreatefrom" . $accepted_formats[$imgsizearray['mime']];
$newimage = imagecreatetruecolor($newwidth,$newheight);
-
+
if (is_callable($function) && $oldimage = $function($input_name)) {
// Crop the image if we need a square