Hi,
Am absolutely new to Imagemagick.
This is what am trying to do:
I am trying to modify and bend an image along a sine wave (to create an arc of that image) and then place it on a cylindrical surface image like a cup, so that the image appears to be printed on the cup.
Problem: I am able to bend the image using -wave and make it an arc. But the displaced pixels, i.e the place above and below the actual image have some color. When i use background -none the background shows up in black. I want no background after waving the image. Want something like a transparent png image which can be used on web pages.
I guess i was clear explainging my point. Need help. Please let me know if something was unclear
Thanks,
Aravind
Background after waving image using -wave..
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Background after waving image using -wave..
be sure to use png or gif for your output. jpg does not support transparency
you may want to look at my unix bash script, cylinderize, see link below
you may want to look at my unix bash script, cylinderize, see link below
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Background after waving image using -wave..
FYI, see also the example in IM examples, Image Mapping Effects
http://www.imagemagick.org/Usage/mappin ... e_cylinder
http://www.imagemagick.org/Usage/mappin ... e_cylinder
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Background after waving image using -wave..
try -background noneWhen i use background -none the background shows up in black
but looks like a bug as it works with any color but "none"
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Background after waving image using -wave..
If 'none' turns up as transparency, you need to make sure your image has transparency.
Ass a -matte or -alpha on afetr reading the source image.
You may also need -channel RGBA or -channel All setting for soem operators to handle transparency as well as colors.
Ass a -matte or -alpha on afetr reading the source image.
You may also need -channel RGBA or -channel All setting for soem operators to handle transparency as well as colors.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Background after waving image using -wave..
this works fine.
convert koala.gif -background none -wave 10x64 wave.png
Note you have to use png or gif and not jpg as jpg does not support transparency.
convert koala.gif -background none -wave 10x64 wave.png
Note you have to use png or gif and not jpg as jpg does not support transparency.