I am Charmie

メモとログ

ImageMagick

ディレクトリ内の全pdfファイルを画像に変換

前提 imagemagickがインストール済み 同一ディレクトリに一つ以上のpdfファイルが保存されている 全pdfファイルは1ページ スクリプト 以下の通り #!/bin/bash for filename in *.pdf; do convert $filename -quality 90 ${filename/.pdf/.png} done 注意 pd…

ImageMagick align images

[code lang="bash"] convert 0000.png -background "#ffffff" -gravity south -splice 0x32 blank0000.png convert -pointsize 24 -gravity south -annotate 0 "0" -fill red blank0000.png text0000.png montage text0000.png text0001.png text0002.png te…

ImageMagick: align images

convert function with append option aligns multiple images either horizontally or vertically. convert +append does horizontally while convert -append vertically. [code lang="bash"] convert +append img1.jpg img2.jpg ... imgAlignHorizontally…

install Magick++ on ubuntu

sudo apt-get install libmagick++-dev libmagickcore-dev libmagickwand-dev perlmagick

Install ImageMagick on Ubuntu from source

Simple steps. Download a package. Extract the package tar xvfz ImageMagick.tar.gz Go into the directory containing the files cd ImageMagick-6.X.X-X Configure ./configure Build make Install sud make install

Magick++: Draw a circle

Magick++ provides a sub-class DrawableCircle that draws a circle on an image canvas. We should note the crazy design of the class. The sub-class is called as image.draw( DrawableCircle(originX, originY, perimX, perimY) ); This call draw a …

Magick++ (ImageMagick C++ API) install

Installation of Magick++ that is C++ API of ImageMagick. I installed ImageMagick version 6.7.7-3 with Visual Studio 2008 under Windows7 64bit. Download the source files ImageMagick web Go to Download page from left side bar and go to a mir…

Making a movie file from images using ImageMagick

convert input*.tiff to a gif file.convert -delay 20 -loop 0 input*.tiff output.gif convert input*.tiff into 300x200 resolution then to a gif file (! option doesn't keep aspect ratio). convert -delay 20 -loop 0 -resize 300x200! input*.tiff …

ImageMagickで画像の拡大

画像を補間なしで拡大convert original.bmp -scale 100% converted.bmp

ImageMagickのcrop

> convert -crop widthxheight+x+y original.bmp result.bmpで画像の一部切り出しが出来る。切り出した画像には、元の画像の解像度と、どの領域を切り出したかという情報が保存されており、identifyコマンドで確認できる。> identify result.bmpresult.bmp B…