obsidian-leaflet icon indicating copy to clipboard operation
obsidian-leaflet copied to clipboard

[Bug]: Issue Getting Image Dimensions

Open r0heezy opened this issue 2 years ago • 3 comments

Check for existing bug reports before submitting.

  • [X] I searched for existing Bug Reports and found no similar reports.

Expected Behavior

Map should have appeared after inputting code

Current behaviour

Obsidian says "issue getting image's dimensions".

image

Reproduction

Here is the code I am inputting:

id: leaflet-map
image: [[Map_02.png]]]
height: 900px 
width: 95%
bounds: [[0,0], [4241.91, 2205.88]]
lat: 907.53
long: 1402.74
minZoom: -1.5
maxZoom: 18
defaultZoom: -1
zoomDelta: 0.5
unit: miles
scale: 1
marker: default, 39.983334, -82.983330, [[Note]]
darkMode: true

Which Operating Systems are you using?

  • [ ] Android
  • [ ] iPhone/iPad
  • [ ] Linux
  • [ ] macOS
  • [X] Windows

Obsidian Version Check

1.3.5

Plugin Version

5.7.1

Confirmation

  • [X] I have disabled all other plugins and the issue still persists.

Possible solution

No response

r0heezy avatar Jul 22 '23 05:07 r0heezy

Have you solved the problem? I got the same message, and I realized that the file name had been changed by mistake, I corrected it and the problem was solved

rodrotp avatar Nov 18 '23 21:11 rodrotp

I'm having a similar issue, may there be a limit to the size of the .png file ? the image i'm trying to use is 2K resolution

BarnaBassiste avatar Jul 25 '24 17:07 BarnaBassiste

FIXED ! in my case i purely forgot to include doubble brackets and the file extention in the image line, hope it helps the format that ended working is Image : [[filename.extension]]

BarnaBassiste avatar Jul 26 '24 08:07 BarnaBassiste