[Mapbender-commits] r9161 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Mar 2 05:09:04 PST 2015


Author: syed
Date: 2015-03-02 05:09:04 -0800 (Mon, 02 Mar 2015)
New Revision: 9161

Modified:
   trunk/mapbender/http/php/mb_metadata_uploadLayerPreview.php
Log:
fix image output to jpeg in metadata editor

Modified: trunk/mapbender/http/php/mb_metadata_uploadLayerPreview.php
===================================================================
--- trunk/mapbender/http/php/mb_metadata_uploadLayerPreview.php	2015-03-02 11:02:29 UTC (rev 9160)
+++ trunk/mapbender/http/php/mb_metadata_uploadLayerPreview.php	2015-03-02 13:09:04 UTC (rev 9161)
@@ -30,11 +30,11 @@
 // set the new fileName
 if ($service == 'admin_wmc_metadata') {
 
-    $new_name = $source_id."_wmc_preview.png";//.$ext;
+    $new_name = $source_id."_wmc_preview.jpg";//.$ext;
 }
 else {
 
-    $new_name = $source_id."_layer_map_preview.png";//.$ext;
+    $new_name = $source_id."_layer_map_preview.jpg";//.$ext;
 
 }
 // get the ímage
@@ -50,7 +50,10 @@
 
         $images_orig = ImageCreateFromJPEG($image);
         break;
+    case 'jpeg':
 
+        $images_orig = ImageCreateFromJPEG($image);
+        break;
     case 'png':
 
         $images_orig = ImageCreateFrompng($image);



More information about the Mapbender_commits mailing list