I need to read image parameters (source, width, height) in controller when I'm building json feed.
I made all the steps from this question. But suggested method allows you to get image tag using View Helper, and only inside view context. Since I can't (and really don't want to, as it's really bad practice) create HTMLHelper in Controller I can't generate it there.
This method gives me only path to *.ashx, no matter what I set in my web.config file. So I have this *.ashx URL (/~/media/5EE32493443547ED8DB0B26166209C85.ashx
) but I can't take advantage on it and generate normal *.jpg URL, which is /~/media/001FC62786B044F5888640C7164ED72F.JPG
.
*.ashx URL has ID in it (5EE32493-4435-47ED-8DB0-B26166209C85
), but *.jpg doesn't...
Also when I paste *.ashx URL into browser, server responds with exception that resource couldn't be found.