# Disable picture resizing question

**URL:** <https://discourse.joplinapp.org/t/disable-picture-resizing-question/12719>\
**Category:** Features\
**Created:** [27 November 2020 07:56 UTC](https://discourse.joplinapp.org/t/disable-picture-resizing-question/12719 "2020-11-27T07:56:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kally](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/kally/32/2355_2.png) [@kally](https://discourse.joplinapp.org/u/kally)\
**Post date:** [27 November 2020 07:56 UTC](https://discourse.joplinapp.org/t/disable-picture-resizing-question/12719/1 "2020-11-27T07:56:49Z")

</div>

Is it possible to disable the question to reduce the size of the pasted picture to 1920 pixels?

---

<div class="post-metadata">

**Author:** ![hesyifei](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/hesyifei/32/7203_2.png) [@hesyifei](https://discourse.joplinapp.org/u/hesyifei)\
**Post date:** [14 February 2021 09:32 UTC](https://discourse.joplinapp.org/t/disable-picture-resizing-question/12719/2 "2021-02-14T09:32:51Z")

</div>

+1. I think `handleResizeImage_` already supports a `resizeLargeImages` parameter ([joplin/shim-init-node.js at 42c80e6e286356a3f1da7982c16c509144c47e13 · laurent22/joplin · GitHub](https://github.com/laurent22/joplin/blob/42c80e6e286356a3f1da7982c16c509144c47e13/packages/lib/shim-init-node.js#L133)), it's just that it is always called with `'ask'` ([joplin/resourceHandling.ts at dev · laurent22/joplin · GitHub](https://github.com/laurent22/joplin/blob/dev/packages/app-desktop/gui/NoteEditor/utils/resourceHandling.ts#L73-L76)). So we just need to add an item in the preferences to allow selecting the default behavior.

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [14 February 2021 19:01 UTC](https://discourse.joplinapp.org/t/disable-picture-resizing-question/12719/3 "2021-02-14T19:01:24Z")

</div>

AFAIK Laurent already added code that only big pictures \>5000x5000 are resized.

However, before he did that I added my own paramter to settings that does exactly that. Since I force push that branch, the commits won't stay the same. Thus it's best to look for the commit named `add setting: image.noresizing` in branch `tweaks` [GitHub - tessus/joplin at tweaks](https://github.com/tessus/joplin/tree/tweaks).  
You should be able to cherry-pick it.

---

<div class="post-metadata">

**Author:** ![kally](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/kally/32/2355_2.png) [@kally](https://discourse.joplinapp.org/u/kally)\
**Post date:** [28 May 2021 07:15 UTC](https://discourse.joplinapp.org/t/disable-picture-resizing-question/12719/4 "2021-05-28T07:15:44Z")

</div>

Hello tessus,  
unfortunately I am not familiar with branches etc.  
Would it be possible to "just" implement it as a setting in the next release so one can change it globally?

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [28 May 2021 16:01 UTC](https://discourse.joplinapp.org/t/disable-picture-resizing-question/12719/5 "2021-05-28T16:01:59Z")

</div>

I don't believe that Laurent wants that option in Joplin. (I brought that up with him a long time ago.)

Which is the reason why I created my own branch.
