Description
I need to integrate an AWS Serverless Image Handler to optimize my images. However, I want the URL of my images for optimization to be like this: https://xxxx.cloudfront.net/model_1/img.jpg instead of using the Thumbor filter like https://xxxx.cloudfront.net/fit-in/150x150/img.jpg. I want to create a predefined template with the modifications I desire. Is this possible?
The main reason for my request is to add a watermark to the images. I don't consider using Base64 for this purpose secure (as watermarks can be easily removed).
I have thought of a few solutions:
*NGINX Reverse Proxy (I'm hesitant because it might create cache problems).
*Editing the serverless-image-handler (custom-v6.2.5) (The index.handler function, but the code is too large to work in the AWS editor. When I download and edit the file and then upload it, it gives errors again.)
I tried encoding the URL, but it's not suitable for me. What I want is to include my model in the URL.