Plugin-Image icon indicating copy to clipboard operation
Plugin-Image copied to clipboard

What about excluding height?

Open erikreagan opened this issue 12 years ago • 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?

erikreagan avatar Oct 08 '12 17:10 erikreagan

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 [email protected] 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.

jackmcdade avatar Oct 08 '12 17:10 jackmcdade

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

erikreagan avatar Oct 08 '12 17:10 erikreagan

That should be correct.

On Oct 8, 2012, at 1:29 PM, Erik Reagan [email protected] wrote:

So if I have dim="940x1000>" the "100" is ignored? — Reply to this email directly or view it on GitHub.

jackmcdade avatar Oct 08 '12 17:10 jackmcdade

Thanks!

erikreagan avatar Oct 08 '12 17:10 erikreagan