[img_fit/]


[img_fit/] shrinks or expands the source image proportionally to fit within the given width and/or height without cropping. Both values are positive integers, and specify the maximum for each dimension. Setting width="0" or height="0", or simply omitting one of the attributes is interpreted as ‘no maximum’.

[img_fit output="{format}" width="{int}" height="{int}"]<source>[/img_fit]

dimensions

[img_fit output="img" width="200" height="200"]atest.gif[/img_fit]
atest.gif
<img src="/wp-content/uploads/image-cache/1d2cf16c/atest_gif/fit_200_200.gif" width="142" height="200" alt="atest.gif" />
[img_fit output="img" height="200"]atest.gif[/img_fit]
atest.gif
<img src="/wp-content/uploads/image-cache/1d2cf16c/atest_gif/fit_0_200.gif" width="142" height="200" alt="atest.gif" />
[img_fit output="img" width="200"]atest.gif[/img_fit]
atest.gif
<img src="/wp-content/uploads/image-cache/1d2cf16c/atest_gif/fit_200_0.gif" width="200" height="283" alt="atest.gif" />