Project

General

Profile

Actions

Feature #1805

closed

Collections: Gallery Overview

Added by Andreas Olschnögger almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
2022-09-05
Estimated time:

Description

The layout of this gallery should be improved (https://shahi.acdh-dev.oeaw.ac.at/collections/2214)
Also thumbnails of the pictures should be loaded to reduce the size of the needed picture.

Actions #1

Updated by Andreas Olschnögger almost 2 years ago

  • Status changed from New to Assigned
  • Assignee set to Bernhard Koschiček-Krombholz

@ @Bernhard Koschiček-Krombholz, is there a possibility to load thumbnails of a picture via the API like in the OpenAtlas backend (with e.g. ?size=100)?

Actions #2

Updated by Alexander Watzinger over 1 year ago

@ @Bernhard Koschiček-Krombholz - can you give feedback on this. Thank you.

Actions #3

Updated by Bernhard Koschiček-Krombholz over 1 year ago

I'm absolutely deeply sorry, that I missed this issue!
Yes, indeed, there is a way. OpenAtlas serves two sizes in its basic configuration: thumbnail with 200px and table with 100px max size of the longer side. The thumbnail is used for the images in the detailed entity view and table is used for tables, e.g. the table where all files are listed (if it is enabled in the profile). These are fixed values in config/default.py.
You can use the resized images like this example: /api/display/117336.jpg?image_size=thumbnail

Other sizes need to be added in instance/production.py with something like:

IMAGE_SIZE['frontend'] = 400

Then it would be possible to call the images with /api/display/117336.jpg?image_size=frontend

/api/0.3/content/ shows the possible image size options and the selected max size.

I hope this answers your question, and again I'm deeply sorry for this delay. As ever, we can think of an optimization of the functionality if needed.

Actions #4

Updated by Bernhard Koschiček-Krombholz over 1 year ago

  • Assignee changed from Bernhard Koschiček-Krombholz to Andreas Olschnögger
Actions #5

Updated by Andreas Olschnögger over 1 year ago

  • Status changed from Assigned to Resolved
  • Assignee changed from Andreas Olschnögger to Natasha Kimmet

The layout of the collection images is improved and for faster loading of the images their thumbnails are taken.
@ @Natasha Kimmet please have a look at the changes and close this ticket if it is okay with you.

Actions #6

Updated by Gosia Lenko over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF