Project

General

Profile

Actions

Feature #1426

closed

API: Display image smaller size

Added by Bernhard Koschiček-Krombholz about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2021-04-02
Estimated time:

Description

Some images can be very large in file size. Since the API should also provide data for different front-ends, it can be useful, that API clients can forcefully downsize images. One idea is, that the normal display path will show the full image. With parameters the client can demand a 30% size version of the image. Or the image pixel size will be downsized to a number like 1200px. The path will be /api/display/image.jpg?size=30 or /api/display/hsize=1200 or /api/display/vsize=1200 (horizontal and vertical size)

If python can not do it by itself, maybe the Pillow package can do this.


Related issues 3 (0 open3 closed)

Related to OpenAtlas - Feature #1280: Picture PreviewClosedBernhard Koschiček-Krombholz2021-04-02Actions
Related to OpenAtlas - Question #1517: decide on/implement content negotiation for image APIClosedBernhard Koschiček-Krombholz2021-05-17Actions
Follows OpenAtlas - Feature #1492: Image Processing ClosedBernhard Koschiček-Krombholz2021-04-01Actions
Actions

Also available in: Atom PDF