Search found 34 matches

by kirash4
2014-08-26T11:58:24-07:00
Forum: Users
Topic: Memory allocation error [ SOLVED ]
Replies: 1
Views: 1982

Re: Memory allocation error

Never mind! Figured it out. I forgot to reset a variable which was causing the routine that checks for a matte to fail, which in turn caused the thumbnail writing routine to blow up. And the way I figured it out was by the feedback the program was giving me. Those letters I had placed as indicator: ...
by kirash4
2014-08-26T11:18:13-07:00
Forum: Users
Topic: Memory allocation error [ SOLVED ]
Replies: 1
Views: 1982

Memory allocation error [ SOLVED ]

I have a c++ program that processes an image and does several things with it, in the following order: - if needed, resizes or extents it to 48 pixels high - flattens it if it has a matte - creates a copy of the resized image so I have two variables to work with, a thumbnail_Img and process_Img - wri...
by kirash4
2014-07-30T11:37:05-07:00
Forum: Users
Topic: Compiling for IM support on Win32/64
Replies: 2
Views: 2269

Re: Compiling for IM support on Win32/64

Yeah, I actually ditched MinGW. I went the CygWin route and now have a static build of IM with only the specific libraries that I need/want (freetype/libjbig/libjpeg/libpng/libz.) Rather painless as all of the libraries can also be compiled statically. Now I'm down to only needing three CygWin speci...
by kirash4
2014-07-27T14:16:58-07:00
Forum: Users
Topic: Direction of flop() (or flip())
Replies: 12
Views: 7254

Re: Direction of flop() (or flip())

Ok, SHOOT ME NOW ... just aim right for the center of my forehead and shoot ... urgh. imagesList.push_front() works as you suggested it should. Except, the file I was editing is not the file that was getting compiled. I was editing -v01 while the IDE was compiling -v02. I just noticed my second comp...
by kirash4
2014-07-27T13:47:26-07:00
Forum: Users
Topic: Direction of flop() (or flip())
Replies: 12
Views: 7254

Re: Direction of flop() (or flip())

dlemstra wrote:Shouldn't you just change imagesList.push_back(cloneImg); to imagesList.push_front(cloneImg); ? This will put the images in a different order.
You'd think, but no. The resulting image is the same.

And changing which gets pushed back first also results in the same thing.
by kirash4
2014-07-27T13:01:24-07:00
Forum: Users
Topic: Direction of flop() (or flip())
Replies: 12
Views: 7254

Re: Direction of flop() (or flip())

I tried changing the order in the montage command, it never worked. Got into a weird loop that just ate up memory and never wrote anything out. I'll see what the swap equivalent is, if there is one for the Magick++ API. Montage should respect the images, but you may have to do something different ab...
by kirash4
2014-07-27T12:47:44-07:00
Forum: Users
Topic: Direction of flop() (or flip())
Replies: 12
Views: 7254

Re: Direction of flop() (or flip())

The resulting mirror image is the same whether it's a flip or a flop. It's along which edge is what makes the difference in the resulting image: http://www.ka4designs.com/flop-example.jpg The code as written performs what I expect it to do. I'm trying to figure out how to go the other direction. Sam...
by kirash4
2014-07-27T00:42:15-07:00
Forum: Users
Topic: Direction of flop() (or flip())
Replies: 12
Views: 7254

Direction of flop() (or flip())

Following this snippet of code: try { list<Image> imagesList; Image srcImage(imgFilename); Image cloneImg = srcImage; imagesList.push_back(srcImage); cloneImg.flop(); imagesList.push_back(cloneImg); Montage montageSettings; montageSettings.geometry(Geometry(srcImage.columns(), srcImage.rows())); mon...
by kirash4
2014-07-21T12:52:57-07:00
Forum: Users
Topic: Compiling for IM support on Win32/64
Replies: 2
Views: 2269

Compiling for IM support on Win32/64

Somehow it feels like I've been down this path before ... I'm trying to build some command line utilities (for the moment) that need IM support to manipulate images. I'm using CodeBlocks to compile them (written in C++). I downloaded and installed the MinGW distribution of IM so I can compile and li...
by kirash4
2014-05-08T10:10:06-07:00
Forum: Magick++
Topic: Different results for same code
Replies: 0
Views: 5138

Different results for same code

I'm scratching my head and wondering if anyone here might have an idea as to what's going on. I have the following snippet: #include <Magick++.h> #include <iostream> int main(int argc, char *argv[]) { Magick::InitializeMagick(*argv); static char const *filename = argv[1]; try { Magick::Image origina...
by kirash4
2014-04-21T07:10:48-07:00
Forum: Developers
Topic: Compile errors
Replies: 1
Views: 3622

Re: Compile errors

It seems I had a corrupted installation of libtiff-devel. Once that was fixed, the compile proceeded without any errors.
by kirash4
2014-04-20T21:17:47-07:00
Forum: Developers
Topic: Compile errors
Replies: 1
Views: 3622

Compile errors

After running configure on IM, I tried compiling and got errors on the TIFF coder. This is the result of the configure "--with-quantum-depth=8" command (everything I need for this installation is there): ImageMagick is configured as follows. Please verify that this configuration matches your expecta...
by kirash4
2014-04-13T13:20:36-07:00
Forum: Developers
Topic: Building lean library on Windows
Replies: 3
Views: 5281

Re: Building lean library on Windows

Actually, I just realized something. The last time I tried building IM with MVSE 2012, I didn't get the library files I was expecting, those I can use to link against. I got the *.exe files for the various utilities. How do I tell it to create the (static) libraries that I need?
by kirash4
2014-04-13T12:27:53-07:00
Forum: Developers
Topic: Building lean library on Windows
Replies: 3
Views: 5281

Re: Building lean library on Windows

I'll try that. I'm just thinking, for applications that I'm developing, using IM, there's no need to use a large library with everything in it when all I care for is JPEG, PNG, GIF, TIFF< and zlib support. It should make for a much leaner one to link with.
by kirash4
2014-04-13T10:46:56-07:00
Forum: Developers
Topic: Building lean library on Windows
Replies: 3
Views: 5281

Building lean library on Windows

On a unix platform I can run configure and turn on or off the different delegates that I want or don't want. How would I do that on the Windows platform? The configure.exe that comes with the source doesn't offer options for that.