Friday, June 29, 2018

gif 의 모든 frame 을 extract 하는 법

convert some-image.gif -coalesce %d.jpg

the various frames have transparent areas and build upon each other, you can use the convert command with the "-coalesce" option to produce a set of files target-0.png, target-1.png etc, each of which merges the sequence of previous images

출처 : How can I split an animated .gif file into its component frames?

Thursday, June 14, 2018

Imagemagick 으로 파일 정보 얻기

다음 명령을 쓰면 된다.

identify filename.gif
다만 이렇게만 하면 gif 의 framerate 정보는 안나옴. gif 파일의 framerate 를 보려면
identify -format "%T ticks:  %f: Frame[%s]  %m %wx%h %P%O %r %z-bit\n" anim.gif

레퍼런스 : 
how do I use Imagemagick to determine the framerate of a GIF?
How do I detect an animated GIF's ticks per second?

Wednesday, June 13, 2018

Convert PDF to Image(s) using ImageMagick

pdf 파일의 모든 페이지를 이미지파일로 export 하는 법
레퍼런스 : Convert PDF to Image(s) using ImageMagick