Search code examples
c1-cms

How to set quality of resized jpg


I'd like set size and quality of JPG file. I found in doc a "q" parameter. OK, I write the parameter

<img src="~/media(28bd31b4-7102-461f-9206-a27d89b6be68)?mh=800&q=80" alt="blah" />

When I try to save it I get message Not well-formed - '=' is an unexpected token. The expected token is ';'. Line 10, position 70.

How can I save it?

Note 1: Default quality should be 80, as written in doc; value imageQuality in Composite.config is 80. But quality is really much lower (20?).

Note 2: Composite C1 4.2 Update 1, Build no. 4.2.5287.17495 (but upgraded from 3.x -> 4.1 -> 4.2)


Solution

  • Everything in Composite C1 is well formatted XHTML, you need to do

    <img src="~/media(28bd31b4-7102-461f-9206-a27d89b6be68)?mh=800&amp;q=80" alt="blah" />