Skip to content

Commit

Permalink
modified: Image/recompress_images.pl -- convert the original images, …
Browse files Browse the repository at this point in the history
…then optimize (results in better compression)
  • Loading branch information
trizen committed Sep 18, 2023
1 parent cadcd77 commit 6be1d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Image/recompress_images.pl
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ ($png_file)
next;
};

optimize_png($temp_png);
png2jpeg($temp_png, $temp_jpg) or next;
optimize_png($temp_png);
optimize_jpeg($temp_jpg);

my $final_file = $temp_png;
Expand Down Expand Up @@ -234,8 +234,8 @@ ($png_file)
next;
};

optimize_jpeg($temp_jpg);
jpeg2png($temp_jpg, $temp_png) or next;
optimize_jpeg($temp_jpg);
optimize_png($temp_png);

my $final_file = $temp_png;
Expand Down

0 comments on commit 6be1d84

Please sign in to comment.