We are using Glass Mapper w/ Page Editor for an MVC project, and I've fallen in love with how easy it is to use. However, we have run into a limitation that I am hoping someone has resolved already.
When we use @RenderImage(Model, x=>x.SomeImageField, new {W=100,H=100}, true)
We get HTML that looks something like <img src="path/to/image?h=100&w=100" height="100" width="100" />
Normally, this would be great. However, we have a requirement that some of our images cannot have inline height and width parameters in the HTML (its handled by CSS and JS), but we still need to be able to pass the parameters in the URL to sitecore to make sure we aren't sending some crazy big image to the browser.
Essentially, what I need is HTML that comes out like this
<img src="/path/to/image?h=100&w=100" /> <-- no inline height/width parameters
Can Glass do this for me? Its a fairly important requirement for us.
Thanks in advance.
Neil