I’m getting a really strange error.. Can’t seem to fix it. I am using the tag pair to dynamically resize images, and have specified a width of “550”. For some odd reason though, it’s only resizing up to 500 pixels in width unless I specify a height as well.
This works (notice the height parameter) and scales properly:
{if content_image != ""}{exp:imgsizer:size src="{content_image}" width="550" height="340" quality="95"}
<a href="{title_permalink="content/index"}">
<img src="{sized}" width="{width}" height="{height}" alt="Click to read {title}" title="Click to read {title}" class="content_image" />
</a>
{/exp:imgsizer:size}{/if}
This does not scale properly and produces an image short of 50 pixels in width (notice the “missing” height parameter):
{if content_image != ""}{exp:imgsizer:size src="{content_image}" width="550" quality="95"}
<a href="{title_permalink="content/index"}">
<img src="{sized}" width="{width}" height="{height}" alt="Click to read {title}" title="Click to read {title}" class="content_image" />
</a>
{/exp:imgsizer:size}{/if}
I’ve tried to remove the “height=”{height}” variable out, but it doesn’t seem to be doing anything different.
UPDATE: It seems that if I do not specify a height parameter, and I want to resize to anything above 500 pixels in width that it does not work. Just a reminder, this does resize to a width above 500 pixels if I specify a height parameter..
Has anybody else experienced a similar issue?