Changeset 4585 for extensions
- Timestamp:
- Dec 30, 2009, 10:31:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pLoader/trunk/src/Uploader/ImageList.pm
r4568 r4585 220 220 # if some files have been previously selected 221 221 my $i = scalar @{$self->sums}; 222 printf("SetNewFiles %s\n", $i);222 #printf("SetNewFiles %s\n", $i); 223 223 my $count = 0; 224 224 $self->count($count); … … 329 329 my ( $self, $file, $info, $i ) = @_; 330 330 331 printf("_default_photo_name %s\n", $self->default_photo_name);332 331 333 332 my $name; … … 381 380 } 382 381 383 printf("_default_photo_name %s\n", $name);384 382 $name; 385 383 } … … 566 564 $resize_h = $resize_w_; 567 565 } 568 printf("resize with blur value %s\n", $self->blur);566 #printf("resize with blur value %s\n", $self->blur); 569 567 $status = $image->Resize( 570 568 geometry => sprintf("%sx%s>", $resize_w, $resize_h), … … 591 589 } 592 590 593 printf("resize with quality value %s\n", $self->quality);591 #printf("resize with quality value %s\n", $self->quality); 594 592 $status = $image->Set(quality=>$self->quality); 595 593 warn "$status" if $status ; … … 809 807 $self-> _set_site_high_file (); 810 808 # photo metadata 809 $self->_upload_selection_prepare() if (!$uploaded->{$self->current_image->file_sum} or $self->reupload_action_files); 811 810 $self->_prepare_upload_properties(); 812 $self->_upload_selection_prepare() if (!$uploaded->{$self->current_image->file_sum} or $self->reupload_action_files);813 811 814 812 # transfert resized, high, thumbnail to site … … 836 834 $self->_set_upload_msg(gettext("Preparing resized image for")); 837 835 $self->_upload_progress(); 838 836 #printf("resized %s\n", $self->create_resized); 839 837 if( $self->create_resized ){ 840 838 $self->_create_site_resized_file(); … … 844 842 # the original is at the right size, no need to create a resize 845 843 else { 844 #printf("original no resized %s\n", $self->create_resized); 846 845 $self->current_image->site_resized_file( 847 846 $self->current_image->file, … … 854 853 'Yes, use a copy of the original photo' => 'ORIGINAL', 855 854 }; 856 printf("upload HD %s\n", $self->upload_hd);855 #printf("upload HD %s\n", $self->upload_hd); 857 856 $self->upload_high( 858 857 $decode->{$self->upload_hd} 859 858 ); 859 #printf("upload High %s\n", $self->upload_high); 860 860 861 861 # if upload high, rotate a copy of original file … … 1027 1027 ) 1028 1028 ); 1029 #printf("_set_site_resized_file %s\n", $self->current_image->site_resized_file); 1029 1030 } 1030 1031 … … 1058 1059 my ( $self ) = @_; 1059 1060 # use wx builtin rescale if IM fails 1060 printf("CreateResized failed %s. Use ResizeCallback\n", $@);1061 #printf("CreateResized failed %s. Use ResizeCallback\n", $@); 1061 1062 # use method provided by the caller 1062 1063 # source, target, type, ratio, width, $height … … 1080 1081 my ( $self ) = @_; 1081 1082 1082 printf("CreateHigh %s\n", $self->upload_high);1083 #printf("CreateHigh %s\n", $self->upload_high); 1083 1084 my $bModifyOriginal; 1084 1085 my $bRotate; … … 1125 1126 } 1126 1127 1127 printf("resize with quality value %s\n", $self->quality);1128 #printf("resize with quality value %s\n", $self->quality); 1128 1129 $status = $image->Set(quality=>$self->quality); 1129 1130 warn "$status" if $status ; … … 1173 1174 $self->current_image->file 1174 1175 ); 1176 #printf("site high file %s\n", $self->current_image->site_high_file); 1175 1177 } 1176 1178 … … 1209 1211 1210 1212 # debug 1211 printf("Create watermark %s\n", $file_out);1213 #printf("Create watermark %s\n", $file_out); 1212 1214 1213 1215
Note: See TracChangeset
for help on using the changeset viewer.