<?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>tinySrc &#187; James Pearce</title>
	<atom:link href="http://tinysrc.net/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://tinysrc.net</link>
	<description></description>
	<lastBuildDate>Thu, 02 Jun 2011 19:43:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>tinySrc supports Data URLs</title>
		<link>http://www.sencha.com/blog</link>
		<comments>http://www.sencha.com/blog#comments</comments>
		<pubDate>Fri, 04 Mar 2011 01:33:26 +0000</pubDate>
		<dc:creator>James Pearce</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tinysrc.net/?p=119</guid>
		<description><![CDATA[tinySrc now provides support for encoding images as Data URLs. These are a way to encode binary images into the src of an &#60;img&#62; tag (or into a CSS stylesheet).
Creating Data URLs is actually just a simple matter of base-64 encoding and prefixing the image &#8211; and for server-side or build-time usage, easy tools abound to do [...]]]></description>
			<content:encoded><![CDATA[<p>tinySrc now provides support for encoding images as Data URLs. These are a way to encode binary images into the src of an &lt;img&gt; tag (or into a CSS stylesheet).</p>
<p>Creating Data URLs is actually just a simple matter of base-64 encoding and prefixing the image &#8211; and for server-side or build-time usage, easy tools abound to do this.</p>
<p>But on the browser-side, creating a Data URL from a binary image is a bit fiddly: normally involving painting an already-loaded image onto a &lt;canvas&gt; element, and then calling toDataURL on it. What&#8217;s more, that technique doesn&#8217;t work when the image originally came from another domain (thanks to <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#security-with-canvas-elements">this</a>).</p>
<p>If you&#8217;re creating applications that cache images offline in localStorage, you need to get this base-64 serialization. If these images come from another server, tinySrc offers a technique that will work.</p>
<p>It&#8217;s most likely that this feature will be used in a JSONP context &#8211; where you are passed the encoded form in a local callback function. You&#8217;re recommended to read <a href="http://tinysrc.net/documentation/data-urls/">the documentation</a> &#8211; which includes a full sample doing just that.</p>
<p>Have fun and let me know if this API works out for you. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sencha.com/blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tinySrc is now part of Sencha</title>
		<link>http://www.sencha.com/blog/previewing-sencha-io/</link>
		<comments>http://www.sencha.com/blog/previewing-sencha-io/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 23:27:16 +0000</pubDate>
		<dc:creator>James Pearce</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tinysrc.net/?p=101</guid>
		<description><![CDATA[I&#8217;m extremely pleased to announce that tinySrc has become part of Sencha, alongside such awesome projects as Raphaël JS, jQTouch, Connect, and InfoVis &#8211; as well, of course, as the company&#8217;s core products like Ext JS and the revolutionary mobile framework Sencha Touch.
tinySrc has been going from strength to strength over the last 18 months. I think [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m extremely pleased to announce that tinySrc has become part of <a href="http://sencha.com">Sencha</a>, alongside such awesome projects as <a href="http://raphaeljs.com/">Raphaël JS</a>, <a href="http://jqtouch.com/">jQTouch</a>, <a href="https://github.com/senchalabs/Connect">Connect</a>, and <a href="http://thejit.org/">InfoVis</a> &#8211; as well, of course, as the company&#8217;s core products like <a href="http://www.sencha.com/products/js/">Ext JS</a> and the revolutionary mobile framework <a href="http://www.sencha.com/products/touch/">Sencha Touch</a>.</p>
<p>tinySrc has been going from strength to strength over the last 18 months. I think its underlying growth is a reflection of the huge interest in developing for the mobile medium. Mobile web and app developers quickly realize they need to make sure that their graphical experience is correctly formatted for a wide range of screen-sizes and form factors.</p>
<p>There are no intentions to change the API and the way in which the tinySrc runs, so you can continue to use it with confidence.</p>
<p>I think you&#8217;ll see lots of new cool features coming in the future though, so stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sencha.com/blog/previewing-sencha-io/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated screen defaulting</title>
		<link>http://www.sencha.com/blog</link>
		<comments>http://www.sencha.com/blog#comments</comments>
		<pubDate>Fri, 15 Oct 2010 15:48:54 +0000</pubDate>
		<dc:creator>James Pearce</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tinysrc.net/?p=99</guid>
		<description><![CDATA[Today we made a small change to the screen-size logic in tinySrc.
Previously, if the DeviceAtlas database did not know the screen-size of the browser requesting the image, it would default the value to 120 pixels.
This very rarely happens for mobile devices, but is a common occurrence for desktop browsers (where physical screen or window size can never [...]]]></description>
			<content:encoded><![CDATA[<p>Today we made a small change to the screen-size logic in tinySrc.</p>
<p>Previously, if the DeviceAtlas database did not know the screen-size of the browser requesting the image, it would default the value to 120 pixels.</p>
<p>This very rarely happens for mobile devices, but is a common occurrence for desktop browsers (where physical screen or window size can never be statically and meaningfully keyed off user-agent).</p>
<p>As a result, any tinySrc images for which you had not specified a dimension would appear constrained to 120px on desktop browsers. This looks strange of course, and makes it difficult for you to re-use markup and images across different broad device types.</p>
<p>Starting today, this defaulting has been refined. If the screen size is not known, we try further to identify whether the device is a mobile device or a desktop device. In the former case, we continue to default to 120px, but in the latter, we crank the default size up to 980px (which is the default iPhone viewport size, as it happens).</p>
<p>Since DeviceAtlas is extremely reliable about distinguishing mobile from non-mobile devices (even when the screen size is not known), this vastly improves the default experience, particularly for desktop browsers.</p>
<p>In summary, you should not need to make any changes to your code, and the API has not altered. The experience your mobile users receive will not have changed, and the experience your desktop users receive should have improved. And this only affects adaptive sizing: if you use explicit dimensions in your tinySrc usage, then the service&#8217;s behavior will not have changed at all.</p>
<p>Have fun and let us know if you have any questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sencha.com/blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A few enhancements</title>
		<link>http://www.sencha.com/blog</link>
		<comments>http://www.sencha.com/blog#comments</comments>
		<pubDate>Thu, 07 Oct 2010 21:03:42 +0000</pubDate>
		<dc:creator>James Pearce</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tinysrc.net/?p=94</guid>
		<description><![CDATA[As of today, we&#8217;ve made a few small changes to the tinySrc engine:

Support for non-Latin characters in URLs
This was causing issues for Internationalized Domain Names and file names containing Chinese characters, for example.
Auto-correction of corrupted URL scheme
A small portion of requests arriving at our server were for http:/ instead of http://. These could have been [...]]]></description>
			<content:encoded><![CDATA[<p>As of today, we&#8217;ve made a few small changes to the tinySrc engine:</p>
<ul>
<li><strong>Support for non-Latin characters in URLs</strong><br />
This was causing issues for Internationalized Domain Names and file names containing Chinese characters, for example.</li>
<li><strong>Auto-correction of corrupted URL scheme</strong><br />
A small portion of requests arriving at our server were for http:/ instead of http://. These could have been markup errors, or more likely a correction to the URL that some mobile browsers were making, thinking that // was in error. We now re-insert the second / if it&#8217;s required to make the URL sensible.</li>
<li><strong>HTTP error proxying</strong><br />
If your original image returns an error code (such as an HTTP 404 or 500 error), we relay that onto the user&#8217;s device. (Previously we returned a blank response with a 200 status code)</li>
<li><strong>Increased error verbosity</strong><br />
Occasionally tinySrc encounters corrupt or extremely large images and can&#8217;t resize them. When the resizing engine fails, we provide a stack dump. Users never see this, because it&#8217;s not valid image data &#8211; but it allows you to debug what might have gone wrong with your image, and escalate it to us if necessary.</li>
</ul>
<p>The good news is that none of this requires any changes to your code &#8211; the API has not changed at all.</p>
<p>tinySrc has picked up some great press recently, and we&#8217;re now more popular than ever! I hope you continue to find this service useful and let us know if you have any feedback.</p>
<p>Thanks for your support. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sencha.com/blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New! Adaptive sizing</title>
		<link>http://www.sencha.com/blog</link>
		<comments>http://www.sencha.com/blog#comments</comments>
		<pubDate>Sat, 04 Apr 2009 21:37:23 +0000</pubDate>
		<dc:creator>James Pearce</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tinysrc.net/?p=87</guid>
		<description><![CDATA[Now you can have your images automatically scaled for every type of mobile phone on earth.
We&#8217;re very exciting to announce that we&#8217;ve partnered with the DeviceAtlas team over at dotMobi to bring you a great new capability for tinySrc.
We call it &#8216;adaptive sizing&#8217;.
There are thousands of different types of mobile handsets, and they all have [...]]]></description>
			<content:encoded><![CDATA[<p>Now you can have your images automatically scaled for every type of mobile phone on earth.</p>
<p>We&#8217;re very exciting to announce that we&#8217;ve partnered with the <a href="http://deviceatlas.com" target="_blank">DeviceAtlas</a> team over at dotMobi to bring you a great new capability for <em>tinySrc</em>.</p>
<p>We call it &#8216;adaptive sizing&#8217;.</p>
<p>There are thousands of different types of mobile handsets, and they all have different screen sizes. With <em>tinySrc&#8217;s</em> adaptive sizing, that&#8217;s now just one thing less to worry about when you&#8217;re developing a mobile web site. Take a look:</p>
<pre>&lt;img
 src='http://i.tinysrc.mobi/http://mysite.com/myimage.png'
 alt='My image, perfectly sized to the device screen'
/&gt;</pre>
<p>By default, tinySrc will now use the screen width and height values of the visiting phone to constrain your images. So you can be sure there won&#8217;t be any unpleasant scrollbars where there shouldn&#8217;t be.</p>
<p>You can also indicate that you want your images to take up specific portions of a mobile screen. Use the tinySrc API to deduct pixels from the screen size (perhaps to leave a deliberate border), or scale images to a given percentage of the screen (perhaps to create a well-aligned tiling effect).</p>
<pre>&lt;img
 src='http://i.tinysrc.mobi/x50/x50/http://mysite.com/myimage.png'
 alt='My image, in a quadrant of the screen'
/&gt;</pre>
<p>Pretty easy, huh?</p>
<p>All the details of the adaptive sizing feature are in a new section of the <a href="/documentation/adaptive-sizing">documentation</a>, and we&#8217;d love to hear your feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sencha.com/blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site upgrade</title>
		<link>http://www.sencha.com/blog</link>
		<comments>http://www.sencha.com/blog#comments</comments>
		<pubDate>Thu, 02 Apr 2009 21:15:51 +0000</pubDate>
		<dc:creator>James Pearce</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.tinysrc.mobi/?p=51</guid>
		<description><![CDATA[We&#8217;ve just upgraded the tinySrc site.
We&#8217;ve already had some amazing interest in the service as a whole &#8211; so we felt it deserved a lick of paint.
This blog will be the main way that we stay in touch with our users and listen to your needs and feedback. Please feel very comfortable using the blog [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve just upgraded the <em>tinySrc</em> site.</p>
<p>We&#8217;ve already had some amazing interest in the service as a whole &#8211; so we felt it deserved a lick of paint.</p>
<p>This blog will be the main way that we stay in touch with our users and listen to your needs and feedback. Please feel very comfortable using the blog to let us know how, when, and where you are using the service!</p>
<p>Many thanks for your support so far!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sencha.com/blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

