 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Sameer Borate's Blog: Easy thumbnail generation using PHP
by Chris Cornutt March 25, 2011 @ 08:19:57
Sameer Borate has a recent post to his blog looking at a PHP_Thumb tool.
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.
Code examples are, of course, included in the post 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.
voice your opinion now!
thumbnail generation phpthumb generation tutorial
Codrops Blog: Fresh Sliding Thumbnails Gallery with jQuery and PHP
by Chris Cornutt June 29, 2010 @ 12:37:21
On the Codrops blog there's a recent tutorial posted showing how to create a fully-functional image slider/viewer with a combination of HTML, jQuery and a bit of PHP (here's a demo).
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.
Based on this tutorial, 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 download all the code and get started.
voice your opinion now!
tutorial sliding photo thumbnail gallery jquery css
NETTUTS.com: Learning OOP in PHP ASAP!
by Chris Cornutt January 20, 2009 @ 09:36:36
NETTUTS.com has posted an introduction (using the Car analogy, of course) to teach you how to use the basics of object-oriented programming in PHP.
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.
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.
As always, you can grab the source or view the demo to see it work.
voice your opinion now!
tutorial thumbnail oop object oriented introduction
NETTUTS.com: How to Dynamically Create Thumbnails
by Chris Cornutt November 21, 2008 @ 10:31:25
The NETTUTS.com blog has a new screencast posted showing how to create a simple thumbnailing script you can use in any application (like an image gallery).
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!
The post also includes all of the code and HTML that you'll need to get it up and running (very cut and paste-able).
voice your opinion now!
dynamic thumbnail screencast gallery tutorial
Mikko Koppanen's Blog: Padding thumbnail with color
by Chris Cornutt January 11, 2008 @ 12:05:00
Mikko Koppanen has another image tutorial posted to his blog today - this time the focus is on padding a thumbnail with the color of your choice automatically.
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.
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.
voice your opinion now!
imagick padding thumbnail color example imagick padding thumbnail color example
|
Community Events
Don't see your event here? Let us know!
|