Collection thumbnail URI

16 views
Skip to first unread message

Alan Shortis

unread,
Mar 10, 2016, 7:19:13 AM3/10/16
to Omeka Dev

Is there a way to get the URI of the thumbnail for a collection?


Using record_image will give me file mark up, but I only want the address of the image (preferably being able to specify the image size, as I can with file metadata).

Anurag Spatzenegger

unread,
Mar 10, 2016, 11:22:23 AM3/10/16
to omek...@googlegroups.com
I am not sure what you are trying to do, but you can specify the image size when using record_image($record, $imageType, $props).

Parameters:
  • $record (Omeka_Record_AbstractRecord|string) –
  • $imageType (string) – Image size: thumbnail, square thumbnail, fullsize
  • $props (array) – HTML attributes for the img tag
See: http://omeka.readthedocs.org/en/latest/Reference/libraries/globals/record_image.html





On 3/10/16 7:19 AM, Alan Shortis wrote:

Is there a way to get the URI of the thumbnail for a collection?


Using record_image will give me file mark up, but I only want the address of the image (preferably being able to specify the image size, as I can with file metadata).

--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omeka-dev+...@googlegroups.com.
To post to this group, send email to omek...@googlegroups.com.
Visit this group at https://groups.google.com/group/omeka-dev.
For more options, visit https://groups.google.com/d/optout.

Patrick Murray-John

unread,
Mar 10, 2016, 11:46:46 AM3/10/16
to omek...@googlegroups.com
This is duplicate on the forums http://omeka.org/forums/topic/collection-thumbnail-uri

It'll be best for knowledge-sharing to have discussion in one place. In this case, there's more going on on the forums, so that's the best place.

Patrick
Reply all
Reply to author
Forward
0 new messages