<?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>wide thoughts &#187; WideImage</title>
	<atom:link href="http://kozak.si/widethoughts/tag/wideimage/feed/" rel="self" type="application/rss+xml" />
	<link>http://kozak.si/widethoughts</link>
	<description>a blog of one of those ... software developer creatures</description>
	<lastBuildDate>Sat, 31 Jul 2010 12:30:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>wideimage problems?</title>
		<link>http://kozak.si/widethoughts/2009/09/19/wideimage-problems/</link>
		<comments>http://kozak.si/widethoughts/2009/09/19/wideimage-problems/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 18:33:15 +0000</pubDate>
		<dc:creator>Gašper</dc:creator>
				<category><![CDATA[WideImage]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=526</guid>
		<description><![CDATA[Just looked at search terms leading people to my blog and found a few of &#8220;wideimage problem php&#8221;. Just to let you know, there are several support channels available if you get stuck using the library or find a bug. So, please, don&#8217;t let me guess what your problems are.  
]]></description>
			<content:encoded><![CDATA[<p>Just looked at search terms leading people to my blog and found a few of &#8220;wideimage problem php&#8221;. Just to let you know, there are <a href="http://wideimage.sourceforge.net/support/">several support channels available</a> if you get stuck using the library or find a bug. So, please, don&#8217;t let me guess what your problems are. <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kozak.si/widethoughts/2009/09/19/wideimage-problems/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WideImage: new release</title>
		<link>http://kozak.si/widethoughts/2009/09/04/wideimage-new-release/</link>
		<comments>http://kozak.si/widethoughts/2009/09/04/wideimage-new-release/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 18:10:04 +0000</pubDate>
		<dc:creator>Gašper</dc:creator>
				<category><![CDATA[WideImage]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=478</guid>
		<description><![CDATA[It&#8217;s friday evening and I&#8217;ve just released a new version of WideImage. I&#8217;m such a geek.
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s friday evening and I&#8217;ve just <a href="http://wideimage.sourceforge.net/2009/09/wideimage-9-09-04-released/">released a new version of WideImage</a>. I&#8217;m such a geek.</p>
]]></content:encoded>
			<wfw:commentRss>http://kozak.si/widethoughts/2009/09/04/wideimage-new-release/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WideImage 1.0 beta 2 released</title>
		<link>http://kozak.si/widethoughts/2009/02/19/wideimage-10-beta-2-released/</link>
		<comments>http://kozak.si/widethoughts/2009/02/19/wideimage-10-beta-2-released/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 22:59:28 +0000</pubDate>
		<dc:creator>Gašper</dc:creator>
				<category><![CDATA[WideImage]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=190</guid>
		<description><![CDATA[I&#8217;ve just released it. You can download it here. Optionally, you can use the 1.0-beta-2 svn tag.
This is the last release before RC1, which is coming soon (Q1 2009 expected). The main purpose for this release is stabilization, new unit tests, bug fixes, and some features. The online documentation is left behind (mostly still for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just <a href="http://wideimage.sourceforge.net/wiki/WideImageRelease10Beta2">released it</a>. You can download it <a href="https://sourceforge.net/project/showfiles.php?group_id=190526&#038;package_id=223526&#038;release_id=662505">here</a>. Optionally, you can use the <a href="https://wideimage.svn.sourceforge.net/svnroot/wideimage/tags/1.0-beta-2">1.0-beta-2 svn tag</a>.</p>
<p>This is the last release before RC1, which is coming soon (Q1 2009 expected). The main purpose for this release is stabilization, new unit tests, bug fixes, and some features. The online documentation is left behind (mostly still for beta 1), but no major API changes were made. The inline docs hold a more up-to-date documentation.</p>
<p><strong>Magic dimensions</strong><br />
WideImage now supports an extended notation of dimensions for some operations (resize, crop, merge, &#8230;). The possible uses are:</p>
<ul>
<li>integer/float &#8211; literal value is taken for coordinate</li>
<li>percent string &#8211; the coordinate in percent of the dimension</li>
<li>center-relative coordinate &#8211; specify the coordinate relative to center, rather than absolute</li>
</ul>
<p>Examples:</p>
<pre code="PHP">
// crops a 50x40 rectangle, starting at 10, 20
$cropped = $img->crop(10, 20, 50, 40);

// crops a 50% (half of the width) x20 rectangle,
//   starting at 0, 20% (20% of the height)
$cropped = $img->crop(0, '20%', '50%', 20);

// crops a 100x50 rectangle directly
//   in the middle of the image (center-relative coordinates are used)
$cropped = $img->crop('c-50', 'c-25', 100, 50);
</pre>
<p>These &#8220;magic dimensions&#8221; will acquire a less silly name (smart coordinates) in RC1, and will be developed further.</p>
<p><strong>Loading from files without extension/mime-type</strong><br />
Is now supported. That&#8217;s it <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I&#8217;ve decided to use imagecreatefromstring(file_get_contents($filename)), so now the image format is detected automatically. No more format or mime-type hinting is necessary. The other side-effect is that now WideImage suddenly supports all GD2-supported formats for reading. For writing, it&#8217;s still GIF, JPEG, PNG, GD, GD2. BMP is scheduled for RC1, but may end up in RC2.</p>
<p><strong>Other stuff</strong></p>
<ul>
<li>AutoCrop &#8212; See demos in the package for details.</li>
<li>PS font support added</li>
<li>Canvas magic supported: the Canvas object now supports <em>all</em> functions that start with &#8220;image&#8221;, and you don&#8217;t have to pass an image handle to it.
<p>For example, to draw a red line:</p>
<pre code="PHP">
// you had to do this:
imageline($image->getHandle(), 0, 0, 50, 50, $image->allocateColor(255, 0, 0));
// now you can do this:
$canvas = $image->getCanvas();
$canvas->line(0, 0, 50, 50, $image->allocateColor(255, 0, 0));
</pre>
<p>At first, it may not seem much, and maybe it isn&#8217;t. But at least I can say that Canvas supports custom drawing. <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p>All in all, this is not a feature release. If you&#8217;re annoyed by bugs in beta1, or are looking forward to try AutoCrop, then upgrade, otherwise it&#8217;s not really necessary. <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kozak.si/widethoughts/2009/02/19/wideimage-10-beta-2-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WideImage class/file naming scheme will change in RC1</title>
		<link>http://kozak.si/widethoughts/2009/02/13/wideimage-class-file-naming-scheme-will-change-in-rc1/</link>
		<comments>http://kozak.si/widethoughts/2009/02/13/wideimage-class-file-naming-scheme-will-change-in-rc1/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 22:18:40 +0000</pubDate>
		<dc:creator>Gašper</dc:creator>
				<category><![CDATA[WideImage]]></category>

		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=166</guid>
		<description><![CDATA[I&#8217;ve been thinking a lot about this, and I&#8217;ve decided that I&#8217;ll change the class/file naming pattern in WideImage RC1 at the cost of breaking BC. There are two reasons for that: standardization and namespaces.
While I&#8217;m not really fond of PEAR-like naming (I prefer class names short and neat), it&#8217;s the current unofficial standard for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been thinking a lot about this, and I&#8217;ve decided that I&#8217;ll <a href="https://sourceforge.net/tracker2/?func=detail&#038;aid=1900102&#038;group_id=190526&#038;atid=933715">change the class/file naming pattern in WideImage RC1</a> at the cost of breaking BC. There are two reasons for that: standardization and namespaces.</p>
<p>While I&#8217;m not really fond of PEAR-like naming (I prefer class names short and neat), it&#8217;s the current unofficial standard for user-base packages. Plus, class names can only be short and pretty if you can ensure you&#8217;ll have no class-name collisions. This means that only classes that are very specific (i.e. DirectoryIterator), or end-user can have such names, not the ones that come with libraries, or are introduced in the language itself when it&#8217;s already mature (PHP&#8217;s Date class collision, hint hint).</p>
<p>The other upside to this change is that it&#8217;s namespace-ready. When PHP 5.3 will be installed by most hosts, packages will start making a move towards the use of namespaces, and WideImage will be no exception. Changing the naming scheme now ensures that the users will have time to adopt the new scheme and will not have much trouble when the change towards namespaces is made.</p>
<p>Along with this change I&#8217;ll also drop support for autoloaders in WideImage. Autoloading is a great feature, but isn&#8217;t the right tool to use here, and caused a few problems when the library was embedded within some other project that already had autoloaders. So, the files will be included directly from WideImage.php, which shouldn&#8217;t cause much of an overhead, since the number of files is rather small.</p>
<p>Hopefully, I&#8217;ll also manage to <a href="https://sourceforge.net/tracker2/?func=detail&#038;aid=2075780&#038;group_id=190526&#038;atid=933715">put all this into a PEAR package</a>, although for now not through the official PEAR repository. I believe these changes will make it easier for the developers to install and use this library. The price will be quite high, because backwards-compatibility will be broken by these changes, but it&#8217;s better now than never.</p>
<p>When are the changes expected? I&#8217;ll soon publish a beta2 version of the library, which will still have the old scheme, but will also create a RC1 branch in which I&#8217;ll make the changes. Both releases are scheduled in Q1 2009, which means quite soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://kozak.si/widethoughts/2009/02/13/wideimage-class-file-naming-scheme-will-change-in-rc1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>hi, a/s/l</title>
		<link>http://kozak.si/widethoughts/2009/02/07/hi-asl/</link>
		<comments>http://kozak.si/widethoughts/2009/02/07/hi-asl/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 13:14:17 +0000</pubDate>
		<dc:creator>Gašper</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[WideImage]]></category>

		<guid isPermaLink="false">http://sinatra/projects/wordpress/?p=7</guid>
		<description><![CDATA[I&#8217;ve decided to start up a blog where I&#8217;m going to write about my developing activities, experiences and thoughts. This will also serve as a main blog for my open source project WideImage, an object-oriented PHP5 library for managing images.
I&#8217;ve also written a bit about myself, so you can have a look-see of who I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to start up a blog where I&#8217;m going to write about my developing activities, experiences and thoughts. This will also serve as a main blog for my open source project <a href="projects/wideimage">WideImage</a>, an object-oriented PHP5 library for managing images.</p>
<p>I&#8217;ve also written a bit <a href="about">about myself</a>, so you can have a look-see of who I am.</p>
]]></content:encoded>
			<wfw:commentRss>http://kozak.si/widethoughts/2009/02/07/hi-asl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
