Changeset 14649 for trunk/admin/include/image.class.php
- Timestamp:
- May 2, 2012, 6:29:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/image.class.php
r13882 r14649 288 288 static function get_sharpen_matrix($amount) 289 289 { 290 // Amount should be in the range of 28-10291 $amount = round(abs(- 28 + ($amount * 0.18)), 2);290 // Amount should be in the range of 48-10 291 $amount = round(abs(-48 + ($amount * 0.38)), 2); 292 292 293 293 $matrix = array( … … 550 550 function rotate($rotation) 551 551 { 552 if ($rotation==90 || $rotation==270) 553 { 554 $tmp = $this->width; 555 $this->width = $this->height; 556 $this->height = $tmp; 557 } 552 558 $this->add_command('rotate', -$rotation); 553 559 $this->add_command('orient', 'top-left'); … … 563 569 function resize($width, $height) 564 570 { 565 $this->add_command('interlace', 'line');566 571 $this->add_command('filter', 'Lanczos'); 567 572 $this->add_command('resize', $width.'x'.$height.'!'); … … 596 601 function write($destination_filepath) 597 602 { 603 $this->add_command('interlace', 'line'); // progressive rendering 604 598 605 $exec = $this->imagickdir.'convert'; 599 606 $exec .= ' "'.realpath($this->source_filepath).'"'; … … 612 619 @exec($exec, $returnarray); 613 620 614 //echo($exec); 621 ilog($exec); 622 if (is_array($returnarray) && (count($returnarray)>0) ) 623 { 624 ilog($returnarray); 625 } 615 626 return is_array($returnarray); 616 627 }
Note: See TracChangeset
for help on using the changeset viewer.