TYPO3-Headless / deferred-image-processing

4 stars 1 forks source link

Thought collection #2

Open liayn opened 4 months ago

liayn commented 4 months ago

Just a collection of some thoughts:

s2b commented 4 months ago

Instead of returning the generated image as a response, better redirect to itself, so the second request is answered by the webserver with the rendered image => all headers are as they should be or as configured by the webserver and nothing needs to be mimicked by PHP.

I would agree with that. That makes the implementation much easier.

IndyIndyIndy commented 2 months ago

Also, a way to still prioritize (directly render in the same request) some images could be really useful. For instance for a bunch of "above the fold" images or the "first x" images in a gallery. Like a "preprocess" attribute in all image viewhelpers.

This extension is already very similar to the ideas I was about to implement and try out for some projects, so maybe I could test and contribute a bit.