Mercurial > hg > octave-terminal
changeset 10977:71ad9c8f20f5
__magick_write__: don't require image type to be inferred from filename
author | John Swensen <jpswensen@gmail.com> |
---|---|
date | Wed, 15 Sep 2010 13:43:29 -0400 |
parents | 80653e42a551 |
children | 71f38cba668d |
files | src/ChangeLog src/DLD-FUNCTIONS/__magick_read__.cc |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-09-15 John Swensen <jpswensen@gmail.com> + + * __magick_read__.cc: Allow image_write to write filetypes + without an extension (bug #30784). + 2010-09-14 John W. Eaton <jwe@octave.org> * variables.cc (symbol_exist): If looking for any type of file
--- a/src/DLD-FUNCTIONS/__magick_read__.cc +++ b/src/DLD-FUNCTIONS/__magick_read__.cc @@ -811,6 +811,10 @@ try { + int nframes = static_cast<int>(imvec.size ()); + for (int i = 0; i < nframes ; i++) + imvec[i].magick (fmt); + Magick::writeImages (imvec.begin (), imvec.end (), filename); } catch (Magick::Warning& w)