Skip to content

Instantly share code, notes, and snippets.

@namikuguri
Created July 30, 2015 10:12
Show Gist options
  • Save namikuguri/18f1c55c0543e2112b73 to your computer and use it in GitHub Desktop.
Save namikuguri/18f1c55c0543e2112b73 to your computer and use it in GitHub Desktop.

Revisions

  1. thleap created this gist Jul 30, 2015.
    16 changes: 16 additions & 0 deletions image-magick.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # ImageMagick

    画像サイズを縦横比維持したまま縮小(幅2560px -> 1280px):

    ```sh
    mogrify -resize 1280x -unsharp 2x1.4 -verbose dest/*.png
    ```

    画像の一部を裁ち落とし:

    ```sh
    mogrify -crop '1280x682+0+118' -verbose dest/*.png
    ```

    - http://d.hatena.ne.jp/weblinuxmemo/20090929/p1
    - http://www.ecoop.net/memo/archives/imagemagick_reverse_lookup.html