0
0

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 1 year has passed since last update.

ImageMagick でモックアップ用画像生成(macOS)

Last updated at Posted at 2023-11-12

TL;DR

$ size="256x144"; magick -background '#778899' -fill white -size "$size" -gravity center label:"$size" "$size".png

256x144.png

動作環境

$ sw_vers 
ProductName:		macOS
ProductVersion:		13.6
BuildVersion:		22G120

$ magick -version
Version: ImageMagick 7.1.1-21 Q16-HDRI aarch64 21667 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(5.0) 
Delegates (built-in): bzlib fontconfig freetype gslib heic jng jp2 jpeg jxl lcms lqr ltdl lzma openexr png ps raw tiff webp xml zlib
Compiler: gcc (4.2)

環境構築

$ brew install imagemagick

環境を汚したくなければ docker コンテナに ImageMagick をインストールするとよいかも

参考

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?