Re: Resize filters
[email protected] Mon, 23 May 2011 19:33:03 +0000
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
On Mon, May 23, 2011 at 02:20:43PM -0500, Bob Friesenhahn wrote: > On Mon, 23 May 2011, [email protected] wrote: >>> >>> What resize API function are you invoking and what parameters are you >>> passing? >> >> >> image2=ResizeImage(imgstruct->image, x, y, filter, 1.0, &exception); > > This seems reasonable. > >> is what I've got currently. I'm experimenting w/ all the resizing >> facilities atm and some are working well, others are not (Resize, >> Thumbnail cause segfault); I don't know what extra preparation is required >> by me. > > Segmentation faults are likely your fault. However, it is wise to > invoke InitializeMagick(NULL) at the start of your program. InitializeMagick() was done. That the segfaults would turn out to be my fault wouldn't be surprising, but it's not yet obvious to me what needs repair. >> Perhaps at this point, you could tell me: what is the relationship >> between ImageInfo and Image? I'm keeping them together currently, but in >> my (brief) experience so far, it seems ImageInfo is mostly (only?) used >> to bootstrap loading an image. > > Right. ImageInfo is primarily used to pass settings for when the image > is not available yet. There is some documentation on the various types > to be found at "http://www.graphicsmagick.org/api/types.html". And of > course the documentation for ResizeImage may be found at > "http://www.graphicsmagick.org/api/resize.html#resizeimage". OK -- thanks for the confirmation. I've got a few pages of GM docs open, including a sample C program, all of which I'm using to guide my work. I'll keep at it. Thanks again for your help, -bch > Bob > -- > Bob Friesenhahn > [email protected], http://www.simplesystems.org/users/bfriesen/ > GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ -- Brad Harder Method Logic Digital Consulting http://methodlogic.net/ http://twitter.com/bcharder ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay