<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Automatic creation of images displaying sequential numbers</title>
	<link>http://ask.metafilter.com/90164/Automatic-creation-of-images-displaying-sequential-numbers/</link>
	<description>Comments on Ask MetaFilter post Automatic creation of images displaying sequential numbers</description>
	<pubDate>Wed, 30 Apr 2008 02:51:33 -0800</pubDate>
	<lastBuildDate>Wed, 30 Apr 2008 02:51:33 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Automatic creation of images displaying sequential numbers</title>
		<link>http://ask.metafilter.com/90164/Automatic-creation-of-images-displaying-sequential-numbers</link>	
		<description>How do I automatically create a series of images of sequential numbers?
( 01.jpg shows the number &apos;1&apos;,  02.jpg the number &apos;2&apos;, etc) &lt;br /&gt;&lt;br /&gt; I would prefer to do this using software for Windows.  Although if need be, a Mac-only solution would do.&lt;br&gt;
&lt;br&gt;
The file-format is of no importance, since conversion is always possible.  &lt;br&gt;
Image size for my use is about 500x500 pixels. Simple two-tone images are fine, although some influence on (randomization of) background color, font type/color would be even better.&lt;br&gt;
&lt;br&gt;
I&apos;m no guru, but have a basic understanding of Adobe&apos;s CS3 Suite and have monkeyed around with various video-editing programs (using the titler functions) as well as image-management software (e.g. ThumbsPlus) and different watermarking software to get this problem solved, but without success.&lt;br&gt;
&lt;br&gt;
I&apos;m sure it must be possible, even if the method is a &apos;dirty&apos; way of using a program. ThumbsPlus for example can make thumbnail-sheets of images, which it then numbers, if you ask it to.  However, I haven&apos;t been able to cheat this option into doing what I need.&lt;br&gt;
&lt;br&gt;
Any ideas?  Making these by hand is not going to be fun...</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.90164</guid>
		<pubDate>Wed, 30 Apr 2008 02:22:02 -0800</pubDate>
		<dc:creator>Grensgeval</dc:creator>
		
			<category>automation</category>
		
			<category>images</category>
		
			<category>numbering</category>
		
			<category>graphics</category>
		
			<category>design</category>
		
			<category>font</category>
		
			<category>color</category>
		
	</item> <item>
		<title>By: le morte de bea arthur</title>
		<link>http://ask.metafilter.com/90164/Automatic-creation-of-images-displaying-sequential-numbers#1324026</link>	
		<description>This is the sort of thing you could do fairly easily in &lt;a href=&quot;http://www.microsoft.com/express/vb/&quot;&gt;VB 2008&lt;/a&gt;. My guess is it would take less than 10 lines of code. If you don&apos;t find a better solution and need someone to write the code for you, mail me and I&apos;ll see what I can do.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90164-1324026</guid>
		<pubDate>Wed, 30 Apr 2008 02:51:33 -0800</pubDate>
		<dc:creator>le morte de bea arthur</dc:creator>
	</item><item>
		<title>By: grouse</title>
		<link>http://ask.metafilter.com/90164/Automatic-creation-of-images-displaying-sequential-numbers#1324028</link>	
		<description>Install Cygwin, making sure to include ImageMagick in your install. Typing these commands from the bash shell will generate all of the images:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;FILLS=(firebrick2 magenta2 NavyBlue DarkGreen DarkGoldenrod2)&lt;br&gt;
