i have a png file ,and i want to change the file right side to transparency in gradients.
ori. file :
and i want:
how can i do this.
thanks.
Code: Select all
convert 460.png ( -clone 0 -alpha extract ) ( -size 440x431 gradient: -rotate -90 -threshold 10% -blur 30x65535 -level 0x50% ) ( -size 440x431 gradient: -rotate -270 -threshold 30% -blur 70x65535 -level 0x50% ) ( -clone 1 -clone 2 -clone 3 -compose multiply -composite ) -delete 1,2,3 -compose copy_opacity -composite 460_grad.png
Code: Select all
convert rose: -alpha set -background None -virtual-pixel VerticalTile \
-channel A -blur 0x8 -level 50%,100% +channel soft_sides.png
All I get is a transparent image?anthony wrote:Code: Select all
convert rose: -alpha set -background None -virtual-pixel VerticalTile \ -channel A -blur 0x8 -level 50%,100% +channel soft_sides.png
Code: Select all
convert rose: -alpha set -background None -virtual-pixel VerticalTile \
-channel A -blur 0x8 -level 50%,100% +channel soft_sides.png
You can make the gradient linear by changing -blur 0x8 to -blur 24x65535Note that the gradient is a blur feathering, as such the curve is more of a sigmiodal curve falling quite sharply to zero at the edges. A -sigmoidal contrast can make it less sharp.