Missing the firt layer while using writeImages()
Posted: 2013-11-08T11:14:08-07:00
Here my code:
"1.png"is lost.
If I use modify to writeImages(images.begin(), images.begin()+1, "out.psd", true); "1.png" is not missing.
Code: Select all
images.push_back(Image("1.png"));
images.push_back(Image("2.png"));
images.push_back(Image("3.png"));
for (auto i = images.begin(); i < images.end(); i++)
{
i->label(i->fileName());
i->magick("PSD");
i->backgroundColor("none");
i->colorspaceType(RGBColorspace);
i->alphaChannel(ActivateAlphaChannel);
i->mergeLayers(MosaicLayer);
}
writeImages(images.begin(), images.end(), "out.psd", true);
If I use modify to writeImages(images.begin(), images.begin()+1, "out.psd", true); "1.png" is not missing.