Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
ImageMagickのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
ImageMagick
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:マルチメディア]] [[de:ImageMagick]] [[en:ImageMagick]] [[es:ImageMagick]] [[Wikipedia:ImageMagick|Wikipedia]] から: :ImageMagick は、ラスターイメージファイルとベクターイメージファイルを表示、変換、編集するための無料のオープンソースソフトウェアスイートです。200 を超える画像ファイル形式を読み書きできます。 == Installation == [[Install]] the {{Pkg|imagemagick}} package. Alternatively install {{Pkg|graphicsmagick}} for [[Wikipedia:GraphicsMagick|GraphicsMagick]], a fork of ImageMagick, emphasizing stability of the API and command-line interface. == Usage == See {{man|1|ImageMagick}}, or {{man|1|gm}} for GraphicsMagick. Popular operations include {{ic|-append}}, {{ic|-resize}}, {{ic|-rotate}}, {{ic|-quality}} and many more. For example, to combine multiple pictures into one: $ convert -append ''input.pngs'' ''output.png'' {{Note|The sign before an option is important. Opposite operations can be performed by using a ''plus'' instead of a ''minus''.}} To crop part of multiple images and convert them to another format: $ mogrify -crop ''WIDTH''x''HEIGHT''+''X''+''Y'' -format jpg *.png Where ''WIDTH'' and ''HEIGHT'' is the cropped output image size, and ''X'' and ''Y'' is the offset from the input image size. === Screenshot taking === An easy way to take a screenshot of your current system is using the {{man|1|import}} command: $ import -window root screenshot.jpg {{ic|import}} is part of the {{Pkg|imagemagick}} package. Running {{ic|import}} without the {{ic|-window}} option allows selecting a window or an arbitrary region interactively. With {{ic|-pause}} you can specify a delay in which you can, for example, lower some windows. {{Note|If you prefer '''graphicsmagick''' alternative, just prepend "gm", e.g. {{ic|$ gm import -window root screenshot.jpg}}.}} ==== Screenshot of multiple X screens ==== If you run twinview or dualhead, simply take the screenshot twice and use {{Ic|imagemagick}} to paste them together: {{bc| import -window root -display :0.0 -screen /tmp/0.png import -window root -display :0.1 -screen /tmp/1.png convert +append /tmp/0.png /tmp/1.png screenshot.png rm /tmp/{0,1}.png }} ==== Screenshot of individual Xinerama heads ==== Xinerama-based multi-head setups have only one virtual screen. If the physical screens are different in height, you will find dead space in the screenshot. In this case, you may want to take screenshot of each physical screen individually. As long as Xinerama information is available from the X server, the following will work: {{bc|<nowiki> #!/bin/sh xdpyinfo -ext XINERAMA | sed '/^ head #/!d;s///' | while IFS=' :x@,' read i w h x y; do import -window root -crop ${w}x$h+$x+$y head_$i.png done </nowiki>}} ==== Screenshot of the active/focused window ==== The following script takes a screenshot of the currently focused window. It works with EWMH/NetWM compatible X Window Managers. To avoid overwriting previous screenshots, the current date is used as the filename. {{bc|<nowiki> #!/bin/sh activeWinLine=$(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)") activeWinId=${activeWinLine:40} import -window "$activeWinId" /tmp/$(date +%F_%H%M%S_%N).png </nowiki>}} Alternatively, the following should work regardless of EWMH support: $ import -window "$(xdotool getwindowfocus -f)" /tmp/$(date +%F_%H%M%S_%N).png {{Note|If screenshots of some programs ([[dwb]] and [[zathura]]) appear blank, try appending {{ic|-frame}} or removing {{ic|-f}} from the {{ic|xdotool}} command.}} == See also == * [https://www.imagemagick.org/ ImageMagick website] for an extensive list of options and examples. * [[List of applications/Multimedia#Image processing]]
このページで使用されているテンプレート:
テンプレート:Bc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Man
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Tip
(
ソースを閲覧
)
ImageMagick
に戻る。
検索
検索
ImageMagickのソースを表示
話題を追加