B
B
BigProfessor2017-05-19 01:47:54
Python
BigProfessor, 2017-05-19 01:47:54

How to display images for the site?

Good time of the day. There is a site with a huge number of pictures, now we need to implement their packaging and delivery to the site. There is a separate server for pictures, I already wrote a photo packer, but I can’t figure out how to issue a picture, and sometimes several, on request from the site, so that the image would be given and the header was image. CherryPy is suitable as a server accepting requests from the site and issuing a picture back? I read something about nginx, but how to work with it is even more dark. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aristarkh Deryapa, 2017-06-14
@isisTance

I don't know for sure, but try doing something like a GET request and have it return a dictionary of photo URLs. I don't know about the "Image" header. In short, it should output something like this: {"productImage": " example.com/image.png ",
"screenshot1": "/photo1.png"} and so on. And there is already a check.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question