Changeset 10563 for trunk/admin/include
- Timestamp:
- Apr 22, 2011, 1:34:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_upload.inc.php
r10552 r10563 557 557 } 558 558 559 $starttime = get_moment(); 559 560 $gd_info = gd_info(); 560 561 … … 646 647 647 648 // everything should be OK if we are here! 648 return true; 649 return array( 650 'source' => $source_filepath, 651 'destination' => $destination_filepath, 652 'width' => $resize_dimensions['width'], 653 'height' => $resize_dimensions['height'], 654 'size' => floor(filesize($destination_filepath) / 1024).' KB', 655 'time' => number_format((get_moment() - $starttime) * 1000, 2, '.', ' ').' ms', 656 'library' => 'GD', 657 ); 649 658 } 650 659 651 660 function pwg_image_resize_im($source_filepath, $destination_filepath, $max_width, $max_height, $quality, $strip_metadata=false, $crop=false, $follow_orientation=true) 652 661 { 662 $starttime = get_moment(); 663 653 664 // extension of the picture filename 654 665 $extension = strtolower(get_extension($source_filepath)); … … 706 717 707 718 // everything should be OK if we are here! 708 return true; 719 return array( 720 'source' => $source_filepath, 721 'destination' => $destination_filepath, 722 'width' => $resize_dimensions['width'], 723 'height' => $resize_dimensions['height'], 724 'size' => floor(filesize($destination_filepath) / 1024).' KB', 725 'time' => number_format((get_moment() - $starttime) * 1000, 2, '.', ' ').' ms', 726 'library' => 'ImageMagick', 727 ); 709 728 } 710 729
Note: See TracChangeset
for help on using the changeset viewer.