ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

remove image size from embedded images

September 13, 2012 4:15pm

Subscribe [2]
  • #1 / Sep 13, 2012 4:15pm

    James Mattison

    8 posts

    Hi,

    I’m using a responsive layout which automatically scales images based on CSS like width:100% height:auto

    My problem is that when I upload a file through the file manager and embed it in my channel entry, it brings with it the height and width of the image. This then breaks my CSS/layout. Currently my solution is to manually delete out the height and width parameters from the embedded image tag, but I always forget and have to go back in and edit the entry which is annoying.

    Is there any way to prevent EE automatically adding the height and width?

  • #2 / Sep 17, 2012 11:56am

    Shane Eckert

    7174 posts

    Hello James,

    Thank you for your question.

    Unfortunately, there is no way to disable this. Though this sounds like a great Feature Request. Overriding the height and width tags would be a great option.

    Is there anything else I can help you with?

    Thank you,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases