Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Luciox 22 posts 115 karma points
    Feb 12, 2015 @ 17:17
    Luciox
    0

    Media Picker in Rich Text Editor appending image width / height on src tag

    We are using Umbraco 7.1.8 on .net 4.5, backed with SQL Server.

    When using the Richtext editor type for the body text (Umbraco.TinyMCEv3) to insert an image with the mediapicker (umbmediapicker), the dimensions of the image are appended to the src as an argument.

    e.g. src="/media/123/logo.jpg?width=222&height=50".

    Page fails on save with YSOD: Illegal characters in path for CheckInvalidPathChars. Manually removing the arguments allows the page to save correctly.

    Is there a way we can switch off the width and height arguments on the src tag? Or get them to save correctly?

     

    Many thanks!

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Feb 12, 2015 @ 17:25
  • Luciox 22 posts 115 karma points
    Mar 06, 2015 @ 11:52
    Luciox
    0

    Thanks for your reply, Alex.

    We found the field for maximum size for inserted images under Richtext Editor (under Developer / data types). It was set to a value (800) which would automatically scale any image over 800 pixels high / wide.

    We changed this to 0, which both removed the auto-resizing capability and stray arguments. All good!

     

Please Sign in or register to post replies

Write your reply to:

Draft