Search found 1015 matches

by el_supremo
2012-02-08T08:32:19-07:00
Forum: MagickWand
Topic: ConvertImageCommand() and Obj-C
Replies: 7
Views: 29414

Re: ConvertImageCommand() and Obj-C

The problem is that tmp3, tmp4, tmp5 and tmp6 contain multiple arguments which must be in individual strings. Even a parenthesis is a separate argument. So where you have char *argv2[] = { "convert", tmp3, tmp4, tmp5, tmp6, It should be: char *argv2[] = { "convert", "("...
by el_supremo
2012-02-07T20:25:18-07:00
Forum: MagickWand
Topic: ConvertImageCommand() and Obj-C
Replies: 7
Views: 29414

Re: ConvertImageCommand() and Obj-C

1. -size parameter "${w1}x1". If value of w1 is 480 (for example) could this be translated to "480x1"? Yes. 2. zz=$fd1*(i-$cx)*$cosang. Should I define "i"? In effect what happens here is that IM executes the -fx argument for each value of i from zero up to the width o...
by el_supremo
2012-02-07T08:21:22-07:00
Forum: MagickWand
Topic: ConvertImageCommand() and Obj-C
Replies: 7
Views: 29414

Re: ConvertImageCommand() and Obj-C

xc: is the built-in image function which creates a canvas. If no size is specified, as in this case, then the image will be a single pixel. But the first nine statements aren't really using xc: at all. They are using the fx: feature to calculate values which will be used in the final convert stateme...
by el_supremo
2012-02-05T08:20:05-07:00
Forum: Users
Topic: How to combine these commands into one?
Replies: 4
Views: 10034

Re: How to combine these commands into one?

You are missing \) just before -compose.

Pete
by el_supremo
2012-02-02T13:58:52-07:00
Forum: Magick++
Topic: translating a command line to magick++ concerning pattern
Replies: 7
Views: 26038

Re: translating a command line to magick++ concerning patter

The basic pattern:checkerboard is designed to be tiled. But when you tile that image onto a 640x480 canvas, the result is not necessarily an image that can also be tiled. The left edge and the right edge of checkerboard.png don't match properly when tiled. I'm not familair with Magick++ so I can't h...
by el_supremo
2012-02-01T08:52:31-07:00
Forum: Magick++
Topic: translating a command line to magick++ concerning pattern
Replies: 7
Views: 26038

Re: translating a command line to magick++ concerning patter

Both of these are in C but you should be able to figure out how to do the same thing in Magick++ See the last piece of code posted by user "fisheggs" in this thread: http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=9346 And in my "MagickWand Examples in C", see...
by el_supremo
2012-01-27T07:41:10-07:00
Forum: Users
Topic: Using PixelSetColor()
Replies: 2
Views: 6496

Re: Using PixelSetColor()

The problem is that you have to pass "rgb(a,b,c)" as a string so anything inside the string is not interpreted as variables. But you could use sprintf to create the string and then pass that. e.g. char rgb_string[64]; . . . sprintf(rgb_string,"rgb(%d,%d,%d)",a,b,c); PixelSetColor...
by el_supremo
2012-01-16T15:37:33-07:00
Forum: Users
Topic: Adding copyright metadata to image?
Replies: 2
Views: 16187

Re: Adding copyright metadata to image?

IM will decompress the JPG data on input and then recompresss on output, which can degrade the image. You would be better off using a program which only alters the metadata. I forget the names - jhead is one I think?

Pete
by el_supremo
2012-01-12T09:19:15-07:00
Forum: IMagick
Topic: DPI changing issue
Replies: 1
Views: 8317

Re: DPI changing issue

What is the format of the input image and how do you know it is 300dpi?

Pete
by el_supremo
2012-01-08T12:33:16-07:00
Forum: Users
Topic: error LNK2019: unresolved external symbol ConstituteImage
Replies: 2
Views: 8334

Re: error LNK2019: unresolved external symbol ConstituteImag

The usual (and best) advice in this situation is that you first open the button demo project and make sure it compiles and runs as-is.
Then you can modify that code.

Pete
by el_supremo
2012-01-07T20:49:39-07:00
Forum: Users
Topic: Problems linking ImageMagic.h, syntax error: ssize_t
Replies: 4
Views: 11172

Re: Problems linking ImageMagic.h, syntax error: ssize_t

Try each of these.

For C programs which use MagickWand I use this:
#include <wand/magick_wand.h>

A C program using MagickCore would use:
#include <magick/MagickCore.h>

The button demo for Magick++ uses:
#include <Magick++.h>

Pete
by el_supremo
2011-12-18T19:24:19-07:00
Forum: MagickWand
Topic: Create several thumbnails from a single original image
Replies: 2
Views: 14809

Re: Create several thumbnails from a single original image

If you want 300x200 and 150x100 you can create the 300x200 first, write it, and then just cut the image in half and write that. If you want to (or have to) start from the original image each time, use CloneMagickWand to create a copy of the original wand. e.g. do something like this pseudo-code: ima...
by el_supremo
2011-12-12T14:21:01-07:00
Forum: Users
Topic: I don't understand the different result with convert & crop
Replies: 2
Views: 6326

Re: I don't understand the different result with convert & c

The problem with the trim is that there are white spots on the scanned image which are too white to be covered by a fuzz of even 70%. You could try an even higher fuzz but that might then start cutting into the images. You could also try really cleaning the scanning surface to see if you can get rid...
by el_supremo
2011-12-08T09:27:58-07:00
Forum: Users
Topic: Draw circle dithering
Replies: 3
Views: 8262

Re: Draw circle dithering

Turn off antialiasing - but it won't look as good:
convert testsave.png -stroke blue -fill blue -strokewidth 2 +antialias -draw "circle 20,20 20,25" test.png

Pete
by el_supremo
2011-12-07T13:07:18-07:00
Forum: Users
Topic: pdf to tif:poor resolution
Replies: 2
Views: 6740

Re: pdf to tif:poor resolution

Specify a density (dpi) for the PDF before reading it.

Code: Select all

convert -density 300 toto.pdf -monochrome toto.tif
Pete