Announcement

  •  » Extensions
  •  » Album thumbnail (representative)

#1 2018-01-16 03:14:43

windracer
Member
St. Pete, FL
2014-12-28
214

Album thumbnail (representative)

I'm doing some work on my Physical Photo Move plugin, trying to add support for moving entire physical albums.

As part of the Move tab, I'd like to include the album thumbnail, similar to what is displayed on the Properties tab.

For photos, I use

Code:

DerivativeImage::thumb_url($image_info);

where $image_info is:

Code:

get_image_infos($_GET['image_id']);

But I can't figure out API calls or the best way to do this, given the cat_id of the album.  I've poked around in cat_modify.php and pwg.categories.getList but am stuck. Could someone please point me in the proper direction?

Thank you!

Offline

 

#2 2018-01-18 21:12:13

windracer
Member
St. Pete, FL
2014-12-28
214

Re: Album thumbnail (representative)

Nevermind, figured it out ... was apparently making it more difficult than necessary and overlooking the obvious. :)

Code:

DerivativeImage::thumb_url(get_image_infos($storage_cat_info['representative_picture_id']));

where $storage_cat_info is:

Code:

get_cat_info($_GET['image_id']);

Last edited by windracer (2018-01-18 21:12:35)

Offline

 
  •  » Extensions
  •  » Album thumbnail (representative)

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact