• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ChordPro and images
#5
That's what I expected... And that's why I went for a uri to designate the image source. When the uri points to an image somewhere on the web, it cannot be backup up and restored anyway.
So, in short, it is the users responsibility to make sure that the file is there where the renderer expects it to be.
Simple file names (no path) can be taken relative to the ChordPro file. This is not unlike automatic processing of audio files, and PDF/CSV pairs.
For a start, it's okay to only deal with simple file names and forget about the uri idea.

As for the values/ranges for each proposed parameter:
  • parameter values are part of the parameter, separated by a =. No blanks.
  • width: an integral number (pixels) >= 1, defaults to the actual width of the image. If it is too wide to fit, the image is scaled (keeping aspect ratio) to fit.
  • height: similar to width. If both height and width are specified, aspect ratio may change.
  • scale: scaling factor (fixed point decimal). If the resultant dimensions exceed the screen, scale to fit. If the height does not fit on the current page, make a new page. Default is to scale to fit, unless scale=0.
  • center: if present the image will be centered on the screen, provided the actual width is smaller than the width of the screen.
  • border: provide a border around the image. Default is no border (border=0). Just border without width is a 1-pixel border.
Does that make sense?
Note that screen width and height are subject to margins the MSPro may enforce.
Fallback: If an image cannot be found, act as if the {image...} was {comment: image...}.
Johan
www.johanvromans.nlwww.hetgeluidvanseptember.nlwww.howsagoin.nl
Samsung Galaxy Note S7FE (T733) 12.4", Android 11.0, AirTurn Duo & Digit.
Samsung Galaxy Note S4 (T830) 10.5", Android 10.0 (non-MSPRo, backup).
Samsung A3 (A320FL), Android 8.0.0 (emergency).
Reply


Messages In This Thread
ChordPro and images - by sciurius - 03-31-2016, 06:17 PM
RE: ChordPro and images - by itsme - 03-31-2016, 08:37 PM
RE: ChordPro and images - by sciurius - 03-31-2016, 09:35 PM
RE: ChordPro and images - by Zubersoft - 04-01-2016, 03:20 AM
RE: ChordPro and images - by sciurius - 04-01-2016, 04:03 AM
RE: ChordPro and images - by Zubersoft - 04-01-2016, 04:24 AM
RE: ChordPro and images - by AndyL - 04-02-2016, 12:55 AM
RE: ChordPro and images - by Zubersoft - 04-02-2016, 09:16 PM
RE: ChordPro and images - by itsme - 04-02-2016, 09:53 PM
RE: ChordPro and images - by NeoCZ - 11-15-2018, 05:53 AM
RE: ChordPro and images - by Zubersoft - 11-18-2018, 05:43 AM
RE: ChordPro and images - by sciurius - 11-18-2018, 08:19 AM
RE: ChordPro and images - by Zubersoft - 11-18-2018, 11:47 AM
RE: ChordPro and images - by sciurius - 11-19-2018, 06:34 AM
RE: ChordPro and images - by NeoCZ - 11-19-2018, 07:59 AM
RE: ChordPro and images - by sciurius - 11-20-2018, 06:47 PM
RE: ChordPro and images - by Zubersoft - 11-22-2018, 02:50 AM
RE: ChordPro and images - by sciurius - 11-22-2018, 07:42 AM
RE: ChordPro and images - by sciurius - 11-22-2018, 09:18 PM
RE: ChordPro and images - by Zubersoft - 11-23-2018, 02:02 AM
RE: ChordPro and images - by sciurius - 11-23-2018, 04:32 AM
RE: ChordPro and images - by Geoff Bacon - 11-23-2018, 05:19 AM
RE: ChordPro and images - by sciurius - 11-23-2018, 06:18 AM
RE: ChordPro and images - by ammelch - 09-27-2019, 02:19 AM
RE: ChordPro and images - by Zubersoft - 09-27-2019, 02:58 AM
RE: ChordPro and images - by laurent - 12-21-2020, 06:18 PM
RE: ChordPro and images - by BRX - 12-22-2020, 08:19 PM
RE: ChordPro and images - by sciurius - 12-23-2020, 07:23 PM
RE: ChordPro and images - by Heronimus - 07-30-2021, 10:37 PM
RE: ChordPro and images - by NeoCZ - 12-23-2020, 08:12 PM
RE: ChordPro and images - by eichelbe - 12-31-2020, 06:07 PM
RE: ChordPro and images - by sciurius - 12-31-2020, 06:50 PM
RE: ChordPro and images - by eichelbe - 12-31-2020, 07:06 PM
RE: ChordPro and images - by charly44 - 05-27-2021, 03:43 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.