Re: blob.c : ImageToBlob : depth not considered ?
Bob Friesenhahn <[email protected]> Fri, 15 Jan 2021 07:53:18 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 15 Jan 2021, Pro Turm wrote: > Hi Bob, > the question is regarding the design of ImageToBlob ? When I call the > following > > ImageToBlob(pImage_info,pImage,&nLength,pExceptionInfo); > > then the pImage_info->depth is not considered at all. > > Is this correct? (ImateToBlob calls constitute.c/WriteImage, which > considers/copies *dither*, but not *depth*) The ImageInfo you provide (or a copy of it) is provided to the write coder, which then does something based on it if possible. Not all formats have a notion of 'depth'. For example, PNG does, but GIF does not. What file format are you writing? Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt