Thanks for the reply. Anthony. I am adding URLs for three images http://riyasuthar.myphotoalbum.com/view_photo.php?set_albumName=album01&id=m1 http://riyasuthar.myphotoalbum.com/view_photo.php?set_albumName=album01&id=m2 http://riyasuthar.myphotoalbum.com/view_photo.php?set_albumName=album01&id=m3
Thanks. Bhavin On 9/4/07, Anthony Thyssen <[EMAIL PROTECTED]> wrote: > > "Riya Suthar" on wrote... > | Attached are few images > | > | m1.jpg - mug image > | m2.jpg - image I want to impose on the mug > | m3.jpg - final output should look like the attached image > | > Sorry Riya, but the mail list does not allow attachments as a block > against spammers. > > Please the images online somewhere (there are lots of free photo > servers out there) and provide links to them. > > | I have been working on this for quite a while and have tried wave > operator > | but am not successful. Below are few specifications > | > | 1. Mug diameter is about 156 pixel. Circumference about 490 pixel. Front > of > | mug (visible in attached image) is about 156 pixel diameter (height of > mug > | is about 160 pixel) and about 245 pixel if you flatten the mug image. > | 2. Image width (m2.jpg) is about 385 pixels. > | > | I tried using -wave 15x770, which gave me a curved image of m2.jpg. The > I > | tried cropping the image to extract 245 pixel (about 122.5 on either > side of > | center line). Resizing the image to 156x160 (so that it can fit into > the > | center of the mug does not give me good result, since it aspect ratio of > the > | image is lost and the look of the final image is not the same as m3.jpg. > | > | Any ideas or help on above problem will be helpful. > | > > Using the above description I believe I know what you plan to do. > > Wave works, but only gives a vertical distortion. > > You will also need to provide some sort of horizonal compression toward > the edges, for this to work properly. > > I suggest you experiment a bit with some distortion maps. > Either absolute coordinate mapps > http://www.imagemagick.org/Usage/distorts/#lut > Or relative 'displacement' maps > http://www.imagemagick.org/Usage/compose/#displace > > Only a x direction distortion is needed, and best done AFTER the > vertical distortion. > > > There is lots of work in IM for distortion mapping, both in expanding > capabilities, and in improved look of results. Stay tuned! > > Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> > > ----------------------------------------------------------------------------- > The life of processes in the UNIX environment is wierd. Parent > processes normally out live their children, and in fact processes who > die become zombies until either their parents reconise they are in > fact dead, or they themselves die. -- Treaty on UNIX Process Handling > > ----------------------------------------------------------------------------- > Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ > _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
