statamic/Plugin-Image

What about excluding height?

Opened this issue · 4 comments

I have images I'd like to make sure they're a specific width, but I don't care what the height is. Is it possible to have a dim value that forces a certain width, crop or scale as needed, and the height just adjusts proportionately?

using the > flag should ensure a fixed width and a variable height. We should probably rework the parameters so they're more intuitive :)

On Oct 8, 2012, at 1:25 PM, Erik Reagan notifications@github.com wrote:

I have images I'd like to make sure they're a specific width, but I don't care what the height is. Is it possible to have a dim value that forces a certain width, crop or scale as needed, and the height just adjusts proportionately?


Reply to this email directly or view it on GitHub.

So if I have dim="940x1000>" the "1000" is ignored?

That should be correct.

On Oct 8, 2012, at 1:29 PM, Erik Reagan notifications@github.com wrote:

So if I have dim="940x1000>" the "100" is ignored?

Reply to this email directly or view it on GitHub.

Thanks!