<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 22:01:31 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Philip Norton's Blog: Creating A Thumbnail Of A Word Document With PHP And LiveDocx]]></title>
      <guid>http://www.phpdeveloper.org/news/16904</guid>
      <link>http://www.phpdeveloper.org/news/16904</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Philip Norton</i> shares a method for <a href="http://www.hashbangcode.com/blog/creating-thumbnail-word-document-php-and-livedocx-598.html">creating a thumbnail of a Word document</a> with the help of PHP and <a href="http://framework.zend.com/manual/en/zend.service.livedocx.html">LiveDocx</a> (in this case, the component inside the Zend Framework).
</p>
<blockquote>
Creating Word document icons is very simple thanks to a service called LiveDocx. LiveDocx was created as a web service to allow the easy creation of most document formats from a simple template. However, it is possible to send a normal Word document as the template file and get an image of the file in return.
</blockquote>
<p>
You'll need a <a href="https://www.livedocx.com/user/account_registration.aspx">LiveDocx account</a> to be able to use the service - there's a <a href="http://www.livedocx.com/pub/pricing.aspx">free</a> option of their service that uses a shared server. Included in the post is a sample script that defines a LiveDocx connection, pulls in a local Word document for parsing and calls a "getBitmaps" method on the service to return the raw image data. This is pushed into an image (using <a href="http://php.net/gd">GD</a>) as a PNG.
</p>]]></description>
      <pubDate>Mon, 26 Sep 2011 08:50:42 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Easy thumbnail generation using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16100</guid>
      <link>http://www.phpdeveloper.org/news/16100</link>
      <description><![CDATA[<p>
<i>Sameer Borate</i> has a recent post to his blog looking at a <a href="http://www.codediesel.com/php/easy-thumbnail-generation-using-php/>simple way to create thumbnails</a> with the help of the <a href="https://github.com/masterexploder/PHPThumb">PHP_Thumb</a> tool.
</p>
<blockquote>
One of the frequent requirements in web design is that of thumbnail generation. Although there are many libraries out there I found PHP Thumb simple and quick enough to implement in a recent project. PHP Thumb is a light-weight image manipulation library aimed at thumbnail generation. It offers the ability to resize, create custom crops, or square crops from the center, and rotate the image. If the need arises you can also easily add custom functionality to the library through plugins.
</blockquote>
<p>
Code examples are, of course, <a href="http://www.codediesel.com/php/easy-thumbnail-generation-using-php/">included in the post</a> showing simple thumbnail creation, image rotation, cropping, resizing and outputting to a different format. There's a brief mention of custom plugins and the ability to chain functions.
</p>]]></description>
      <pubDate>Fri, 25 Mar 2011 08:19:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Codrops Blog: Fresh Sliding Thumbnails Gallery with jQuery and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/14720</guid>
      <link>http://www.phpdeveloper.org/news/14720</link>
      <description><![CDATA[<p>
On the Codrops blog there's a <a href="http://tympanus.net/codrops/2010/05/23/fresh-sliding-thumbnails-gallery-with-jquery-php/">recent tutorial</a> posted showing how to create a fully-functional image slider/viewer with a combination of HTML, jQuery and a bit of PHP (<a href="http://tympanus.net/Tutorials/FreshSlidingThumbnailsGallery/">here's a demo</a>).
</p>
<blockquote>
In this tutorial we are going to create another full page image gallery with a nice thumbnail area that scrolls automatically when moving the mouse. The idea is to allow the user to slightly zoom into the picture by clicking on it. The thumbnails bar slides down and the image resizes according to the screen size.
</blockquote>
<p>
Based on <a href="http://valums.com/scroll-menu-jquery/">this tutorial</a>, they show you how to build on it and add a few new features like a changing cursor depending on its position in the current image. The show the folder structure you'll need, the HTML and PHP to make the backend work and the CSS and Javascript to round out the frontend. If you want to skip straight to the good stuff you can also just <a href="http://tympanus.net/Tutorials/FreshSlidingThumbnailsGallery/FreshSlidingThumbnailsGallery.zip">download all the code</a> and get started.
</p>]]></description>
      <pubDate>Tue, 29 Jun 2010 12:37:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorenzo Alberton's Blog: Create a video preview as animated GIF with FFmpeg and PHP SPL]]></title>
      <guid>http://www.phpdeveloper.org/news/13166</guid>
      <link>http://www.phpdeveloper.org/news/13166</link>
      <description><![CDATA[<p>
<i>Lorenzo Alberton</i> has <a href="http://www.alberton.info/video_preview_as_animated_gif_with_ffmpeg_and_spl.html">posted a new item</a> to his blog with a code snippet showing the combination of FFmpeg and features in PHP's SPL to make a GIF preview.
</p>
<blockquote>
About one year ago, I had to create animated GIFs as a preview of a video for a media portal. I recently stumbled upon the code I wrote and thought it was probably worth sharing. It makes a rather unconventional use of the SPL Iterators, proving how flexible they are.
</blockquote>
<p>
His method combines <a href="http://www.php.net/manual/en/class.imagick.php">Imagick</a>, <a href="http://ffmpeg.org/">FFmpeg</a> and a a Thumbnail_Extractor class that extends the SPL Iterator. The script runs through the frames of the movie file and allows you to define multiple places to pull thumbnails from. Complete code and output examples are included.
</p>]]></description>
      <pubDate>Fri, 04 Sep 2009 09:52:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: Learning OOP in PHP ASAP!]]></title>
      <guid>http://www.phpdeveloper.org/news/11772</guid>
      <link>http://www.phpdeveloper.org/news/11772</link>
      <description><![CDATA[<p>
NETTUTS.com has posted <a href="http://nettuts.com/tutorials/php/oop-in-php/">an introduction</a> (using the Car analogy, of course) to teach you how to use the basics of object-oriented programming in PHP.
</p>
<blockquote>
PHP is so much more than a scripting language. It's a full-fledged language capable of building very complex applications. By harnessing the full power of Object Oriented Programming, you can reduce the amount of time you spend coding and use it to build better websites. This tutorial will show you how. 
</blockquote>
<p>
They explain objects, inheritance, encapsulation and polymorphism briefly before "getting their hands dirty" with some actual OOP PHP code. Their code example sets up a thumbnailer class - one that takes in an image, a height/width you want to resize it to (as properties) and splits it back out the other side.
</p>
<p>
As always, you can <a href="http://nettuts.s3.amazonaws.com/182_oop/example.zip">grab the source</a> or <a href="http://www.nettuts.com/demos/020_oop/sample.html">view the demo</a> to see it work.
</p>]]></description>
      <pubDate>Tue, 20 Jan 2009 09:36:36 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: How to Dynamically Create Thumbnails]]></title>
      <guid>http://www.phpdeveloper.org/news/11438</guid>
      <link>http://www.phpdeveloper.org/news/11438</link>
      <description><![CDATA[<p>
The NETTUTS.com blog has a <a href="http://nettuts.com/videos/screencasts/how-to-dynamically-create-thumbnails/">new screencast</a> posted showing how to create a simple thumbnailing script you can use in any application (like an image gallery).
</p>
<blockquote>
In this week's screencast, I'll show you how to upload files and then have PHP dynamically create a thumbnail. Whether you're building an ecommerce site, or just a simple gallery, these techniques will absolutely prove to be useful. If you're ready for your "spoonfed" screencast of the week, let's get going!
</blockquote>
<p>
<a href="http://nettuts.com/videos/screencasts/how-to-dynamically-create-thumbnails/">The post</a> also includes all of the code and HTML that you'll need to get it up and running (very cut and paste-able). 
</p>]]></description>
      <pubDate>Fri, 21 Nov 2008 10:31:25 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Cory Borrow's Blog: Creating thumbs from textfiles with PHP and GD]]></title>
      <guid>http://www.phpdeveloper.org/news/9437</guid>
      <link>http://www.phpdeveloper.org/news/9437</link>
      <description><![CDATA[<p>
<i>Cory Borrow</i> has <a href="http://www.coryborrow.com/2008/01/11/creating-thumbs-from-textfiles-with-php-and-gd/">posted a tutorial</a> he's created to show how to harness the power of PHP and GD to create thumbnail images out of the contents of a text file.
</p>
<blockquote>
Today, I'll give a little info on how to achieve the process of creating a thumbnail using PHP, GD and the text from a text file. It is really pretty simple, so lets get started.
</blockquote>
<p>
The trick behind the translation is in reading in the contents of the (plain) text file and pushing it into a string value of a newly created GD-generated image. He includes the code to make using it in your own app simple (a cut and paste version) - his method FileToThumb.
</p>]]></description>
      <pubDate>Wed, 16 Jan 2008 12:50:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: Padding thumbnail with color]]></title>
      <guid>http://www.phpdeveloper.org/news/9406</guid>
      <link>http://www.phpdeveloper.org/news/9406</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> has another image tutorial posted to his blog today - this time the focus is on <a href="http://valokuva.org/?p=92">padding a thumbnail</a> with the color of your choice automatically.
