<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title>GD over FastCGI</title>
  <link href="http://www.gdofcgi.com//atom.xml" rel="self"/>
  <link href="http://www.gdofcgi.com//"/>
  <updated>2011-09-25T15:57:40-04:00</updated>
  <id>http://www.gdofcgi.com//</id>
  <author>
    <name>Savonix</name>
    
  </author>

  
  <entry>
    <title>@font-face</title>
    <link href="http://www.gdofcgi.com//blog/2010/06/15/font-face/"/>
    <updated>2010-06-15T11:43:13-04:00</updated>
    <id>http://www.gdofcgi.com//blog/2010/06/15/font-face</id>
    <content type="html">&lt;p&gt;CSS3 ushers in a myriad of cool, new capabilities for making the web an even &lt;em&gt;cooler&lt;/em&gt; resource, and a couple of them are similar to gdofcgi functions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;@font-face&lt;/li&gt;
&lt;li&gt;image resizing&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;&lt;strong&gt;@font-face&lt;/strong&gt;&lt;/h2&gt;

&lt;pre class=&quot;sh_css&quot;&gt;
@font-face {
  font-family: &#8216;coolfont&#8217;;
  src: url(&#8216;coolfont.eot&#8217;);  /* IE6+ */
  src:
        url(&#8216;coolfont.woff&#8217;) format(&#8216;woff&#8217;),  /* FF3.6 */
        url(&#8216;coolfont.ttf&#8217;) format(&#8216;truetype&#8217;);  /* Saf3+,Chrome,FF3.5,Opera10+ */
}
&lt;/pre&gt;


&lt;h2&gt;&lt;strong&gt;Image Resizing&lt;/strong&gt;&lt;/h2&gt;

&lt;pre class=&quot;sh_css&quot;&gt;
-ms-interpolation-mode: bicubic: introduce in IE7
image-rendering: optimizeQuality: introduced in FireFox 3.6

-moz-transform: scale(sx[, sy])
-webkit-transform:scale(sx[, sy])
&lt;/pre&gt;


&lt;h2&gt;&lt;strong&gt;Impact&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;Will this affect the utility of gdofcgi? Not really, as far as I can see. Some fonts don&amp;#8217;t have licenses which allow embedded in user browsers, and it may be faster to use gdofcgi in some scenarios.&lt;/p&gt;

&lt;p&gt;Also, image resizing &lt;em&gt;en mass&lt;/em&gt; will definitely be more efficient by doing it once on the server, instead of every time a client loads the image.&lt;/p&gt;

&lt;h3&gt;Links&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://stackoverflow.com/questions/2303690/resizing-an-image-in-an-html5-canvas&quot;&gt;http://stackoverflow.com/questions/2303690/resizing-an-image-in-an-html5-canvas&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</content>
  </entry>
  
  <entry>
    <title>New Feature: Image Resizing</title>
    <link href="http://www.gdofcgi.com//blog/2010/05/20/new-feature-image-resizing/"/>
    <updated>2010-05-20T12:43:43-04:00</updated>
    <id>http://www.gdofcgi.com//blog/2010/05/20/new-feature-image-resizing</id>
    <content type="html">&lt;p&gt;Based on another NGINX module, the image filter module, I&amp;#8217;ve created a new binary for resizing images.&lt;/p&gt;

&lt;p&gt;It&amp;#8217;s extremely new and untested, but its available in the repository.&lt;/p&gt;

&lt;p&gt;I&amp;#8217;m pretty excited about it, as this is something I&amp;#8217;ve wanted to setup for a long time.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>No Anti-Aliasing for Circles?</title>
    <link href="http://www.gdofcgi.com//blog/2010/05/19/no-anti-aliasing-for-circles/"/>
    <updated>2010-05-19T20:44:58-04:00</updated>
    <id>http://www.gdofcgi.com//blog/2010/05/19/no-anti-aliasing-for-circles</id>
    <content type="html">&lt;p&gt;I&amp;#8217;m implementing some new ideas into GD over FastCGI and one of them is based on an NGINX module for creating gif circles.&lt;/p&gt;

&lt;p&gt;Why do such a thing? They can be used to create rounded corners on HTML elements!&lt;/p&gt;

&lt;p&gt;Unfortunately, and surprisingly, GD doesn&amp;#8217;t support anti-aliasing alpha channels! Its surprising because it handles anti-aliasing with TrueType fonts so incredibly well.&lt;/p&gt;

&lt;p&gt;I guess a workaround could be to find a TrueType font that has an exact circle character and use that instead of manually drawing a circle.&lt;/p&gt;

&lt;p&gt;Alas, its not really necessary at all, because the only browser which really needs something like this is Microsoft Internet Explorer, and the versions which need it don&amp;#8217;t even support PNGs with alpha channels (out of the box).&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>New Parameter: Padding</title>
    <link href="http://www.gdofcgi.com//blog/2010/05/19/new-parameter-padding/"/>
    <updated>2010-05-19T18:58:28-04:00</updated>
    <id>http://www.gdofcgi.com//blog/2010/05/19/new-parameter-padding</id>
    <content type="html">&lt;p&gt;This is useful for some wacky fonts which don&amp;#8217;t work well with the brect sizing technique with libgd.&lt;/p&gt;

&lt;p&gt;Right now it adds the padding to all dimensions, but I&amp;#8217;m thinking about setting up settings for left, right, top and bottom.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Finally Moved to Github</title>
    <link href="http://www.gdofcgi.com//blog/2010/05/19/finally-moved-to-github/"/>
    <updated>2010-05-19T16:49:19-04:00</updated>
    <id>http://www.gdofcgi.com//blog/2010/05/19/finally-moved-to-github</id>
    <content type="html">&lt;p&gt;I&amp;#8217;ve finally moved the source code for GDoFcgi to Github. Enjoy!&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://github.com/docunext/gdofcgi&quot;&gt;http://github.com/docunext/gdofcgi&lt;/a&gt;&lt;/p&gt;

&lt;pre class=&quot;sh_sh&quot;&gt;
git clone git://github.com/docunext/gdofcgi.git
&lt;/pre&gt;


&lt;p&gt;Feel free to fork, its explicitly licensed as BSD / MIT / GPL. You&amp;#8217;ll have to decide!&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>JS Function for Converting Hex2RGB</title>
    <link href="http://www.gdofcgi.com//blog/2010/02/24/js-function-for-converting-hex2rgb/"/>
    <updated>2010-02-24T05:18:22-05:00</updated>
    <id>http://www.gdofcgi.com//blog/2010/02/24/js-function-for-converting-hex2rgb</id>
    <content type="html">&lt;p&gt;I&amp;#8217;ve been looking for something like this:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://gist.github.com/278311&quot;&gt;http://gist.github.com/278311&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Requirements</title>
    <link href="http://www.gdofcgi.com//blog/2009/11/19/requirements/"/>
    <updated>2009-11-19T21:52:15-05:00</updated>
    <id>http://www.gdofcgi.com//blog/2009/11/19/requirements</id>
    <content type="html">&lt;p&gt;To Build GD over FastCGI:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;cdb&lt;/li&gt;
&lt;li&gt;libgd&lt;/li&gt;
&lt;li&gt;libfastcgi&lt;/li&gt;
&lt;li&gt;qDecoder&lt;/li&gt;
&lt;/ul&gt;

</content>
  </entry>
  
  <entry>
    <title>Bug Fixes and Lingering Questions</title>
    <link href="http://www.gdofcgi.com//blog/2009/11/19/bug-fixes-and-lingering-questions/"/>
    <updated>2009-11-19T21:47:58-05:00</updated>
    <id>http://www.gdofcgi.com//blog/2009/11/19/bug-fixes-and-lingering-questions</id>
    <content type="html">&lt;p&gt;I revisited GD over FCGI yesterday as some larger fonts were getting cropped. That is now fixed! I also updated a lot of the code to make the program more robust and less prone to failure.&lt;/p&gt;

&lt;p&gt;There are still some outstanding questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How should multiple / custom font folders get supported? Currently the path to the aenigma folder is hard-coded.&lt;/li&gt;
&lt;li&gt;Which standard CGI library should I use?&lt;/li&gt;
&lt;/ul&gt;

</content>
  </entry>
  
  <entry>
    <title>CGI Support</title>
    <link href="http://www.gdofcgi.com//blog/2009/10/23/cgi-support/"/>
    <updated>2009-10-23T17:55:58-04:00</updated>
    <id>http://www.gdofcgi.com//blog/2009/10/23/cgi-support</id>
    <content type="html">&lt;p&gt;I&amp;#8217;ve decided to add CGI support at some point in the future. Why?&lt;/p&gt;

&lt;p&gt;Here&amp;#8217;s why I&amp;#8217;ve decided to add CGI support:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;FastCGI processes consume memory while they run&lt;/li&gt;
&lt;li&gt;CGI binaries can be run by lots and lots of simple HTTP daemons&lt;/li&gt;
&lt;li&gt;Caching proxies can prevent unnecessarily starting and restarting gdofcgi processes&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I&amp;#8217;m planning to retain support for FastCGI of course!&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Works with Apache mod_fcgi and Lighttpd&#8217;s spawn-fcgi</title>
    <link href="http://www.gdofcgi.com//blog/2009/07/04/works-with-apache-mod-fcgi-and-lighttpds-spawn-fcgi/"/>
    <updated>2009-07-04T15:20:05-04:00</updated>
    <id>http://www.gdofcgi.com//blog/2009/07/04/works-with-apache-mod-fcgi-and-lighttpds-spawn-fcgi</id>
    <content type="html">I&amp;#8217;m pleased to report that I&amp;#8217;ve finally got GD over FastCGI working with both Apache mod_fcgi and Lighttpd&amp;#8217;s spawn-fcgi!&lt;br /&gt;&lt;br /&gt;There is still a lot of work to do regarding font paths, but I had to report this important milestone in the progress. &lt;br /&gt;  
</content>
  </entry>
  
  <entry>
    <title>GD over mod_fcgid</title>
    <link href="http://www.gdofcgi.com//blog/2009/06/23/gd-over-mod-fcgid/"/>
    <updated>2009-06-23T12:47:34-04:00</updated>
    <id>http://www.gdofcgi.com//blog/2009/06/23/gd-over-mod-fcgid</id>
    <content type="html">I&amp;#8217;m pleased to report I&amp;#8217;ve made a lot of progress towards getting gdofcgi working with Apache 2.2 and mod_fcgid. The major difference between using NGINX and Apache2 with FastCGI is that NGINX has a query string parser that can be used to pass variables to fastcgi servers. Its convenient, but not very portable.&lt;br /&gt;&lt;br /&gt;Instead, its now using qDecoder. qDecoder is a nice CGI / FastCGI library written in C which has a terrific license and lots of really helpful functions for a project like gdofcgi (as well as &lt;a href=&quot;http://www.dbrs2xml.com/site/&quot;&gt;dbrs2xml&lt;/a&gt;).&lt;br /&gt;  
</content>
  </entry>
  
  <entry>
    <title>GD over FastCGI Wiki</title>
    <link href="http://www.gdofcgi.com//blog/2009/06/18/gd-over-fastcgi-wiki/"/>
    <updated>2009-06-18T21:49:38-04:00</updated>
    <id>http://www.gdofcgi.com//blog/2009/06/18/gd-over-fastcgi-wiki</id>
    <content type="html">Its alive, using Ikiwiki: &lt;br /&gt;&lt;a href=&quot;http://www.gdofcgi.com/wiki/&quot;&gt;&lt;br /&gt;gdofcgi wiki&lt;/a&gt;&lt;br /&gt;  
</content>
  </entry>
  
  <entry>
    <title>New Project</title>
    <link href="http://www.gdofcgi.com//blog/2009/05/07/new-project/"/>
    <updated>2009-05-07T19:57:40-04:00</updated>
    <id>http://www.gdofcgi.com//blog/2009/05/07/new-project</id>
    <content type="html">This is a new project I&amp;#8217;m working on. Use of the GD library for graphics generation via FastCGI.&lt;br /&gt; 
</content>
  </entry>
  
</feed>

