xRyul / obsidian-image-converter

⚡️ Convert and compress images from one format to another by drag'n'dropping or pasting files into the note.
MIT License
111 stars 11 forks source link

Setting to only shrink larger images, not upscale smaller images #58

Open ZachAttakk opened 1 month ago

ZachAttakk commented 1 month ago

As an example, if image resize is set to 500px (any resize setting, for instance "width"), larger images are resized down to the correct size, but small images are upscaled to the same resolution. When Book Search brings in a book cover (128x196px) it is scaled up to 500px to horrible effect.

Before: image

After: image

This necessitates that the setting remain off and larger images needing to be scaled individually.

Is it possible to have a setting that will only scale images down if they are over the size threshold?