FONTS=(Helvetica-BoldOblique Palatino-Bold AvantGarde-Book Times-Italic)&lt;br&gt;
&lt;br&gt;
X=1&lt;br&gt;
while [ $X -lt 100 ]; do&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FILL=${FILLS[( $RANDOM % ${#FILLS[@]} )]}&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FONT=${FONTS[( $RANDOM % ${#FONTS[@]} )]}&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;convert -size 500x500 -fill $FILL -font $FONT -gravity center label:$X ${X}.png&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;let X=X+1&lt;br&gt;
done&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
See &lt;a href=&quot;http://www.imagemagick.org/Usage/text/&quot;&gt;these recipes&lt;/a&gt; for examples. Here are &lt;a href=&quot;http://imagemagick.org/script/color.php&quot;&gt;color names&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
Sorry, I didn&apos;t bother to make the file for 1 be 01.png, rename it yourself.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90164-1324028</guid>
		<pubDate>Wed, 30 Apr 2008 02:58:27 -0800</pubDate>
		<dc:creator>grouse</dc:creator>
	</item><item>
		<title>By: burnmp3s</title>
		<link>http://ask.metafilter.com/90164/Automatic-creation-of-images-displaying-sequential-numbers#1324052</link>	
		<description>Here&apos;s a solution in VB.NET 2005.  You have to set maxNumber to whatever you need it to be, and you would need to mess with the font size and text location for it to look pretty, but the rest of it should be what you need.&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&lt;br&gt;
        Dim maxNumber As Integer = 100&lt;br&gt;
        Dim textSize As New Size(500, 500)&lt;br&gt;
        Dim textLocation As New Point(0, 0)&lt;br&gt;
&lt;br&gt;
        Dim numberofdigits As Integer = CInt(Math.Floor(Math.Log10(maxNumber))) + 1&lt;br&gt;
&lt;br&gt;
        For i As Integer = 1 To maxNumber&lt;br&gt;
&lt;br&gt;
            Dim numberText As String = i.ToString&lt;br&gt;
            Dim font As New Font(&quot;Lucida Console&quot;, 240, FontStyle.Regular)&lt;br&gt;
&lt;br&gt;
            Dim blankImage As New Bitmap(textSize.Width, textSize.Height)&lt;br&gt;
            Dim graph As Graphics = Graphics.FromImage(blankImage)&lt;br&gt;
            graph.DrawString(numberText, font, Brushes.Black, textLocation.X, textLocation.Y)&lt;br&gt;
&lt;br&gt;
            Dim fileName As String = i.ToString.PadLeft(numberofdigits, &quot;0&quot;c) &amp;amp; &quot;.bmp&quot;&lt;br&gt;
            blankImage.Save(fileName)&lt;br&gt;
&lt;br&gt;
        Next&lt;br&gt;
&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90164-1324052</guid>
		<pubDate>Wed, 30 Apr 2008 04:31:41 -0800</pubDate>
		<dc:creator>burnmp3s</dc:creator>
	</item><item>
		<title>By: chocolatepeanutbuttercup</title>
		<link>http://ask.metafilter.com/90164/Automatic-creation-of-images-displaying-sequential-numbers#1324065</link>	
		<description>Adobe Photoshop:&lt;br&gt;
File | Automate | Batch&lt;br&gt;
&lt;br&gt;
You can run it from a folder or using files that are already opened.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90164-1324065</guid>
		<pubDate>Wed, 30 Apr 2008 05:11:42 -0800</pubDate>
		<dc:creator>chocolatepeanutbuttercup</dc:creator>
	</item><item>
		<title>By: Grensgeval</title>
		<link>http://ask.metafilter.com/90164/Automatic-creation-of-images-displaying-sequential-numbers#1324081</link>	
		<description>@grouse, that was beautiful.&lt;br&gt;
I&apos;m not a programmer at all, but even I can understand that code.&lt;br&gt;
&lt;br&gt;
Installed Cygwin, copied your code and it worked the very first time.&lt;br&gt;
&lt;br&gt;
Using your links I&apos;ll pretty the results up a little.&lt;br&gt;
&lt;br&gt;
Thank you so much!&lt;br&gt;
&lt;br&gt;
@burbmp3s, thank you for you reply!&lt;br&gt;
It was easier for me to understand the Cygwin code, so for now that what I went with.&lt;br&gt;
I&apos;ll give your code a test run later in the week, it will be put to use, so also major kudos to you, cheers!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90164-1324081</guid>
		<pubDate>Wed, 30 Apr 2008 05:41:28 -0800</pubDate>
		<dc:creator>Grensgeval</dc:creator>
	</item>
	</channel>
</rss>
