I have a small section of sheet music I was looking to add to my chordpro file. I added it using an image tag in the .cho file, but all I get is a boxed ‘X’ symbol. It appears like images are supported but I can’t get it to find the file. Is this the case, and if so how would I add in an image with a relative path? Or, is the image not found symbol just a marker to show that images are unsupported?
im still having problems inserting an image
have created a folder in c drive called myimages and saved a file called demo.jpg
inserted this into my chordpro file and still get an x in a box while displaying.
inserted this into beginning of chord pro file {image: “C:\myimages\demo.jpg”}
any chance of demo file with corect code in
cheers
Try {image:“C:\Users\YOUR NAME\myimages\demo.jpg”}
In place of YOUR NAME enter whatever path it requires to get to your myimages folder. Until I entered the full path including “Users\John Talley” I was always getting that box with an “X”.
I was able to produce this result. I’ve been waiting to be able to do this for a while…Thanks!!
Great tip. Also, the “image” tag also allows width and height arguments so you can control the size on the fly rather than having to preprocess the file.
Would this be entered as a second command…or included in the original command?
Example: {image:“C:\Users\John Talley\Documents\Tunes\Image Test\Senor Blues.jpg” width:600 height:141}
This just comes up with a blank page.
I recommend keeping with Win10 standards and placing the images you want to include somewhere under your My Documents folder.
Hand-typing the absolute address is a pain, and prone to error (don’t ask).
I highlight the image file in Explorer, then left-click in the address bar. That displays the absolute address (except the image file), already highlighted.
Press Ctrl-C to copy, then Ctrl-V to paste it into the Chord Pro file.
Then highlight the image filename in Explorer and Ctrl-C to Copy.
Add a backslash to the end of the previously pasted absolute directory string, then Ctrl-V to paste the image filename to the end of the directory string.