Skip to content

Commit

Permalink
Fixed mistake in quality keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Photon89 authored Feb 8, 2024
1 parent 037a2c9 commit ec9fde6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/shutter/resources/modules/Shutter/Pixbuf/Save.pm
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ sub save_pixbuf_to_file {

print "Saving file $filename, $filetype, $quality\n" if $self->{_common}->get_debug;

eval { $pixbuf->save($filename, $filetype, "tEXt::Software" => "Shutter", quality => $quality); };
eval { $pixbuf->save($filename, $filetype, "tEXt::Software" => "Shutter", compression => $quality); };

This comment has been minimized.

Copy link
@DarthGandalf

DarthGandalf Feb 8, 2024

Member

Just to check: did you intend to update this for both PNG and WEBP?

This comment has been minimized.

Copy link
@Photon89

Photon89 Feb 8, 2024

Author Member

Yes, the original mistake was to replace the keyword in the wrong line, so I reverted the replacement on the wrong line and applied it in the correct one.

} elsif ($filetype eq 'bmp') {
eval { $pixbuf->save($filename, $filetype); };
} elsif ($filetype eq 'webp') {
Expand All @@ -147,7 +147,7 @@ sub save_pixbuf_to_file {

print "Saving file $filename, $filetype, $quality\n" if $self->{_common}->get_debug;

eval { $pixbuf->save($filename, $filetype, "tEXt::Software" => "Shutter", compression => $quality); };
eval { $pixbuf->save($filename, $filetype, "tEXt::Software" => "Shutter", quality => $quality); };
} elsif ($filetype eq 'pdf') {

print "Saving file $filename, $filetype\n" if $self->{_common}->get_debug;
Expand Down

0 comments on commit ec9fde6

Please sign in to comment.