Merge pull request #1 from GuillaumeGomez/improvement
Improve messages for image creation
This commit is contained in:
commit
abc59c20ae
|
@ -329,9 +329,9 @@ fn main() {
|
||||||
|
|
||||||
// Write to disk
|
// Write to disk
|
||||||
if !args.is_present("serialized_output") {
|
if !args.is_present("serialized_output") {
|
||||||
println!("Writing image to disk...");
|
println!("Writing image to disk into '{}'...", r.output_file);
|
||||||
if r.output_file.ends_with(".png") {
|
if r.output_file.ends_with(".png") {
|
||||||
let _ = image.write_png(Path::new(&r.output_file));
|
image.write_png(Path::new(&r.output_file)).expect("Failed to write png...");
|
||||||
} else if r.output_file.ends_with(".exr") {
|
} else if r.output_file.ends_with(".exr") {
|
||||||
image.write_exr(Path::new(&r.output_file));
|
image.write_exr(Path::new(&r.output_file));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user