Changeset 916


Ignore:
Timestamp:
May 7, 2015 4:15:16 PM (10 years ago)
Author:
dungnv
Message:
 
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  
    6868                list($width, $height) = getimagesize($pathToImage);
    6969
    70                 $max_width = 64;
     70                $max_width = 52;
    7171                $max_height = 50;
    7272                $ratio = $max_width/$max_height;
     
    8989                $thumnail = $info['dirname'].DIRECTORY_SEPARATOR.$info['filename'].'_thumb.'.$extension;
    9090
    91                 if ($imagefunc == 'imagegif' || $imagefunc == 'imagepng' ) {
    92                         call_user_func($imagefunc, $image_p, $thumnail);
     91                if ($imagefunc == 'imagejpeg') {
     92                        call_user_func($imagefunc, $image_p, $thumnail, 30);
    9393                }
    9494                else {
    95                         call_user_func($imagefunc, $image_p, $thumnail, 30);
     95                        call_user_func($imagefunc, $image_p, $thumnail);
    9696                }
    9797
  • pro-violet-viettel/www/deploy/api/platform/modules/space/actions/actions.class.php

    r913 r916  
    473473            $ext = pathinfo($fileUrl, PATHINFO_EXTENSION);
    474474            $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);
    477477            }
    478478            if (file_exists("previews/$userId/" . $tblfile->getFileId() . "/0.png")) {
  • pro-violet-viettel/www/deploy/api/platform/modules/space/templates/dirSuccess.php

    r913 r916  
    3232      $filePath="";
    3333      $thumbnail="";
    34       if (in_array($ext, array("jpg","png","jpeg","bmp","gif")))
     34      if (in_array($ext, array("jpg","png","jpeg","gif")))
    3535      {
    3636          $names = explode(".", $name);
Note: See TracChangeset for help on using the changeset viewer.