Changeset 16230 for trunk/admin
- Timestamp:
- Jun 30, 2012, 9:23:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/image.class.php
r16211 r16230 59 59 var $library = ''; 60 60 var $source_filepath = ''; 61 static $ext_imagick_version = ''; 61 62 62 63 function __construct($source_filepath, $library=null) … … 340 341 if (is_array($returnarray) and !empty($returnarray[0]) and preg_match('/ImageMagick/i', $returnarray[0])) 341 342 { 343 if (preg_match('/Version: ImageMagick (\d+\.\d+\.\d+-?\d*)/', $returnarray[0], $match)) 344 { 345 self::$ext_imagick_version = $match[1]; 346 } 342 347 return true; 343 348 } … … 447 452 { 448 453 $this->image->setInterlaceScheme(Imagick::INTERLACE_LINE); 449 454 450 455 // TODO need to explain this condition 451 456 if ($this->get_width()%2 == 0 … … 614 619 // option 615 620 // 616 // $this->add_command('sampling-factor', '4:2:2' ); 621 if (version_compare(pwg_image::$ext_imagick_version, '6.6') > 0) 622 { 623 $this->add_command('sampling-factor', '4:2:2' ); 624 } 617 625 618 626 $exec = $this->imagickdir.'convert';
Note: See TracChangeset
for help on using the changeset viewer.