# Allow user to specify size of image via attributes

**URL:** <https://meta.discourse.org/t/allow-user-to-specify-size-of-image-via-attributes/26130>\
**Category:** Feature\
**Created:** [2015 年3 月 9 日 15:40 UTC](https://meta.discourse.org/t/allow-user-to-specify-size-of-image-via-attributes/26130 "2015-03-09T15:40:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![RaceProUK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raceprouk/32/115844_2.png) [@RaceProUK](https://meta.discourse.org/u/RaceProUK)\
发布日期： [2015 年3 月 9 日 15:40 UTC](https://meta.discourse.org/t/allow-user-to-specify-size-of-image-via-attributes/26130/1 "2015-03-09T15:40:25Z")

</div>

Originally reported over at TDWTF:

> **[What the Daily WTF?](https://what.thedailywtf.com/login)**

Don’t know how easy this one is to fix, and to be fair, I am rather misusing ninja edits by way of automation, but I figured it’s still worth reporting.

Steps to reproduce:

1. Start writing a post and add an image to it
2. Change the `width`/`height` attributes of the image (I make them smaller, and usually remove one of the attributes too)
3. Submit the post
4. Wait for the bot that automates some actions for you to ninja edit the post (for me, it’s usually within a few seconds)

Result: The image expands to the size the upload set it to.

Weirdly, if you ninja-edit manually, the issue doesn’t occur; it’s only when it’s done ‘behind the scenes’ the issue rears its head.

* * *

Not sure how well-known the term `ninja edit` is here; happy to explain if required 😉

---

_[View the full topic](https://meta.discourse.org/t/allow-user-to-specify-size-of-image-via-attributes/26130)._
