Changeset 4760
- Timestamp:
- Jan 27, 2010, 2:12:41 PM (14 years ago)
- Location:
- extensions/pLoader/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pLoader/trunk/locale/fr_FR/pLoader.po
r4727 r4760 634 634 msgid "Photo size" 635 635 msgstr "Dimension des photos" 636 637 msgid "Maximum width" 638 msgstr "Largeur maximale" 639 640 msgid "Maximum height" 641 msgstr "Hauteur maximale" -
extensions/pLoader/trunk/src/Uploader/ImageList.pm
r4759 r4760 536 536 my $w = $image->Get('width'); 537 537 my $h = $image->Get('height'); 538 539 # should calculate the aspect ratio540 my $resize_w = $self->resize_w;541 my $resize_h = $self->resize_h;542 543 if( $w < $h ){544 my $resize_w_ = $resize_w;545 $resize_w = $resize_h;546 $resize_h = $resize_w_;547 }548 #printf("resize with blur value %s\n", $self->blur);549 $status = $image->Resize(550 geometry => sprintf("%sx%s>", $resize_w, $resize_h),551 filter => sprintf("%s", $self->filter),552 blur => $self->blur553 );554 warn "$status" if $status ;555 return 0 if $status;556 538 557 539 $status = $image->Set(Gravity=>"Center"); … … 570 552 $image->Rotate( degrees=>$1 ) if $self->auto_rotate; 571 553 } 554 555 556 #printf("resize with blur value %s\n", $self->blur); 557 $status = $image->Resize( 558 geometry => sprintf("%sx%s>", $self->resize_w, $self->resize_h), 559 filter => sprintf("%s", $self->filter), 560 blur => $self->blur 561 ); 562 warn "$status" if $status ; 563 return 0 if $status; 572 564 573 565 #printf("resize with quality value %s\n", $self->quality); … … 1120 1112 warn "$status ", $self->current_image->file, "\n" if $status ; 1121 1113 return 0 if $status; 1114 1115 if($bRotate){ 1116 $image->Rotate( degrees=>$degrees ); 1117 } 1118 $image->Write( 1119 $self->current_image->site_high_file 1120 ); 1121 warn "$status ", $self->current_image->site_high_file, "\n" if $status ; 1122 return 0 if $status; 1123 1122 1124 if($bResize){ 1123 1125 $status = $image->Resize( … … 1137 1139 warn "$status" if $status ; 1138 1140 1139 if($bRotate){1140 $image->Rotate( degrees=>$degrees );1141 }1142 $image->Write(1143 $self->current_image->site_high_file1144 );1145 warn "$status ", $self->current_image->site_high_file, "\n" if $status ;1146 return 0 if $status;1147 1141 1148 1142 undef $image;
Note: See TracChangeset
for help on using the changeset viewer.