Skip to content

Image in Editor adding width and height properties #112

@steved-83

Description

@steved-83

Do you want to request a feature or report a bug?
Reporting a bug.

What is the current behavior?
In edit mode, images are being given a width and height property which causes them to be stretched in the editor (in preview they look normal)

If the current behavior is a bug, please provide the steps to reproduce.
Insert Image into component calling RenderDpiAware(900, null, null, 2, false)
Editor HTML for image -
<img src="/sitecore/shell/~/media/ANS/Sites/ANS/Images/ScaryTurtle.ashx?h=600&amp;iar=0&amp;mw=900&amp;w=900" alt="" width="900" height="600">
Preview HTML for image -
<img src="/ans/~/media/ANS/Sites/ANS/Images/ScaryTurtle.ashx?mw=900&amp;hash=9698518DB916174D67CC382CCE240600" srcset="/ans/~/media/ANS/Sites/ANS/Images/ScaryTurtle.ashx?mw=1800&amp;hash=490C9FF1229D61E5EC3D0ABB2CC19AE2 2x">

Please mention your Sitecore version and Synthesis version.
10.1 SC, 9.1.6 syn
Screenshot 2023-08-24 at 10 36 45 AM
Screenshot 2023-08-24 at 10 36 55 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions