Home » Downloads » Here

Longpic - CodeIgniter Library

17/06/2009

imageThis library for CodeIgniter provides a very simple service. It consumes a link to social photo sharing websites such as twitpic, and returns a URL for a thumbnail of the image being linked to. Perfect for turning a boring twitter feed into a more visually interesting asset. It even handles URLs which have been mangled by bit.ly and other URL shortening services.

It supports a number of sites, including the most popular ones like Twitpic, Yfrog, Tweetphoto. More are added as I find a need for them.

Usage is simple

Include the library in your controller as usual,

$this->load->library('longpic');

then in your controller or view you will be able to use code like this:

$this->longpic->thumbnail($testurl);

The latest download and up to date usage guide are all on the Longpic GitHub page. The download includes a simple test controller and view with some test URLs for each service supported. Fire any bug reports through github or @stevenmilne.

Comments?

I've turned off comments on Digital Delivery. If you'd like to get in touch about Longpic - CodeIgniter Library please email me, or tweet @stevenmilne.