try
{
current = CloneImage(iter->image(), 0, 0, Magick::MagickTrue, &exceptionInfo);
+
+ if (!first) first = current;
+
+ current->previous = previous;
+ current->next = 0;
+
+ if ( previous != 0) previous->next = current;
+ previous = current;
}
catch(Magick::Warning warning) {
synfig::warning("exception '%s'", warning.what());
}
-
- if (!first) first = current;
-
- current->previous = previous;
- current->next = 0;
-
- if ( previous != 0) previous->next = current;
- previous = current;
}
return first;
filename = (filename_sans_extension(filename) + ".%04d" + filename_extension(filename));
}
- synfig::info("writing %d images to %s", images.size(), filename.c_str());
+ synfig::info("writing %d image%s to %s", images.size(), images.size() == 1 ? "" : "s", filename.c_str());
try
{
Magick::writeImages(images.begin(), images.end(), filename);