cloudinary-community / netlify-plugin-cloudinary

Supercharge images on your Netlify site with Cloudinary!
https://netlify.cloudinary.dev/
MIT License
42 stars 18 forks source link

[Feature] Max image dimensions configuration for images #62

Closed colbyfayock closed 1 year ago

colbyfayock commented 1 year ago

Feature Request

Is your feature request related to a problem? Please describe.

We can allow configuration of a "max size" to avoid images being delivered beyond that size

This can be done using c_limit, which will downscale but not upscale while preserving aspect ratio

If we do something along the lines of c_limit,w_900,h_900, this will:

Describe the solution you'd like

Can be along the lines of:

[[plugins]]
  package = "netlify-plugin-visual-diff"
    [plugins.inputs]

      [[plugins.inputs.maxSize]]
        width = 900
        height = 900

Which would provide blanket downscaling as a max size for all images:

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.11.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: