Ignore:
Timestamp:
2023-09-19T10:54:07+12:00 (8 months ago)
Author:
davidb
Message:

Plugin updated to auto-orient images by default. Plugin option to disable this, if it is not wanted/needed for some reason

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/ImageConverter.pm

    r32783 r38163  
    9696    'range' => "1,",
    9797    'reqd' => "no" },
     98      { 'name' => "disable_auto_orient",
     99    'desc' => "{ImageConverter.disable_auto_orient}",
     100    'type' => "flag",
     101    'reqd' => "no" },
    98102    { 'name' => "store_original_image",
    99103      'desc' => "{ImageConverter.store_original_image}",
     
    508512
    509513    # Generate and run the convert command
    510     my $convert_command = "\"".&util::get_perl_exec()."\" -S gs-magick.pl --verbosity=".$self->{'verbosity'}." convert -interlace plane -verbose $convert_options \"$source_file_path\" \"$target_file_path\"";
     514    my $convert_command = "\"".&util::get_perl_exec()."\" -S gs-magick.pl --verbosity=".$self->{'verbosity'};
     515    my $opt_auto_orient = ($self->{'disable_auto_orient'}) ? "" : "-auto-orient";
     516   
     517    $convert_command .= " convert -interlace plane -verbose $convert_options \"$source_file_path\" $opt_auto_orient \"$target_file_path\"";
    511518
    512519    my $print_info = { 'message_prefix' => $convert_id,
Note: See TracChangeset for help on using the changeset viewer.