Title: Image-Width insertion
Last modified: August 22, 2016

---

# Image-Width insertion

 *  [compumatter](https://wordpress.org/support/users/compumatter/)
 * (@compumatter)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/image-width-insertion/)
 * Hello,
 * How can I remove the automatically inserted Image-width without that being overwritten
   by any plugin updates.
 * I do not wish to have image-width:100% automatically inserted on the displayed
   image. It appears to be coming from this plugin.
 * Otherwise, thank you for this plugin. It works well.
 * Jay
    Owner CompuMatter
 * [https://wordpress.org/plugins/image-widget/](https://wordpress.org/plugins/image-widget/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [compumatter](https://wordpress.org/support/users/compumatter/)
 * (@compumatter)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/image-width-insertion/#post-5638439)
 * Here is a link to a picture showing the issue at hand.
    [http://compumatter.com/test/max-width.png](http://compumatter.com/test/max-width.png)
 * The image highlighted in the top left corner was uploaded using your widget plugin.
 * Thanks again. Jay
 *  Thread Starter [compumatter](https://wordpress.org/support/users/compumatter/)
 * (@compumatter)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/image-width-insertion/#post-5638446)
 * OK, I took a video of the behavior that does not work. You can see the width 
   shrinks while the height does not. This causes the image to distort. Not good.
 * The solution is height:auto;
 * Here’s the bad behavior which I’ve uploaded to youtube: [http://youtu.be/w_6Kh-ljlYE](http://youtu.be/w_6Kh-ljlYE)
 * To correct it, I edited the plugin code and inserted $instance[‘height’] = ‘auto’;
 * It now scales both horizontally and vertically.
 * Recommended inclusion into this otherwise perfect plugin 😉
 * Jay
    CompuMatter

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Image-Width insertion’ is closed to new replies.

 * ![](https://ps.w.org/image-widget/assets/icon-256x256.png?rev=2489603)
 * [Image Widget](https://wordpress.org/plugins/image-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/image-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/image-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/image-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-widget/reviews/)

## Tags

 * [max-width](https://wordpress.org/support/topic-tag/max-width/)
 * [width](https://wordpress.org/support/topic-tag/width/)

 * 2 replies
 * 1 participant
 * Last reply from: [compumatter](https://wordpress.org/support/users/compumatter/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/image-width-insertion/#post-5638446)
 * Status: not resolved