x3d-image 1.0.84 → 1.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,7 +18,7 @@ You can run *x3d-image* without installing it using **npx**:
18
18
 
19
19
  ### -i *file*
20
20
 
21
- Set input file.
21
+ Set input file. This can be either a local file path or a URL.
22
22
 
23
23
  ### -o *file*
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x3d-image",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "Render image files from X3D",
5
5
  "main": "src/main.js",
6
6
  "bin": {
@@ -53,7 +53,7 @@
53
53
  "dependencies": {
54
54
  "colors": "^1.4.0",
55
55
  "electron": "^32.1.2",
56
- "x_ite": "^10.5.6",
56
+ "x_ite": "^10.5.7",
57
57
  "yargs": "^17.7.2"
58
58
  },
59
59
  "devDependencies": {
package/src/image.js CHANGED
@@ -6,6 +6,7 @@ const
6
6
  electron = require ("electron"),
7
7
  yargs = require ("yargs"),
8
8
  path = require ("path"),
9
+ url = require ("url"),
9
10
  fs = require ("fs"),
10
11
  DEBUG = false;
11
12
 
@@ -104,7 +105,7 @@ async function generate (argv)
104
105
  const
105
106
  canvas = document .getElementById ("browser"),
106
107
  Browser = canvas .browser,
107
- input = path .resolve (args .cwd, args .input),
108
+ input = new URL (args .input, url .pathToFileURL (path .join (args .cwd, "/"))),
108
109
  output = path .resolve (args .cwd, args .output),
109
110
  size = args .size .split ("x"),
110
111
  width = parseInt (size [0]) || 1280,