Tweak output when not optimised (#765)
This commit is contained in:
parent
155eeb3637
commit
d48b147b3d
1 changed files with 2 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ pub fn optimize(input: &InFile, output: &OutFile, opts: &Options) -> PngResult<(
|
||||||
(OutFile::Path { path, .. }, InFile::Path(input_path))
|
(OutFile::Path { path, .. }, InFile::Path(input_path))
|
||||||
if path.as_ref().is_none_or(|p| p == input_path) =>
|
if path.as_ref().is_none_or(|p| p == input_path) =>
|
||||||
{
|
{
|
||||||
info!("{input}: Could not optimize further, no change written");
|
info!("Could not optimize further, no change written: {input}");
|
||||||
return Ok((in_length, in_length));
|
return Ok((in_length, in_length));
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
|
@ -227,6 +227,7 @@ pub fn optimize(input: &InFile, output: &OutFile, opts: &Options) -> PngResult<(
|
||||||
buffer
|
buffer
|
||||||
.write_all(&optimized_output)
|
.write_all(&optimized_output)
|
||||||
.map_err(|e| PngError::WriteFailed("stdout".into(), e))?;
|
.map_err(|e| PngError::WriteFailed("stdout".into(), e))?;
|
||||||
|
info!("{savings}: stdout");
|
||||||
}
|
}
|
||||||
(
|
(
|
||||||
OutFile::Path {
|
OutFile::Path {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue