[Mapbender-commits] r9160 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Mar 2 03:02:30 PST 2015
Author: syed
Date: 2015-03-02 03:02:29 -0800 (Mon, 02 Mar 2015)
New Revision: 9160
Modified:
trunk/mapbender/http/php/mb_metadata_uploadLayerPreview.php
Log:
change upload 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 10:36:33 UTC (rev 9159)
+++ trunk/mapbender/http/php/mb_metadata_uploadLayerPreview.php 2015-03-02 11:02:29 UTC (rev 9160)
@@ -75,7 +75,7 @@
// create new image with the calculated size
$images_target = ImageCreateTrueColor(200, 200);
//fill the new image with transparency background
- $color = imagecolorallocatealpha($images_target, 0, 0, 0, 127); //fill transparent back
+ $color = imagecolorallocatealpha($images_target, 255, 255, 255, 0); //fill transparent back
imagefill($images_target, 0, 0, $color);
imagealphablending( $images_target, false );
imagesavealpha($images_target, true);
@@ -99,7 +99,7 @@
// set new target dir
$target = dirname(__FILE__).'/../tmp/'.$new_name;
// move File to the new target directory --> always save as png
- Imagepng($images_target,$new_image);
+ imagejpeg($images_target,$new_image);
// free space
ImageDestroy($images_orig);
ImageDestroy($images_target);
@@ -117,7 +117,7 @@
// create new image with the calculated size
$images_target = ImageCreateTrueColor(200, 200);
//fill the new image with transparency background
- $color = imagecolorallocatealpha($images_target, 0, 0, 0, 127); //fill transparent back
+ $color = imagecolorallocatealpha($images_target, 255, 255, 255, 0); //fill transparent back
imagefill($images_target, 0, 0, $color);
imagealphablending( $images_target, false );
imagesavealpha($images_target, true);
@@ -129,7 +129,7 @@
// set new target dir
$target = dirname(__FILE__).'/../tmp/'.$new_name;
// move File to the new target directory --> always save as png
- Imagepng($images_target,$new_image);
+ imagejpeg($images_target,$new_image);
// free space
ImageDestroy($images_orig);
ImageDestroy($images_target);
More information about the Mapbender_commits
mailing list