Skip to content

Eliminating virtual pixels for initiation unidirectional motion blur #7197

Closed Answered by snibgo
josephs-pixel asked this question in Help
Discussion options

You must be logged in to vote

As that G'MIC page says, ImageMagick has -compose Blur -composite, which uses an image to vary the amount of blur. See my page Selective blur for examples.

For your case:

magick ^
  toes.png ^
  -set option:MYSIZE %wx%h ^
  ( -size %[MYSIZE] gradient:Black-White ) ^
  -compose Blur -set option:compose:args 0x50 -composite ^
  x2.png

This is Windows CMD syntax. For Windows BAT syntax, double each % to %%.

This makes a gradient image that is black at the top and white at the bottom, the same size as the input image. This is used as a mask for a blur that has sigma=0 in the x-direction (ie no blur), and sigma=50 in the y-direction.

This is fast enough for web-sized images. For 35m pixel im…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@josephs-pixel
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@josephs-pixel
Comment options

Answer selected by josephs-pixel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants