Hello Anthony, thanks for your quick reply. Your explanation and the links you sent are really helpful. The two convert calls you gave me are more advanced and I do not fully understand (yet) what they are doing in detail but I can guess.
I tried to change two things but I am not experienced enough to see whats wrong The first thing I changed is that I want the watermark appear only on the 450x450 and 200x200 px sized images but not on the big one. I was successful with this and the resulting images appear correctly, After this I tried to add a drop shadow of the clipping path to the resized image in 450px. I found examples on http://www.imagemagick.org/Usage/convolve/#shadow and I added the sample code to my convert call in different ways: convert "foto.psd[0]" -resize 2000x2000 \ -gravity center -background blue -extent 2000x2000+0+0 -write test.jpg \ stempel_axel.png -gravity center -composite \ \( +clone -background black -shadow 70x15+15+15 \ +swap -background none -layers merge +repage \ -resize 450x450 -write test450.jpg +delete \ \) -resize 200x200 test200.jpg With this call I get the large image without watermark, the image in 450px is completely black and the image in 200px is correct again. In the next attempt try to "separate" the creation of the shadow but all I get is a shadow around the blue background. convert "foto.psd[0]" -resize 2000x2000 \ -gravity center -background blue -extent 2000x2000+0+0 -write test.jpg \ stempel_axel.png -gravity center -composite \ \( +clone \ \( +clone -background black -shadow 70x15+15+15 \) \ +swap -background none -layers merge +repage \ -resize 450x450 -write test450.jpg +delete \ \) -resize 200x200 test200.jpg I suppose I'm completely wrong because I don't create a shadow of the clipping path. Correct me if I'm wrong but to me it seems that I create a black "shadow" or a duplicate of the big 2000x2000px sized image and resize it to 450x450px But I stuck again at this point. Du you have a clue what I have to do? Regards , Axel Am Dienstag 19 Mai 2009 03:22:10 schrieb Anthony Thyssen: > Continuing study... > > convert 'foto.psd[0]' -resize 2000x2000 \ > -gravity center -background blue -extent 2000x2000+0+0 \ > stempel_axel.png -gravity center -composite \ > \( +clone -resize 450x405 -write test450.jpg +delete \) \ > \( +clone -resize 200x200 -write test200.jpg +delete \) \ > test.jpg > > First note how I organized the command. Making each line a major > processing step, alloting it to be read much more easilly by others. > Including yourself months later! > > Also note that I avoided resizing a resize. Resize is a major image > distioning operation and avoiding multiple distorts is always a good > thing. > > PS: to make it look more natural ass a wave distortion > See http://www.imagemagick.org/Usage/warping/#wave > Note the wave length is twice the image width to make an 'arch' > See http://www.imagemagick.org/Usage/fonts/#arch > > convert 'foto.psd[0]' -resize 2000x2000 \ > -gravity center -background blue -extent 2000x2000+0+0 \ > \( stempel_axel.png -background none -wave 17x700 > \) -gravity center -geometry -10-20 -composite \ > \( +clone -resize 450x405 -write test450.jpg +delete \) \ > \( +clone -resize 200x200 -write test200.jpg +delete \) \ > test.jpg > > I'll leave you to adjust the wave and geometry offset better ;-) > > PS: a -wave distortion is not the correct solution for a cylindrical > object. But this only becomes noticable close to the edges of the cylinder. > For our purposes wave should be close enough. See IM forum discussion > http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=13569 > > I do hope to add a true cylindrical distortion to IM sometime. > > Anthony Thyssen ( System Programmer ) <[email protected]> > > --------------------------------------------------------------------------- >-- "I have a top secret gravely important assignment here." > "What other kind do I ever get?" -- Stainless Steel Rat (Revenge) > > --------------------------------------------------------------------------- >-- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ -- Axel Rosenski _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
