Reputation: 189886
I can't find the docs in imagemagick that pertain to translating an image by dx,dy pixels.
Can someone help me? I want to produce an image that's the same size as the original, just shifted, and with the new pixels set to color X.
Upvotes: 0
Views: 1306
Reputation: 16116
I believe you are looking for
convert originalimage.png -virtual-pixel colorofnewpixel -distort Affine 'originalx,originaly newx,newy' translatedimage.png
This is further documented with examples at ImageMagick v6 Examples -Distorting Images under the Distortions Using Control Points heading.
Upvotes: 2