Skip to content

resize_url behaves different with profile and custom args #18559

@MichaelPetrinolis

Description

@MichaelPetrinolis

Describe the bug

use resize_url to resize an image (test with original image dimensions) , crop mode and then change format to webp.

The produced image is blurred. When you use a profile for the conversion, the image works correct.

The difference is due to commands order on the query string. The profile uses width,height,rmode,format,quality
while using custom args sends width,height,rmode,quality,format

We should use the same order as in profile, this fixes the blurred image.

Orchard Core version

2.2.1

To Reproduce

Add a jpg image, create a profile and an resize_url liquid filter with same parameters to see the difference.

Expected behavior

images should be produced in the same way, using profile or resize_url. And better would be to add the quality after format, as it does not break the converted image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions