Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% setcontent myprojects = 'projects' %}
- {% for project in myprojects %}
- <div class="slide">
- {% for image in project.imagelist %}
- <img src="{{ image.filename|image }}" width="{{ image.width|image }}" height="{{ image.height|image }}">
- {% endfor %}
- </div>
- {% endfor %}
- {% for galleryImage in record.gallery %}
- <li>
- <a href="{{ imageinfo(galleryImage.filename).url }}" title="{{ galleryImage.title }}">
- {% if imageinfo(galleryImage.filename).landscape %}
- <img src="{{ thumbnail(galleryImage, 0, 240) }}" class="landscape">
- {% elseif imageinfo(galleryImage.filename).portrait %}
- <img src="{{ thumbnail(galleryImage, 0, 240) }}" class="portrait">
- {% else %}
- <img src="{{ thumbnail(galleryImage, 240, 240) }}" class="square">
- {% endif %}
- </a>
- </li>
- {% endfor %}
- {% for image in project.imagelist %}
- {% set exif_data = imageinfo(image).info.exif %}
- // extract what data you want from the EXIF object for each image
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement