 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Smashing Magazine: Image Manipulation With jQuery and PHP GD
by Chris Cornutt April 05, 2011 @ 12:02:30
Smashing Magazine has a new post today about using jQuery and GD to manipulate images to upload an image, crop it and save that version to the remote server.
One of the numerous advantages brought about by the explosion of jQuery and other JavaScript libraries is the ease with which you can create interactive tools for your site. When combined with server-side technologies such as PHP, this puts a serious amount of power at your finger tips. [...] Sure, there are plugins out there that you can use to do this; but this article aims to show you what's behind the process. You can download the source files for reference.
They walk you through the little bit of setup you'll need before things will be working and then move right into the upload form and PHP handling that goes with it. The Javascript that goes with it is all home-grown (not a plugin) and cleverly uses a DIV to simulate the bounding box for the crop.
voice your opinion now!
tutorial image manipulate jquery gd crop
PHPBuilder.com: Creating and Manipulating PDFs with PHP and FPDF
by Chris Cornutt March 11, 2011 @ 10:13:07
On PHPBuilder.com today there's a new tutorial about creating editing PDFs with the help of the FPDF library.
Because the Web has become the primary mechanism for distributing PDF documents, it's common to encounter questions on various web development forums pertinent to the dynamic creation of PDF documents using languages such as PHP. [...] Thankfully, such a demand for PDF manipulation capabilities exists within the PHP community that numerous alternative open source solutions have long been available, including notably FPDF.
They help you get the library installed and show you how to create a basic PDF with some simple text inside. They build on this and show how to add multiple text sections, images and watermarks.
voice your opinion now!
manipulate pdf fpdf create tutorial
php|architect: Image Processing with Imagine
by Chris Cornutt March 07, 2011 @ 10:53:42
New from the php|architect blog, there's a tutorial from Mike Willbanks about using Imagine to transform images dynamically in a more object-oriented way.
Image processing in PHP is a necessary evil but is needed more often than not in just about every web application. With the various preferences in image processing libraries (think ImageMagick, GraphicsMagick and GD) it is difficult to find a library that provides a unified object oriented interface as well as implementing the general tasks in a simplistic fashion. Imagine is an open source image manipulation library built with PHP 5.3 that implements an object oriented interface to ImageMagick, GraphicsMagick and GD
Mike gives a quick sample script that uses SPL autoloading to pull in the classes as they're needed (with the "imagineLoader" method) and make a basic thumbnail from a PNG file.
voice your opinion now!
imagine image process manipulate oop autoload
Jeremy Cook's Blog: Installing Imagick under Apache on Windows
by Chris Cornutt June 08, 2010 @ 12:48:38
Jeremy Cook has put together a guide for installing Imagick on Windows so it can be used in your PHP applications..
After a few weeks of experimenting on and off I've just managed to get the Imagick extension installed under Apache on Windows (my development environment). While discovering how to make it work was not at all simple the final process of getting all the pieces to play together nicely was pretty easy. In this post I'll briefly discuss what ImageMagick and the Imagick extension for PHP are, why you might want to use them, how I got them up and running and finally a very simple piece of example code. I'm hoping this post will help people avoid the frustration and effort I went through to get them to work!
He explains what the tools (ImageMagick & Imagick) are and why it's a bit more difficult to install them on Windows than just a point and click sort of thing. He walks you through an eight-step process that will have you up and working in no time and includes a simple PHP script you can run to ensure things are working as they should.
voice your opinion now!
windows imagick install tutorial image manipulate
Zend Developer Zone: Manipulating Images with PHP and GraphicsMagick
by Chris Cornutt September 29, 2009 @ 11:56:38
The Zend Developer Zone has a new tutorial from Vikram Vaswani on working with GraphicsMagik to create and manipulate images in your PHP scripts.
Based on the robust, multi-threaded GraphicsMagick library, aka the "Swiss Army knife of image processing", PHP's GraphicsMagick extension allows developers to add street cred to their image (sorry, I couldn't resist!) with some fairly powerful API methods. This article discusses the extension in detail, introducing you to its key functions and showing you how to rotate, resample, transform, crop, carve, and otherwise mangle your images until they roll over and beg for mercy.
The tutorial looks at how to get the package installed (both from source or as a pecl package) and how to check and make sure it's up and working. The sample scripts included show you how to grab the info about an image, resize it, write it out to a file, rotate/flip it and do a few other fun tricks (including using built-in filters).
voice your opinion now!
graphicsmagik tutorial image manipulate
Harry Roberts' Blog: Manipulating PHP arrays with SQL
by Chris Cornutt May 22, 2008 @ 14:39:54
Harry Roberts has a quick post to his blog today showing a method he's come up with to handle PHP arrays from inside of SQL statements (a port of the JsonSQL library to PHP).
Trent Richardson created a very small and simple JsonSQL library for JavaScript which allows you to run an extremely limited subset of SQL against a Json array/object. I quickly ported it over to PHP 5 and it works like a charm, although the syntax for the WHERE clause isn't exactly the same but the rest ported across properly.
He's included some sample source code of it in action - selecting information out of an array of user information, once changing their order and the other grabbing a username. Complete source for the library is included too.
voice your opinion now!
manipulate array sql statement phpsql library port jsonsql
|
Community Events
Don't see your event here? Let us know!
|