-
Thank you 🙏 I had a chance to get back to working on experimenting with the ImgProxy server and I have a question: Suppose I have the following part of the content model: "assets": { // assets is a part of another general model
"baseUrl": "https://{my.cdn.host}/c/e/B_SP", // misc
"thumb": {
"src": "https://{my.cdn.host}/c/e/B_SP/thumb.jpg", // original image (only for reference)
"srcset": [ // these are generated by the backend on-the-fly upon request
{
"url": "https://{server.gen.signed.imgproxy.url}/fn:thumb_1x/{other}/thumb.jpg", // results in thumb_1x.jpg or whatever the extension is
"x": 1,
"w": 128
},
{
"url": "https://{server.gen.signed.imgproxy.url}/fn:thumb_2x/{other}/thumb.jpg", // same
"x": 2,
"w": 256
}, // ..etc based on dpi requirements
]
},
} Problem Space: I want to be able to generate the Background: Given I have my blob storage configuration, my server is able to programatically able to determine Question: Does ImgProxy support renaming the output file in the HTTP response? For example, can ImgProxy return a processed image with a URL ending in thumb_1x.jpg while the actual source file remains thumb.jpg in the storage? Is this renaming just a URL convention, or does it reflect in the HTTP response headers (e.g., in the Content-Disposition header)? The following is within the docs:
So I suppose I can use the Here's the
Response Headers:
Request Headers:
The The response has the same file name as the source file, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @vinclou! Sorry, but I don't really understand what you're trying to achieve. Could you explain what you mean by response filename? The only filename HTTP response can have is one specified in the |
Beta Was this translation helpful? Give feedback.
I was wondering if it's possible to rename the transformed file;
But, I think I'm just on the wrong path overall & might not even need this.