# Changing max\_image\_size\_kb

**URL:** <https://meta.discourse.org/t/changing-max-image-size-kb/247420>\
**Category:** Product Support\
**Tags:** uploads, s3\
**Created:** [December 2, 2022, 1:25am UTC](https://meta.discourse.org/t/changing-max-image-size-kb/247420 "2022-12-02T01:25:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![fearlessfrog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fearlessfrog/32/119653_2.png) [@fearlessfrog](https://meta.discourse.org/u/fearlessfrog)\
**Post date:** [December 5, 2022, 9:45pm UTC](https://meta.discourse.org/t/changing-max-image-size-kb/247420/4 "2022-12-05T21:45:00Z")

</div>

> [@Falco](#):
>
> Be sure to glance over [the script code](https://github.com/discourse/discourse/blob/main/lib/tasks/uploads.rake#L1095) as this is a destructive action.

Apologies in that I can’t sign the CLA due to my work, so without a PR wanted to pass on that..

> <https://github.com/discourse/discourse/blob/1d42cc94a2c74633178d4e75560368d89576f2aa/lib/tasks/uploads.rake#L1100>

..needs to be ARGV[1], otherwise it’s always using 500\_000 regardless of what’s passed in. Thanks again for the pointer to the right task, all files resized and working great. ❤

---

_[View the full topic](https://meta.discourse.org/t/changing-max-image-size-kb/247420)._
