Skip to content

Instantly share code, notes, and snippets.

@deltam
Last active August 29, 2015 14:24
Show Gist options
  • Save deltam/ce21db7692de83dabf5a to your computer and use it in GitHub Desktop.
Save deltam/ce21db7692de83dabf5a to your computer and use it in GitHub Desktop.
画像を平行移動してずらす ref: http://qiita.com/deltam/items/63306db4d46224a22b43
$ convert A.png -distort Affine '10,10 3,5' B.png
$ convert A.png -distort Affine '10,10 10,10' A2.png
$ compare A.png A2.png compare.png
$ convert -version
Version: ImageMagick 6.9.0-10 Q16 x86_64 2015-03-09 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: DPC Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png xml zlib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment