11-20-2018, 06:47 PM
Mike, what if we invent a way to embed the image in the ChordPro file?
For example (just a proposal):
and at the end of the ChordPro file:
MSPro would then only support these type of images, and I think it would be reasonably straightforward for Companion to turn a file link into an embedded image. By 'hiding' the image data within #-comments it will not get in the way of most other tools.
For example (just a proposal):
Code:
{image id=img1 center}
and at the end of the ChordPro file:
Code:
##image: id=img1 type=jpg width=600 height=84 enc=base64
# /9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEP
# ERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4e
# Hh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCBMbC7gDAREA
# ...
# EBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ
# EBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEH//2Q==
MSPro would then only support these type of images, and I think it would be reasonably straightforward for Companion to turn a file link into an embedded image. By 'hiding' the image data within #-comments it will not get in the way of most other tools.
Johan
johanvromans.nl — hetgeluidvanseptember.nl — mojore.nl -- howsagoin.nl
Samsung Galaxy Note S7FE (T733) 12.4", Android 13.0, AirTurn Duo & Digit (Gigs).
Samsung Galaxy Note S4 (T830) 10.5", Android 10.0 (maintenance and backup).
Samsung A3 (A320FL), Android 8.0.0 (emergency).
johanvromans.nl — hetgeluidvanseptember.nl — mojore.nl -- howsagoin.nl
Samsung Galaxy Note S7FE (T733) 12.4", Android 13.0, AirTurn Duo & Digit (Gigs).
Samsung Galaxy Note S4 (T830) 10.5", Android 10.0 (maintenance and backup).
Samsung A3 (A320FL), Android 8.0.0 (emergency).