1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ImageMagickの使い方

Last updated at Posted at 2020-03-31

はじめに

imageMagickを使ってみたので、備忘録代わりに残しておこうと思う

拡張子の変更

magick logo: logo.gif

logo:はインストール後にテスト用に用意されているファイルで、何も設定しなくても
使用する事が出来る。
上のコマンドをたたくと、拡張子を変更する事が出来る。
※任意でファイルは変えて下さい。

サイズの変更

いくつか方法はあるが、とりあえず1つ書いておこうと思う。

magick logo.gif -resize 100x100 logo.png

ポイントは変換前のファイル名を -resize の前に記入する事。
つまり上のコードは
logo.gif という画像を100x100に変更してlogp.pngとして保存する
という事になる。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?