CloneImage() question
Posted: 2008-10-10T19:04:02-07:00
Veering off from a thread on the Users forum, I ran the following, which worked fine:
Now for reasons not necessary to go into here, I have a bit of debug in the source, namely, the line
placed near the top of the CloneImage routine, just before the call
Here is the output when I run the command-line mentioned at the top:
CloneImage: filename = cap
CloneImage: filename = cap
CloneImage: filename = cap
CloneImage: filename = cap
CloneImage: filename = cap
CloneImage: filename = cap
CloneImage: filename = cap
Seven calls to CloneImage() ???
If I use the simpler command,
then there seems to be two:
CloneImage: filename = 0001.jpg
CloneImage: filename = 0001.jpg
But why even two? What's going on that a curious pixel pusher should know?
Rick
Code: Select all
imconvert 0001.jpg -write mpr:cap -size 600x600 xc:white -draw "image Darken 100,100 60,60 'mpr:cap'" -delete 0 test.png
Code: Select all
printf("CloneImage: filename = %s\n", image->filename);
Code: Select all
clone_image=(Image *) AcquireMagickMemory(sizeof(*clone_image));
CloneImage: filename = cap
CloneImage: filename = cap
CloneImage: filename = cap
CloneImage: filename = cap
CloneImage: filename = cap
CloneImage: filename = cap
CloneImage: filename = cap
Seven calls to CloneImage() ???
If I use the simpler command,
Code: Select all
imconvert -size 600x600 xc:white -draw "image Darken 100,100 60,60 '0001.jpg'" test.png
CloneImage: filename = 0001.jpg
CloneImage: filename = 0001.jpg
But why even two? What's going on that a curious pixel pusher should know?
Rick