Feature #1805
closedCollections: Gallery Overview
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.
Updated by Andreas Olschnögger about 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)?
Updated by Alexander Watzinger about 2 years ago
@ @Bernhard Koschiček-Krombholz - can you give feedback on this. Thank you.
Updated by Bernhard Koschiček-Krombholz about 2 years 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.
Updated by Bernhard Koschiček-Krombholz about 2 years ago
- Assignee changed from Bernhard Koschiček-Krombholz to Andreas Olschnögger
Updated by Andreas Olschnögger about 2 years 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.
Updated by Gosia Lenko almost 2 years ago
- Status changed from Resolved to Closed