Changeset 916
- Timestamp:
- May 7, 2015 4:15:16 PM (10 years ago)
- Location:
- pro-violet-viettel/www/deploy/api/platform
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/www/deploy/api/platform/lib/violetUtil.class.php
r913 r916 68 68 list($width, $height) = getimagesize($pathToImage); 69 69 70 $max_width = 64;70 $max_width = 52; 71 71 $max_height = 50; 72 72 $ratio = $max_width/$max_height; … … 89 89 $thumnail = $info['dirname'].DIRECTORY_SEPARATOR.$info['filename'].'_thumb.'.$extension; 90 90 91 if ($imagefunc == 'image gif' || $imagefunc == 'imagepng') {92 call_user_func($imagefunc, $image_p, $thumnail );91 if ($imagefunc == 'imagejpeg') { 92 call_user_func($imagefunc, $image_p, $thumnail, 30); 93 93 } 94 94 else { 95 call_user_func($imagefunc, $image_p, $thumnail , 30);95 call_user_func($imagefunc, $image_p, $thumnail); 96 96 } 97 97 -
pro-violet-viettel/www/deploy/api/platform/modules/space/actions/actions.class.php
r913 r916 473 473 $ext = pathinfo($fileUrl, PATHINFO_EXTENSION); 474 474 $thumbnail = ""; 475 if (in_array(strtolower($ext), array("jpg", "jpeg", "png", "gif" , "tiff", "dvg", "bmp"))) {476 $thumbnail=violetUtil::createThumb($filePath);475 if (in_array(strtolower($ext), array("jpg", "jpeg", "png", "gif"/* , "tiff", "dvg", "bmp" */))) { 476 $thumbnail=violetUtil::createThumb($filePath); 477 477 } 478 478 if (file_exists("previews/$userId/" . $tblfile->getFileId() . "/0.png")) { -
pro-violet-viettel/www/deploy/api/platform/modules/space/templates/dirSuccess.php
r913 r916 32 32 $filePath=""; 33 33 $thumbnail=""; 34 if (in_array($ext, array("jpg","png","jpeg"," bmp","gif")))34 if (in_array($ext, array("jpg","png","jpeg","gif"))) 35 35 { 36 36 $names = explode(".", $name);
Note: See TracChangeset
for help on using the changeset viewer.