[Mac] Image showing in wrong orientation

Steps to reproduce

Without checking the size of the image, drag the first image you can pick up from Finder to a new note in the Obsidian markdown panel. Especially if you know, for sure, that’s an image of high-quality. Check if the file was added properly to the File Explorer panel. Split the note view vertically. It should open the same note on the right side. And choose to show in the preview mode.

Expected result

Regardless of the size of the image, the photo should be loaded in the same way and orientation as it appears in the Finder preview.

Actual result

After testing with at least 5 different images, but of similar sizes and resolutions, they all appeared as if they were lying on the left side. Horizontally-oriented, instead of vertically as we should expect.

Environment

  • Operating system: macOS Catalina 10.15.5
  • Obsidian version: v. 0.6.5
  • Using custom CSS: None.

Additional information

Since I was suspecting that it was something related to the image resolution, I did a test with a smaller image and everything went as expected. I imagine that after a certain size, the images appear in an unexpected way.

Here is a screenshot of a high-res photo added to a note. 2448 × 3264 with 2mb.

Here is a screenshot of a low-res photo/image added to a note. 412x330 with 41k.

I hope this bug report will be useful understand what may be causing this unwanted image behaviour.

A post was merged into an existing topic: Image embeds: portrait photograph gets embedded in landscape mode