Understand imageproxy URL structure
mainimageproxy uses a specific URL format to apply transformations to remote images. The structure is:
http://localhost/{options}/{remote_url}
{options}: A comma-delimited list of parameters for cropping, resizing, rotation, flipping, etc. Parameters can be in any order, and duplicates overwrite previous values.{remote_url}: The URL of the original image. It can be provided in three ways:- Plain text: Any query string in the proxy URL is treated as part of the remote URL. Example:
http://localhost/x/http://example.com/?id=1targetshttp://example.com/?id=1. - Percent-encoded: The full URL must be encoded. Query strings on the proxy URL are NOT included in the remote URL. These must be absolute URLs.
- Base64 encoded (URL safe, no padding): The full URL must be encoded. Query strings on the proxy URL are NOT included in the remote URL. These can be relative URLs if a default base URL is configured.
- Plain text: Any query string in the proxy URL is treated as part of the remote URL. Example: