Changeset 4422 for extensions/pLoader
- Timestamp:
- Dec 4, 2009, 10:30:31 AM (15 years ago)
- Location:
- extensions/pLoader/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pLoader/trunk/locale/fr_FR/pLoader.po
r4279 r4422 27 27 28 28 msgid "Site thumbnail size :" 29 msgstr "Taille des miniature :"29 msgstr "Taille des miniatures :" 30 30 31 31 msgid "Site image width :" … … 508 508 msgid "errors" 509 509 msgstr "erreurs" 510 511 msgid "Yes, use HD resized of the original photo" 512 msgstr "Oui, utiliser une réduction HD de la photo originale" 513 514 msgid "Yes, use a copy of the original photo" 515 msgstr "Oui, utiliser une copie de la photo originale" 516 517 msgid "HD image width :" 518 msgstr "Largeur de l'image HD :" 519 520 msgid "HD image height :" 521 msgstr "Hauteur de l'image HD :" 522 523 msgid "HD image jpeg quality :" 524 msgstr "Qualité jpeg de l'image HD :" 525 526 msgid "HD image filter :" 527 msgstr "Filtre de réduction de l'image HD :" 528 529 msgid "HD image blur :" 530 msgstr "Accentuation/flou de l'image HD :" 531 532 msgid "HD image interlace :" 533 msgstr "Entrelacement de l'image HD :" -
extensions/pLoader/trunk/src/Uploader/GUI/wxApp.pm
r4408 r4422 109 109 default_photo_names 110 110 eng_default_photo_names 111 upload_hd 112 eng_upload_hd 111 113 / 112 114 ); … … 130 132 # to check if we can use stored cache 131 133 $self->imagelist_version( 132 ' 8'134 '9' 133 135 ); 134 136 … … 269 271 } 270 272 ); 271 273 274 $self->upload_hd( 275 [ 276 'No', 277 'Yes, use HD resized of the original photo', 278 'Yes, use a copy of the original photo', 279 ] 280 ); 281 282 $self->eng_upload_hd( 283 { 284 map { gettext($_) => $_ } @{$self->upload_hd} 285 } 286 ); 287 272 288 $self->default_photo_names( 273 289 [ … … 460 476 my $params = { 461 477 new_files => [], 478 hd_filter => 'Lanczos', 479 hd_blur => 0.9, 480 hd_quality => 95, 481 hd_w => 1600, 482 hd_h => 1200, 483 hd_interlace => 'Line', 462 484 thumb_size => 120, 463 485 site_thumb_dir => $self->thumb_dir, … … 474 496 th_quality => 90, 475 497 auto_rotate => 1, 498 upload_hd => 'No', 476 499 remove_uploaded_from_selection => 1, 477 500 interlace => 'Line', -
extensions/pLoader/trunk/src/Uploader/GUI/wxFrameAUI.pm
r4408 r4422 106 106 resized_settings_panel 107 107 thumbnail_settings_panel 108 hd_settings_panel 108 109 advanced_settings_panel 109 110 watermark_settings_panel … … 113 114 resized_settings 114 115 thumbnail_settings 116 hd_settings 115 117 advanced_settings 116 118 watermark_settings … … 391 393 }, 392 394 { 393 label => gettext("Upload high (original size) :"), 394 type => 'Bool', 395 value => sub { $self->imagelist->upload_high(@_) }, 395 label => gettext("Upload high definition :"), 396 type => 'Choice', 397 choice => [ 398 map { gettext $_ } @{wxTheApp->upload_hd} 399 ], 400 pre_process => sub { my ( $value ) = @_; wxTheApp->eng_upload_hd->{$value} }, 401 value => sub { $self->imagelist->upload_hd(@_) }, 396 402 }, 397 403 { … … 440 446 ); 441 447 448 $self->hd_settings( 449 [ 450 { 451 label => gettext("HD image width :"), 452 type => 'Number', 453 value => sub { $self->imagelist->hd_w(@_) }, 454 }, 455 { 456 label => gettext("HD image height :"), 457 type => 'Number', 458 value => sub { $self->imagelist->hd_h(@_) }, 459 }, 460 { 461 label => gettext("HD image jpeg quality :"), 462 type => 'Number', 463 value => sub { $self->imagelist->hd_quality(@_) }, 464 }, 465 { 466 label => gettext("HD image filter :"), 467 type => 'Choice', 468 value => sub { $self->imagelist->hd_filter(@_) }, 469 choice => [ qw/Point Box Triangle Hermite Hanning Hamming Blackman Gaussian Quadratic Cubic Catrom Mitchell Lanczos Bessel Sinc/ ], 470 }, 471 { 472 label => gettext("HD image blur :"), 473 type => 'Float', 474 value => sub { $self->imagelist->hd_blur(@_) }, 475 }, 476 { 477 label => gettext("HD image interlace :"), 478 type => 'Choice', 479 value => sub { $self->imagelist->hd_interlace(@_) }, 480 choice => [ qw/None Line Plane Partition JPEG GIF PNG/ ], 481 }, 482 ] 483 ); 484 442 485 $self->thumbnail_settings( 443 486 [ … … 465 508 ); 466 509 467 # $self->preview_settings(468 # [469 # {470 # label => gettext("Use exif preview when available :"),471 # type => 'Bool',472 # value => sub { $self->imagelist->use_exif_preview(@_) },473 # },474 # {475 # label => gettext("Custom preview ratio :"),476 # type => 'Number',477 # value => sub { $self->imagelist->preview_ratio(@_) },478 # },479 # ]480 # );481 510 482 511 $self->advanced_settings( … … 584 613 $self->resized_settings_panel, 585 614 $self->thumbnail_settings_panel, 615 $self->hd_settings_panel, 586 616 $self->advanced_settings_panel, 587 617 $self->watermark_settings_panel, … … 655 685 ); 656 686 657 #$self->preview_settings_panel->properties(658 # $self->preview_settings,659 #);687 $self->hd_settings_panel->properties( 688 $self->hd_settings, 689 ); 660 690 661 691 $self->advanced_settings_panel->properties( … … 715 745 parentwnd => $self, 716 746 properties => $self->thumbnail_settings, 717 718 747 } 719 748 ) 720 749 ); 721 #$self->preview_settings_panel( 722 # Uploader::GUI::wxPropertyGridPanel->new( 723 # { 724 # parentwnd => $self, 725 # properties => $self->preview_settings, 726 727 # } 728 # ) 729 #); 750 $self->hd_settings_panel( 751 Uploader::GUI::wxPropertyGridPanel->new( 752 { 753 parentwnd => $self, 754 properties => $self->hd_settings, 755 } 756 ) 757 ); 730 758 731 759 $self->watermark_settings_panel( … … 743 771 parentwnd => $self, 744 772 properties => $self->advanced_settings, 745 746 773 } 747 774 ) … … 1050 1077 gettext("Thumbnail"), 1051 1078 ], 1052 #[1053 # $self->preview_settings_panel,1054 # gettext("Preview"),1055 #],1079 [ 1080 $self->hd_settings_panel, 1081 gettext("HD"), 1082 ], 1056 1083 [ 1057 1084 $self->watermark_settings_panel, -
extensions/pLoader/trunk/src/Uploader/ImageList.pm
r4409 r4422 43 43 blur 44 44 quality 45 resize_w 46 resize_h 47 hd_filter 48 hd_blur 49 hd_quality 50 hd_w 51 hd_h 52 hd_interlace 45 53 prefix 46 54 author 47 55 count 48 resize_w49 resize_h50 56 new_files 51 57 storable_file … … 80 86 pwg 81 87 upload_high 88 upload_hd 82 89 remove_uploaded_from_selection 83 90 wx_quality … … 721 728 resize_w 722 729 resize_h 730 hd_filter 731 hd_blur 732 hd_quality 733 hd_w 734 hd_h 735 hd_interlace 723 736 new_files 724 737 storable_file … … 734 747 default_name_prefix 735 748 upload_high 749 upload_hd 736 750 remove_uploaded_from_selection 737 751 auto_rotate … … 829 843 } 830 844 845 my $decode = { 846 'No' => 0, 847 'Yes, use HD resized of the original photo' => 'HD', 848 'Yes, use a copy of the original photo' => 'ORIGINAL', 849 }; 850 851 $self->upload_high( 852 $decode->{$self->upload_hd} 853 ); 854 831 855 # if upload high, rotate a copy of original file 832 856 if($self->upload_high){ … … 1051 1075 my ( $self ) = @_; 1052 1076 1077 printf("CreateHigh %s\n", $self->upload_high); 1053 1078 my $bModifyOriginal; 1054 1079 my $bRotate; 1055 1080 my $bAddWatermark; 1081 my $bResize; 1056 1082 my $orientation = $self->current_image->exif_metadata->{Orientation}; 1083 my $degrees; 1057 1084 1058 1085 # Valid for Rotate 180, Rotate 90 CW, Rotate 270 CW … … 1060 1087 $bModifyOriginal = 1; 1061 1088 $bRotate = 1; 1089 $degrees = $1; 1062 1090 } 1063 1091 … … 1066 1094 $bAddWatermark = 1; 1067 1095 } 1096 1097 # HD resize 1098 if('HD' eq $self->upload_high){ 1099 $bModifyOriginal = 1; 1100 $bResize = 1; 1101 } 1068 1102 1069 1103 if($bModifyOriginal){ … … 1077 1111 warn "$status ", $self->current_image->file, "\n" if $status ; 1078 1112 return 0 if $status; 1079 1113 if($bResize){ 1114 $status = $image->Resize( 1115 geometry => sprintf("%sx%s>", $self->hd_w, $self->hd_h), 1116 filter => sprintf("%s", $self->hd_filter), 1117 blur => $self->hd_blur 1118 ); 1119 warn "$status" if $status ; 1120 return 0 if $status; 1121 } 1122 1123 printf("resize with quality value %s\n", $self->quality); 1124 $status = $image->Set(quality=>$self->quality); 1125 warn "$status" if $status ; 1126 1127 $status = $image->Set(interlace=>$self->interlace); 1128 warn "$status" if $status ; 1129 1080 1130 if($bRotate){ 1081 $image->Rotate( degrees=>$ 1);1131 $image->Rotate( degrees=>$degrees ); 1082 1132 } 1083 1133 $image->Write( … … 1134 1184 my ( $filename, $ext ) = split /\./, $file ; 1135 1185 1136 # high_file is a copyof original1186 # high_file is a resized of original 1137 1187 $self->current_image->site_high_file( 1138 1188 File::Spec->catfile( -
extensions/pLoader/trunk/src/Uploader/PWG/WebServices.pm
r4291 r4422 307 307 $status_line = $high_params->{message}; 308 308 last if !$high_params->{ok}; 309 # high is a HD resized copy of original 310 $form->{high_sum} = $self->sum_high_file; 309 311 } 310 312 $doubleCheck = 1;
Note: See TracChangeset
for help on using the changeset viewer.