… | |
… | |
186 | $ncolor > 8 or die "cannot reduce filesize to < 10000 bytes"; |
186 | $ncolor > 8 or die "cannot reduce filesize to < 10000 bytes"; |
187 | } |
187 | } |
188 | |
188 | |
189 | printf "reduced %s from %d to %d bytes using %d colours.\n", |
189 | printf "reduced %s from %d to %d bytes using %d colours.\n", |
190 | $other, -s "$other~", -s "$other~~", $ncolor |
190 | $other, -s "$other~", -s "$other~~", $ncolor |
191 | if $VERBOSE > 0; |
191 | if $VERBOSE >= 2; |
192 | rename "$other~~", "$other~"; |
192 | rename "$other~~", "$other~"; |
193 | } |
193 | } |
194 | |
194 | |
195 | die "$other~ has zero size, aborting." unless -s "$other~"; |
195 | die "$other~ has zero size, aborting." unless -s "$other~"; |
196 | rename "$other~", $other; |
196 | rename "$other~", $other; |