Search found 7 matches

by sandwich
2019-11-09T17:51:35-07:00
Forum: Users
Topic: Gradient instead of solid fill color (draw)
Replies: 15
Views: 5933

Re: Gradient instead of solid fill color (draw)

Why haven't you added "+repage" after the crop? Because I am not that familiar with ImageMagick/convert, but that did the trick! By the way -compose over seems not to be necessary (same result with and without it). So finally the command is: convert \ \( in.pic -crop 1000x1000+120+230 \ +repage \ -...
by sandwich
2019-11-09T17:12:46-07:00
Forum: Users
Topic: Gradient instead of solid fill color (draw)
Replies: 15
Views: 5933

Re: Gradient instead of solid fill color (draw)

Code: Select all

convert in.pic -crop 1000x1000+120+230 -scale 50% out.pic
works fine.

Code: Select all

convert in.pic -crop 1000x1000+120+230 -scale 50% -region 100x100+33+77 -swirl 360 +region out.pic
results in the above mentioned error.
by sandwich
2019-11-09T16:49:39-07:00
Forum: Users
Topic: Gradient instead of solid fill color (draw)
Replies: 15
Views: 5933

Re: Gradient instead of solid fill color (draw)

Yes the in.pic is large enuogh, I want to extract (crop) a 1000x1000 part (top left corner at +120+230 of in.pic), then scale it to 500x500 px² and within this 500x500 image (position +33+77) I want to do the swirl and the composition with the gradient. (The -geometry values should be +33+77 instead...
by sandwich
2019-11-09T16:03:56-07:00
Forum: Users
Topic: Gradient instead of solid fill color (draw)
Replies: 15
Views: 5933

Re: Gradient instead of solid fill color (draw)

Works cool, thanks. My platform is Linux/Ubuntu (version mentioned above: ImageMagick 6.9.7-4 Q16 i686 20170114) Final question (at least I hope it is) : I do not want to use the whole pic.in but only a cropped and scaled part of it. When trying convert \ \( in.pic -crop 1000x1000+120+230 -scale 50%...
by sandwich
2019-11-09T15:04:56-07:00
Forum: Users
Topic: Gradient instead of solid fill color (draw)
Replies: 15
Views: 5933

Re: Gradient instead of solid fill color (draw)

If I apply the swirl only to the radial-gradient, it has no effect, because the swirled (radial gradient) image looks the same as the unswirled one.
So I want to swirl the area where the radial transparent/opaque image overlays the in.pic after composition, otherwise the swirl is not visible.
by sandwich
2019-11-09T13:49:53-07:00
Forum: Users
Topic: Gradient instead of solid fill color (draw)
Replies: 15
Views: 5933

Re: Gradient instead of solid fill color (draw)

Perfect. Thanks!

Next step: additionally to the (radial and) opaque/transparent gradient I'd like to swirl this 100x100 px² area after composition:

Code: Select all

convert in.jpg -size 100x100 radial-gradient:black-none  -geometry +300+200 -composite out.jpg
Where to put the

Code: Select all

-swirl
?
by sandwich
2019-11-09T12:56:23-07:00
Forum: Users
Topic: Gradient instead of solid fill color (draw)
Replies: 15
Views: 5933

Gradient instead of solid fill color (draw)

convert in.pic -fill blue -draw "rectangle 100,100 300,200" out.pic results, as expected, in a 200x100 pixel² blue rectangle within the picture (left top corner at position 100,100). Using convert in.jpg -fill gradient:blue -draw "rectangle 100,100 300,200" out.jpg does not give a rectangle with a ...