Thanks for your response, Fred... I'll try to explain, as you suggest. I'm sure I have something wrong, but then again, it seems IM is doing something wrong too. Maybe they are related, or maybe not.
On approximately 9/10/2009 9:31 AM, came the following characters from the keyboard of Fred Weinhaus: > I don't really follow this, but it appears that you have the order of > images wrong and am missing a -composite or -flatten with the first > -compose multiply. > > The convert syntax is > > convert background overlay -compose method -composite > > Below you create a white image, but don't follow with the overlay > image until after the -compose multiply and then there is no > -composite (or you have an out of place -compose multiply after the > xc:white and then again after the in.jpg with a -compose multiply > -flatten. When you have missed a composite command, you end up with > multiple outputs rather than the two image being composited into one > image. > > see http://www.imagemagick.org/Usage/compose/#compose > > > Perhaps I am missing something here, but your command does not make > sense to me. Perhaps it worked before because IM was more forgiving > of errors and ignored the misplaced -compose multiply. > > Perhaps you can explain functionally what you are trying to do and > what each step corresponds to. > Below, I will carve up my command, and explain what I think, which may not be correct. You can correct me. > Also you say things are twice as big, but your image is 750x750 but > you are usinig a 1159x1515 size white image. So the result will > likely be that big. > Yes, I expect the result to be 1159x1515. But I don't expect that in.jpg, which is 750x750, will get doubled in size, and consume 1500x1500, in each case, and be therefore cropped. Both copies of in.jpg should fit, non-overlapping, within 1159x1515, at the positions I specified. I think one should be in the upper left corner, and one in the lower right corner. >> convert.exe -density 150 -size 1159x1515 xc:white -compose multiply ( >> in.jpg -repage 1159x1515+0+0 ) -compose multiply -flatten ( in.jpg >> -repage 1159x1515+409+765 ) -compose multiply -flatten -compress zip out.tif Here's my command, split into pieces, with explanations after the # convert.exe # run the program -density 150 -size 1159x1515 xc:white # make a white canvas of the final size -compose multiply # probably not needed ( in.jpg -repage 1159x1515+0+0 ) -compose multiply -flatten # in.jpg to upper left ( in.jpg -repage 1159x1515+409+765 ) -compose multiply -flatten # in.jpg bottom right -compress zip out.tif # save result _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
