the flickr provider for emimage does not support thumbnails. the following code needs to be added to providers/emimage/flickr.inc

function emimage_flickr_thumbnail($field, $item, $formatter, $node, $width, $height) {
  $xml = emimage_flickr_request('flickr.photos.getInfo', array('photo_id' => $item['value']));

  if ($xml['stat'] != 'fail') {
    $image = 'http://farm'. $xml['photo']['farm'].
        '.static.flickr.com/'. $xml['photo']['server'].
        '/'. $xml['photo']['id'] .'_'. $xml['photo']['secret'].
        '_m.jpg';
  } else {
    drupal_set_message($xml['message']);
  }
  return $image;
}
CommentFileSizeAuthor
#1 thumbnail.patch.txt456 bytescangeceiro

Comments

cangeceiro’s picture

StatusFileSize
new456 bytes

I believe that snippet above is a fix i had posted a while back towards the original emfield module. attached is an updated patch that better solves the problem.

cangeceiro’s picture

Status: Active » Needs review

changing status to needs review.

aaron’s picture

Status: Needs review » Fixed

got that, sorry about the issue -- hadn't kept this module in synch...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

cangeceiro’s picture

Status: Closed (fixed) » Reviewed & tested by the community

can my patch in #1 get committed to HEAD? it's a very simple patch and this problem comes up quite often.

aaron’s picture

Status: Reviewed & tested by the community » Fixed

This was committed some time ago, at http://drupal.org/cvs?commit=452046 but I still need to create a release with that fix. Will do so shortly. Also please note that active development for this module is in the DRUPAL-6--1 branch, not in HEAD.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.