Image quality degradation when resizing in Obsidian


left: image resized to 200 px (![[image.png|200]]). right: image in Microsoft Photos app scaled to be the same size

Image quality degradation when resizing in Obsidian - jagged diagonal lines

Steps to reproduce

  1. Create a new empty vault with no plugins, themes, or CSS snippets
  2. Insert any image with diagonal lines (e.g., a screenshot of a graph or a photo with diagonal architectural elements)
  3. Resize the image using Obsidian’s standard syntax ![[image.png|300]]
  4. Notice the jagged appearance of diagonal lines, appearing as distinct smaller vertical lines
  5. Compare with the same image opened in any standard photo viewer to see the difference

Did you follow the troubleshooting guide?

Yes. Tested in a completely clean vault with no plugins, themes, or CSS snippets installed.

Expected result

Resized images should maintain smooth diagonal lines, similar to how they appear in standard photo viewers/editors.

Actual result

Diagonal lines appear jagged and pixelated, showing distinct “stair-step” patterns. The effect is particularly noticeable on diagonal lines which appear as a series of smaller vertical lines. But general loss in quality is observable throughout the image.

Environment

  • Obsidian version: 1.7.7
  • Operating system: Windows 10
  • Using custom CSS: No
  • Using custom theme: No
  • Using any relevant plugins: No

Additional Notes

I’ve attempted various CSS fixes including image rendering properties like -webkit-optimize-contrast, crisp-edges, and auto, but none have resolved the issue. The problem persists even in a clean vault with no customizations.

Linking discussion of this on Reddit: https://www.reddit.com/r/ObsidianMD/comments/1icyynk/image_quality_degradation_when_resizing_in/

did you try to open the image in chrome and resize it?

Image quality is still noticeably better in Chrome & Safari when scaled to the same size as Obsidian (cntrl + -, and also resize the browser window to get the same scaling effect). The difference in quality is the same as the image I posted in the beginning of the thread

On the off-chance that the electron update fixed this for you, can you check with the latest installer and see if it still happens? Update Obsidian - Obsidian Help

Updating the installer and re-installing Obsidian did not work.

Something strange that I noticed:

The image quality in READING MODE improves AFTER I use PREVIEW MODE. But if I open a file/restart my vault, and I start in READING MODE or SOURCE MODE, the quality is significantly worse (see second image)

image
^ SOURCE MODE

image
^ READING MODE

image
^ PREVIEW MODE

image
^ READING MODE (after engaging PREVIEW MODE)