Open Dherse opened 2 weeks ago
Good catch, as unfortunately there's not really any way to test how something will behave before it's uploaded to universe. However, changing to read()
wouldn't resolve the issue, as according to the docs, paths work the same way with that function as they do with image()
.
I'm submitting a change using what should be an absolute path to the project root, so we'll see how that goes.
Due to the way typst handles paths, if you use a string for the path, it will always try and get an image within the local copy of the package instead of inside of the user's project. This can be fixed by making
pic
an image or a byte array (i.eread("my_file.png")
and usingimage.decode
)