Question #1517
Updated by Christoph Hoffmann almost 3 years ago
the image retrieval API implemented in #1280 should conform to "server driven content negotiation conventions":https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation#server-driven_content_negotiation the standard currently only covers *format negotiation*, all other features (size, resolution, width) are still "experimental":https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation#the_accept-ch_header_experimental_inline * format negotiation should go, as described in the "Accept":https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept `Accept` Header (but could then also be replaced/overridden by a query parameter for ease of use) * size negotiation should (as I understand is already implemented) remain in the path parameter, fixed to the preconfigured named sizes What would this implementation enable? * the user/client would, simply by passing a mime type as a parameter/header, be able to retrieve the originally uploaded resource or a client conforming format * in scenarios where the client would not pass an explicit format request, the browser would still add standard accept headers we can work with