</p>
<blockquote>
Today's example originates from a question asked by a user. How do I thumbnail the image inside given dimensions proportionally and fill the "blank" areas with a color? Well, the answer is here.
</blockquote>
<p>
His code pulls in the source image, generates a thumbnail from it and makes a new image (the background) that's a bit bigger than the thumbnail. From there, the thumbnail is laid on top and the whole thing is output as another PNG. An example of the input and output image is included.
</p>]]></description>
      <pubDate>Fri, 11 Jan 2008 12:05:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: Pretty Thumbnails]]></title>
      <guid>http://www.phpdeveloper.org/news/8804</guid>
      <link>http://www.phpdeveloper.org/news/8804</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> has another example of image manipulation in PHP through Imagick to <a href="http://valokuva.org/?p=45">create dynamic thumbnails</a> of your images.
</p>
<blockquote>
Today's example is about making pretty thumbnails by combining a drop-in shadow with round corners. The image is first scaled down to create a thumbnail. [...] The next step is to round the corners of the image. [...] The final step is to create the drop-in shadow and composite the thumbnail over it.
</blockquote>
<p>
Both the code block to create the thumbnail and a before and after image to show how it translates in <a href="http://valokuva.org/?p=45">the post</a>.
</p>]]></description>
      <pubDate>Mon, 08 Oct 2007 16:14:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The Bakery: Four New Articles - Load Balancing, Request Info, UUID Behavior & Upload Thumbnails]]></title>
      <guid>http://www.phpdeveloper.org/news/8007</guid>
      <link>http://www.phpdeveloper.org/news/8007</link>
      <description><![CDATA[<p>
The Bakery has four new items posted today including articles looking at load balancing, the Request component and UUID behavior in your CakePHP application.
</p>
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/load-balancing-and-mysql-master-and-slaves-2">Load Balancing and MySQL Master and Slaves</a> - If you are currently using MySql master/slave replication for load balancing and wish to transport to cakePHP, it really couldn't be easier.
<li><a href="http://bakery.cakephp.org/articles/view/request-information-component-4">Request Information Component</a> - Need more insight into how a controller structures a CakePHP request? This little component will log important information and variables for each request to your application's debug log.
<li><a href="http://bakery.cakephp.org/articles/view/uuid-behavior">Uuid Behavior</a> - I have a requirement to use UUID's as primary keys. I was initially using MySQL triggers to call uuid() on insert but in the end decided a behavior makes more sense. This behavior adds a UUID to the field specified in your models.
<li><a href="http://bakery.cakephp.org/articles/view/improved-upload-behaviour-with-thumbnails-and-name-correction">Improved Upload Behaviour with Thumbnails and Name Correction</a> - This is an improved version of Chris Partridge's upload behaviour (http://bin.cakephp.org/saved/17539). The behaviour is able to generate thumbnails if used for images (JPEG/PNG only). 
</ul>
<p>
CakePHP users can check out these and more great articles, tutorials and more on <a href="http://bakery.cakephp.org/">The Bakery</a>.
</p>]]></description>
      <pubDate>Fri, 08 Jun 2007 09:37:00 -0500</pubDate>
    </item>
  </channel>
</rss>
