# Large image resize - why only 64% scaling at most?

**URL:** <https://meta.discourse.org/t/large-image-resize-why-only-64-scaling-at-most/38347>\
**Category:** Support\
**Created:** [2016 年1 月 22 日 16:05 UTC](https://meta.discourse.org/t/large-image-resize-why-only-64-scaling-at-most/38347 "2016-01-22T16:05:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![scottfsmith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scottfsmith/32/50976_2.png) [@scottfsmith](https://meta.discourse.org/u/scottfsmith)\
发布日期： [2016 年1 月 22 日 16:05 UTC](https://meta.discourse.org/t/large-image-resize-why-only-64-scaling-at-most/38347/1 "2016-01-22T16:05:53Z")

</div>

I am happy that large image uploads are now being resized, but its not taking a 4.6MB image down to 1MB - I recently set the max image size to 1024K and tried uploading a 4.6MB image and got a too-large error.

Looking at the code it is doing a 80%-resize up to 2 times and if its not small enough by then it fails (I am looking at [discourse/app/controllers/uploads\_controller.rb at 42a523a3beae3fa646cff5bd4a7a822497a1a06a · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/42a523a3beae3fa646cff5bd4a7a822497a1a06a/app/controllers/uploads_controller.rb)) - ?? That will do at most a 64% resize which will not get 6MB to 1MB - ? Why is it so limited?

---

_[View the full topic](https://meta.discourse.org/t/large-image-resize-why-only-64-scaling-at-most/38347)._
