Sample code for the presentation given in DallasPHP on 2012/06/12. It ended up being a full stack with drivers to allow a single API to use different libraries to demo GD and Imagick from the same script. It works via autoloading. The same system also powers the web upload demo.
The Presentation (DallasPHP): http://catch404.net/2012/06/pixel-punching-php-presentation-from-dallasphp/ Lone Star PHP 2012 Version: https://speakerdeck.com/u/bobmajdakjr/p/pixel-punching-with-php
- Windows 7
- PHP 5.4.0
- CLI - Windows cmd.exe
- Web - PHP CLI-Server pointed at this folder.
DISCLAIMER: THIS IS ALPHA QUALITY STUFF EVERYPONY. This was worked on for about a week for the presentation. It is released under the 2-Clause BSD license, so if you try to power your actual website and it explodes, awl snap.
This project and all its files (except for specific listed components) are licensed under the New BSD License. Here it is...
Copyright (c) 2012 All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.