<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Imaging and a little bit of OSS &#187; imagemagick</title>
	<atom:link href="http://nuclear-imaging.info/site_content/tag/imagemagick/feed/" rel="self" type="application/rss+xml" />
	<link>http://nuclear-imaging.info/site_content</link>
	<description>Yet another techno blog</description>
	<lastBuildDate>Wed, 04 Jan 2012 18:29:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Creating gif files from jpg, png, bmp, etc.</title>
		<link>http://nuclear-imaging.info/site_content/2009/03/03/creating-gif-files-from-jpg-png-bmp-etc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-gif-files-from-jpg-png-bmp-etc</link>
		<comments>http://nuclear-imaging.info/site_content/2009/03/03/creating-gif-files-from-jpg-png-bmp-etc/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 01:41:58 +0000</pubDate>
		<dc:creator>slash_boot</dc:creator>
				<category><![CDATA[Imaging]]></category>
		<category><![CDATA[Linux and OSS]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[jaunty]]></category>

		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=180</guid>
		<description><![CDATA[I had to create a movie/animation out of a series of images that I had in my folder. There were several methods described on several forums which suggested using GIMP for creating GIF files from JPG or PNG files when one is using Linux. Now the problem was that I had 70 files in total <a href='http://nuclear-imaging.info/site_content/2009/03/03/creating-gif-files-from-jpg-png-bmp-etc/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I had to create a movie/animation out of a series of images that I had in my folder. There were several methods described on several forums which suggested using GIMP for creating GIF files from JPG or PNG files when one is using Linux. Now the problem was that I had 70 files in total and it would have taken me a long to time to add all those images to GIMP in order to create my animation file.</p>
<p>Then I read somewhere that we can actually create GIF images in command line mode using Imagemagick. But to do so you need to have Imagemagick installed on your system. To install it in Ubuntu, run:</p>
<pre>sudo apt-get install imagemagick</pre>
<p>This program has several features that would let you do all sorts of things with images. I was interested in converting a bunch of PNG files into an animated GIF file. To do so, we need to  rename the files in a way that they would lie in a sequence when arranged alphabetically (if you plan on doing it the easy way). Suppose you have files named <em>slide_01.png, slide_02.png, slide_02.png&#8230;.slide_xx.png</em>, and you want to convert them to <em>movie.gif</em>, we run:</p>
<pre>convert -delay 10 -loop 0 slide*.png movie.gif</pre>
<p>The parameter <em>delay</em> inserts a desired delay between two consecutive slides. The number <em>x</em> used for delay inserts <em>10x</em> milliseconds of delay between two frames. Loop parameter <em>0</em> makes it repeat infinitely.</p>
<p>If you had files with non-uniform names, then you need to input each of them in a sequence after the delay and loop parameters. Suppose you have file <em>summer.jpg, fall, winter.jpg, fall.jpg and spring.jpg</em> and you want to order them as fall, winter, spring and summer in the gif image <em>seasons.gif </em> with a 1 second delay between each of them, use:</p>
<pre>convert -delay 100 -loop 0 fall.jpg winter.jpg spring.jpg summer.jpg seasons.gif</pre>
<p>Here are some animations of numbers from 0 to 9 with varying delays.</p>
<p>The delay values specified the above cases were: 1, 5, 15, 25, 50 and 100.</p>
<div id="attachment_182" class="wp-caption alignleft" style="width: 170px"><img class="size-full wp-image-182" title="gif animation 10 millisecond delay" src="http://nuclear-imaging.info/site_content/wp-content/uploads/2009/03/anim_02.gif" alt="gif animation with 10 millisecond delay" width="160" height="120" /><p class="wp-caption-text">GIF animation with 10 millisecond frame delay</p></div>
<div id="attachment_181" class="wp-caption alignleft" style="width: 170px"><img class="size-full wp-image-181" title="gif animation 50 millisecond delay" src="http://nuclear-imaging.info/site_content/wp-content/uploads/2009/03/anim_01.gif" alt="gif animation with 50 millisecond delay" width="160" height="120" /><p class="wp-caption-text">GIF animation with 50 millisecond frame delay</p></div>
<div id="attachment_183" class="wp-caption alignleft" style="width: 170px"><img class="size-full wp-image-183" title="gif animation 150 millisecond delay" src="http://nuclear-imaging.info/site_content/wp-content/uploads/2009/03/anim_03.gif" alt="gif animation with 150 millisecond delay" width="160" height="120" /><p class="wp-caption-text">GIF animation with 150 millisecond  frame delay</p></div>
<div id="attachment_184" class="wp-caption alignleft" style="width: 170px"><img class="size-full wp-image-184" title="gif animation 250 millisecond delay" src="http://nuclear-imaging.info/site_content/wp-content/uploads/2009/03/anim_04.gif" alt="gif animation with 250 millisecond delay" width="160" height="120" /><p class="wp-caption-text">GIF animation with 250 millisecond frame delay</p></div>
<div id="attachment_185" class="wp-caption alignleft" style="width: 170px"><img class="size-full wp-image-185" title="gif animation 500 millisecond delay" src="http://nuclear-imaging.info/site_content/wp-content/uploads/2009/03/anim_05.gif" alt="gif animation with 500 millisecond delay" width="160" height="120" /><p class="wp-caption-text">GIF animation with 500 millisecond frame delay</p></div>
<div id="attachment_186" class="wp-caption alignleft" style="width: 170px"><img class="size-full wp-image-186" title="gif animation 1000 millisecond delay" src="http://nuclear-imaging.info/site_content/wp-content/uploads/2009/03/anim_06.gif" alt="gif animation 1 second delay" width="160" height="120" /><p class="wp-caption-text">GIF animation 1 second frame delay</p></div>
<p>=================</p>
]]></content:encoded>
			<wfw:commentRss>http://nuclear-imaging.info/site_content/2009/03/03/creating-gif-files-from-jpg-png-bmp-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

