<?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>Interactive Llama :: Interactive media tutorials and tips &#187; images</title>
	<atom:link href="http://www.interactivellama.com/blog/archives/tag/images/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.interactivellama.com/blog</link>
	<description>Interactive media tutorials and tips</description>
	<lastBuildDate>Wed, 23 Nov 2011 15:25:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Gallery2 titles and keywords search engine optimization script</title>
		<link>http://www.interactivellama.com/blog/archives/gallery2-titles-and-keywords-search-engine-optimization-script/</link>
		<comments>http://www.interactivellama.com/blog/archives/gallery2-titles-and-keywords-search-engine-optimization-script/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 15:01:01 +0000</pubDate>
		<dc:creator>Stephen James</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Productivity & Workflow]]></category>
		<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[photograph]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">/blog/?p=137</guid>
		<description><![CDATA[If you are interested in the open-source image gallery web application, Gallery, you have probably read the Thirteen Ways To Add SEO To Gallery2. If you haven’t, then read that tutorial first. Within that tutorial, I mention a bulk renaming script that I have used for years with Gallery2 to change titles and keywords. This [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="float: left;" src="/blog/wp-content/uploads/2009/01/gallery2-logo.jpg" alt="" width="230" height="150" />If you are interested in the open-source image gallery web application, <a href="http://gallery.menalto.com/">Gallery</a>, you have probably read the <a href="http://gallery.menalto.com/node/70008">Thirteen Ways To Add SEO To Gallery2</a>. If you haven’t, then read that tutorial first. Within that tutorial, I mention a bulk renaming script that I have used for years with Gallery2 to change titles and keywords. This post is about that title and keyword generating bulk script. It removes some common naming conventions from the titles and removes common words from the keyword list. Do people really want to see all the photographs that contain the articles, &#8220;a,&#8221; &#8220;an&#8221; and &#8220;the.&#8221; I certainly wouldn&#8217;t.</p>
<p>The default title for Gallery2 item uploads is the file name of the image. It easier to name your files well from the beginning from the safety of either than edit the URL, titles, and keywords for your item after they are uploaded. My naming convention for a file name is photo_set-photo_subset-people_or_objects. For a photo of my parents, my bride and myself at my wedding, I used &#8220;wedding-party-parents-rachel-stephen.jpg&#8221;<span id="more-137"></span></p>
<p>When creating titles this script does the following via regular expressions:</p>
<ul>
<li>Removes &#8216;copy&#8217; (a common OS-X filename suffix)</li>
<li>Removes underscores at beginning</li>
<li>Removes underscores at end</li>
<li>Removes double underscores</li>
<li>Removes left and right parenthesis</li>
<li>Removes all single digit numbers and letters</li>
<li>Replaces underscores and hyphens with space</li>
</ul>
<p>When creating keywords from titles, this script removes the following common words and inserts commas between the remaining words:</p>
<blockquote><p>a, about, above, across, act, add, after, again, against, all, along, also, amid, among, an, and, any, are, around, as, at, back, be, been, before, behind, below, beneath, beside, besides, between, beyond, but, by, came, can, cause, change, close, come, concerning, considering, could, cover, cross, despite, did, differ, do, does, down, draw, during, each, even, every, except, excepting, excluding, far, few, find, follow, following, for, found, four, from, get, give, go, grow, had, hard, has, have, he, her, here, high, him, his, how, if, in, inside, into, is, it, just, keep, know, large, last, late, left, let, like, little, long, look, made, make, many, may, might, minus, more, most, move, much, must, my, near, never, no, now, of, off, on, one, only, onto, opposite, or, other, our, out, outside, over, own, part, past, per, plus, put, regarding, right, said, same, saw, say, see, self, set, she, should, side, small, so, some, still, such, take, tell, than, that, the, their, them, then, there, these, they, thing, this, three, through, to, too, toward, towards, try, two, under, underneath, unlike, until, up, upon, us, use, versus, very, via, want, was, way, we, went, were, what, when, where, which, while, who, why, will, with, within, without, would, you, your</p></blockquote>
<p><strong>Usage</strong></p>
<p>You can either edit the setup variables in the script or use URL variables (such as &#8220;?field=g_keywords&amp;begin_id=3000&#8243;). That example would insert keywords (test insert, not commit) based on the titles of all items after item 3000.</p>
<p><strong>Requirements</strong></p>
<ul>
<li>Some familiarity with the PHP language</li>
<li>Login credentials: server, username, database name, password</li>
<li>Item ID to begin with (default is 0, that is &#8220;all items&#8221;)</li>
<li>If you want to change my default title word removal listed above, familiarity with regular expressions</li>
</ul>
<p>Download <a href="/blog/wp-content/uploads/2009/01/gallery-seo-titles-keywords-smjdesign.txt">Gallery2 titles and keywords SEO script</a></p>
<p><em>NOTE: You will need to rename the &#8220;.txt&#8221; file to &#8220;.php&#8221; in order to run it on your server. Also this script will edit not only item names, but also albums. I&#8217;ve included copious comments in this script to aid in customizing it to your needs.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactivellama.com/blog/archives/gallery2-titles-and-keywords-search-engine-optimization-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSSsprite: Photoshop script combines two images for CSS hover</title>
		<link>http://www.interactivellama.com/blog/archives/photoshop-script-combine-two-images-css-hover-css-sprite/</link>
		<comments>http://www.interactivellama.com/blog/archives/photoshop-script-combine-two-images-css-hover-css-sprite/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 20:48:41 +0000</pubDate>
		<dc:creator>Stephen James</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Productivity & Workflow]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[actions]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sprite]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">/blog/?p=132</guid>
		<description><![CDATA[The need Professional web developers have been aware of CSS sprites or CSS rollovers/hovers since 2004 (The rollover term is taken from JavaScript and the hover term is taken from CSS). They are the background graphics that change position based on mouse hover thus eliminating the need for JavaScript image swaps and image caching since [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-135" title="csssprites_before" src="/blog/wp-content/uploads/2008/11/csssprites_before-300x123.jpg" alt="" width="300" height="123" /></p>
<p><img class="alignnone size-medium wp-image-136" title="csssprites_after" src="/blog/wp-content/uploads/2008/11/csssprites_after-300x132.jpg" alt="" width="300" height="132" /></p>
<p><strong>The need<br />
</strong></p>
<p>Professional web developers have been aware of <a href="http://www.alistapart.com/articles/sprites/">CSS sprites</a> or CSS rollovers/hovers since 2004 (The rollover term is taken from JavaScript and the hover term is taken from CSS).  They are the background graphics that change position based on mouse hover thus eliminating the need for JavaScript image swaps and image caching since the &#8220;mouse on&#8221; and &#8220;mouse off&#8221; are one image. I have been using sprites for years. It is a more tedious process than clicking Swap image on a DreamWeaver drop down menu, but it produces more accessible and more clean code. The most tedious part of creating CSS sprites for menu navigation is aligning the static (in-active) and hover (active) images. This script solves this problem by taking two images and merging them into one. I hope this increases your productivity and creates a more standards-compliant web.</p>
<p><span id="more-132"></span></p>
<p>There are <a href="http://spritegen.website-performance.org/">online CSS sprite generators</a> out there. My Photoshop script is not as remarkable as these 20 image sprites, but it’s much simpler, and you can assign a keyboard shortcut to it. Also, all my sites are designed in Illustrator which is a slightly different work flow than most. I find that Photoshop is an awful layout program.</p>
<p><a href="/blog/wp-content/uploads/2008/11/CSSsprite.jsx">Download CSSsprite.jsx</a></p>
<p><strong>Installation<br />
</strong></p>
<p>A JSX script is similar to a Photoshop plugin or an action, but are commands in Photoshop&#8217;s JavaScript based script interface. Download and copy this script within the Presets&gt;&gt;Scripts folder of your Photoshop application folder:</p>
<ul>
<li>OS-X: Macintosh HD/Applications/Adobe Photoshop CS3/Presets/Scripts/</li>
<li>Windows: Program Files/Photoshop CS/Presets/Scripts</li>
</ul>
<p>The Script will appear under File&gt;&gt;Scripts&gt;&gt;CSSsprite on the menu. You can assign a keyboard shortcut to this script. I prefer Control+Command+S. This shortcut fits well with the Save for Web shortcut, Command+Alt+Shift+S.</p>
<p><strong>Usage<br />
</strong></p>
<p>Open two files (and <em>only</em> two files) with the same height and width (if they are different sizes, the offset of your hover button state will not be half of the height). Select the non-hover background image, making it active&#8211;thus making the hover background image de-active. Run the script from the Scripts menu mentioned above. This will place the hover background image on the bottom of the sprite. This script does not support adding a third state to the sprite, but you could add a third <em>and</em> fourth state. To do this, first combine the third and fourth state, and then combine that image with the normal/hover sprite.</p>
<p><strong>For your information: States for this script</strong></p>
<p>The following is a list of Photoshop commands that are executed in this script:</p>
<ul>
<li>Convert Image Mode to RGB</li>
<li>Make horizontal guide at 100% of canvas height</li>
<li>Switch to inactive document (-1 in document array)</li>
<li>&#8220;Duplicate Layer. . .&#8221; Layer Menu via right click</li>
<li>Switch back to inactive document (+1 in document array)</li>
<li>Double canvas size vertically</li>
<li>Transform/Move top layer down (50% of canvas size)</li>
<li>Zoom In (twice)</li>
</ul>
<p><strong>Result<br />
</strong>This gives you a two-layered Photoshop file with second layer the CSS hover layer. Save the file as GIF, PNG, or JPEG using File&gt;&gt;Save for Web.</p>
<p><strong>Notes<br />
</strong>Adobe Photoshop JavaScript is the only cross-platform scripting language for Photoshop. <em>This script was only tested Photoshop CS3 Extended (Mac)</em>. Our firm does not use Photoshop for web layout&#8211;only for image manipulation. We use Illustrator for layout.</p>
<p>I would like to thank the creators of <a href="http://blogs.adobe.com/crawlspace/2006/05/installing_and_1.html">ScriptingListenerJS</a> and <a href="http://ps-scripts.cvs.sourceforge.net/viewvc/ps-scripts/xtools/xapps/">ActionToJavaScript</a>.</p>
<p>You may be interested in this <a href="http://arnaumarch.com/en/sprites.html">PhotoShop script that creates a sprite from all the images in a folder</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactivellama.com/blog/archives/photoshop-script-combine-two-images-css-hover-css-sprite/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Coding faster and easier within your browser: CSS, HTML, Javascript</title>
		<link>http://www.interactivellama.com/blog/archives/make-coding-easier-css-html-javascript/</link>
		<comments>http://www.interactivellama.com/blog/archives/make-coding-easier-css-html-javascript/#comments</comments>
		<pubDate>Tue, 01 May 2007 14:24:02 +0000</pubDate>
		<dc:creator>Stephen James</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[Productivity & Workflow]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[block_level_elements]]></category>
		<category><![CDATA[cascading_style_sheets]]></category>
		<category><![CDATA[css_elements]]></category>
		<category><![CDATA[css_style_sheet]]></category>
		<category><![CDATA[deprecated_elements]]></category>
		<category><![CDATA[element]]></category>
		<category><![CDATA[faux_pas]]></category>
		<category><![CDATA[firefox_extension]]></category>
		<category><![CDATA[firefox_extensions]]></category>
		<category><![CDATA[geocities]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[mediocre_job]]></category>
		<category><![CDATA[mozilla_firefox]]></category>
		<category><![CDATA[myspace]]></category>
		<category><![CDATA[validate_html]]></category>
		<category><![CDATA[web_developer]]></category>
		<category><![CDATA[web_page]]></category>
		<category><![CDATA[wysiwyg_editor]]></category>

		<guid isPermaLink="false">http://smjdesign.com/designwell/2007/05/01/make-coding-easier-css-html-javascript/</guid>
		<description><![CDATA[I have not tested Dreamweaver CS3, but prior versions of the program do a mediocre job of displaying CSS correctly. For instance, div tags do not always display correctly without inline style tags&#8211;which we all know is such a coding faux pas. This has led to a departure from using a WYSIWYG editor and to [...]]]></description>
			<content:encoded><![CDATA[<p>I have not tested Dreamweaver CS3, but prior versions of the program do a mediocre job of displaying CSS correctly. For instance, div tags do not always display correctly without inline style tags&#8211;which we all know is such a coding faux pas. This has led to a departure from using a WYSIWYG editor and to using the browser to construct webpages. Below are the best aids I have found in debugging and editing webpages in the browser Mozilla FireFox.<span id="more-94"></span></p>
<p><strong>Suggested extensions for making coding easier</strong></p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer</a></p>
<p>The Web Developer FireFox extension was the first FireFox extension I ever installed. It was mid-2004, and I was frustrated with Cascading Style Sheets. I was using CSS, not for the first time, but I was using CSS for margins and padding and widths&#8211; all those things we used spacer gifs and tables for back in the web&#8217;s infancy&#8211;for the first time. The sole reason that I would have even paid for this extension was the Outline tab and it&#8217;s &#8220;Outline Block Level Elements&#8221; The fact that I could actually know where one element ended and another begin was a godsend. There are many more uses for the plug-in. Almost too many to name here. The highlights that I use (or used to use) regularly are:</p>
<ul>
<li>Outline and highlight block level elements, deprecated elements, frames, links, and other tag and CSS elements</li>
<li>Disable images</li>
<li>View the CSS for a particular element by clicking on that element</li>
<li>Disable cache and cookies</li>
<li>Display various page and screen sizes for testing (what does this site look like on an 800&#215;600?)</li>
<li>Disable background images (ever browsed though MySpace, which reminds GeoCities circa 1997)</li>
<li>View the CSS for a web page while browsing</li>
<li>Edit the CSS style sheet of web page without reloading</li>
<li>Validate HTML, CSS, feeds, and links</li>
</ul>
<p><a href="http://www.getfirebug.com/">Firebug</a></p>
<p>I have only mentioned Web Developer first because it was my gateway drug of FireFox extensions. I use Firebug more often now that CSS is even more prevalent then it was in 2004, thus simplifying the HTML and making hand-coding HTML much easier. Firebug focuses solely on the content of a page and doesn&#8217;t have the browser related features such as disabling the cache or resizing the browser window. It shines when you want to tweak HTML, CSS and JavaScript contained in a page, all on the fly.</p>
<p>The way Firebug works is by clicking the &#8220;Inspect&#8221; button and selecting an element on the page. The HTML and CSS associated with that element is then displayed. The inheritance and overriding of CSS attributes can be seen (hence the cascading in cascading style sheets) and any CSS attributes can be edited or disabled.</p>
<p>Firebug helped make my CSS leaner. Before I discovered it, I often ignored the inheritance features of CSS and repeated the same attributes numerous times, since inheritance is an abstraction that is hard to remember without either modeling (which Firebug does) or precise documentation. Firebug shows this inheritance, thus making the relationships between.</p>
<p>Firebug will measure and illustrate all the offsets, margins, padding, and sizes for you&#8211;similar to what you would have in a WYSIWYG editor. Since offsets, margins, and padding can often overlap, there is a &#8220;Layout&#8221; tab that allow editing of these qualities and shows their relationships.</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/532">Link Checker</a></p>
<p>If you&#8217;ve ever clicked through a large site in order to test all the hyperlinks, you&#8217;ll find this simple add-on convenient and productive. It will highlight valid and invalid links of a page. Once Link Checker is installed, you&#8217;ll have to add the toolbar button yourself.</p>
<p><a href="https://addons.mozilla.org/firefox/539/">Measure It</a></p>
<p>You could use the guides in Firebug, but most times, one just wants to quickly estimate the correct margin or padding. This add-on gives the height and width in pixels of a rectangle that can be drawn atop the webpage.</p>
<p><a href="https://addons.mozilla.org/firefox/271">ColorZilla</a></p>
<p>ColorZilla adds an eyedropper tool to the status bar that allows color sampling and copies RGB values (in five different ways) to the clipboard. This means you don&#8217;t have to go back to Illustrator or PhotoShop to grab RGB values for your CSS.</p>
<p><strong>A note about Internet Explorer</strong></p>
<p>Unfortunately, the majority of web users browse with Microsoft Internet Explorer and thus testing a site with IE is necessary. At work, I create my websites on an Apple Macintosh and have an old Dell laptop with IE 6 installed to test websites with Internet Explorer. A tool that I have not used extensively, but does help sometimes in debugging under IE is <a href="http://blogs.msdn.com/ie/archive/2005/09/16/469686.aspx">Internet Explorer Developer Toolbar</a>.</p>
<p><strong>Diagnostic Styling</strong></p>
<p>This isn&#8217;t a plug-in or browser add-on. Using <a href="http://meyerweb.com/eric/thoughts/2007/09/07/diagnostic-styling/">Diagnostic CSS Styling</a> helps point out, for the most part, incomplete tagging. CSS allows you to style based on attribute values. For example, if you use &#8220;#&#8221; for links that you do not have a URL for, then you can highlight these with a red border.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactivellama.com/blog/archives/make-coding-easier-css-html-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML/Flash: Use more than Arial and Times New Roman</title>
		<link>http://www.interactivellama.com/blog/archives/html-use-more-than-arial-and-times-new-roman/</link>
		<comments>http://www.interactivellama.com/blog/archives/html-use-more-than-arial-and-times-new-roman/#comments</comments>
		<pubDate>Tue, 06 Jun 2006 14:29:00 +0000</pubDate>
		<dc:creator>Stephen James</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[creative_director]]></category>
		<category><![CDATA[database_driven]]></category>
		<category><![CDATA[designers]]></category>
		<category><![CDATA[fancy_font]]></category>
		<category><![CDATA[headlines]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[image_generation]]></category>
		<category><![CDATA[pixel_font]]></category>
		<category><![CDATA[regress]]></category>
		<category><![CDATA[scalable]]></category>
		<category><![CDATA[script_package]]></category>
		<category><![CDATA[sifr]]></category>
		<category><![CDATA[typeface]]></category>
		<category><![CDATA[uses_javascript]]></category>
		<category><![CDATA[web_server]]></category>

		<guid isPermaLink="false">http://smjdesign.com/designwell/?p=76</guid>
		<description><![CDATA[To the designer, it&#8217;s a pain only using Arial and Times New Roman for headlines (well, the MacHead designers are probably using Helvetica and Times, but I regress. . .) , so one uses images. The problem is that images are static unless you have an image generation script package installed on your web server [...]]]></description>
			<content:encoded><![CDATA[<p>To the designer, it&#8217;s a pain only using Arial and Times New Roman for headlines (well, the MacHead designers are probably using Helvetica and Times, but I regress. . .) , so one uses images. The problem is that images are static unless you have an image generation script package installed on your web server to create images on-the-fly.</p>
<p>So what&#8217;s one to do?</p>
<p>A friend of mine actually sent me a link to Mike Davidson&#8217;s site on <a href="http://www.mikeindustries.com/sifr/">sIFR 2.0</a> (Scalable Inman Flash Replacement) two years ago. I had forgotten about it until my creative director wanted a headline in a pixel font in a database driven site.</p>
<p>The concept</p>
<p>sIFR can replace short amounts of text with text rendered in the typeface you choose&#8211;whether or not your users have the font installed on their computer. A flash movie is created on the client side and uses JavaScript to pass text to it from the HTML (that&#8217;s correct, no coding the text twice). That means with a few lines of Javascript, you can use any fancy font you want for headlines and pullout quotes.</p>
<p>&#8211;Stephen M. James<br />
<a href="http://www.smjdesign.com/">www.smjdesign.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactivellama.com/blog/archives/html-use-more-than-arial-and-times-new-roman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

