Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Longpic - image thumbnail library
#1

[eluser]Unknown[/eluser]
I just posted an update to Longpic. Longpic eats URLs to pages on sites like twitpic.com which are commonly linked on twitter feeds, and returns image thumbnails. I wrote it to let me create more attractive twitter feeds in a CI app by easily including thumbnails of links.

Usage as follows:
Code:
$this->load->library('longpic');
$this->longpic->thumbnail($someurl);

This returns the URL to the thumbnail of the image being linked to. If no image is found it returns FALSE.

This works even if the link was a short.to or bit.ly style URL thanks to the LongUrl.org project. In fact you can also extract the original URL from a shortened url by doing this:

Code:
$this->longpic->lengthen($someurl);

Source and stuff at http://github.com/eeatdd/Longpic/tree/master.




Theme © iAndrew 2016 - Forum software by © MyBB