mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 18:18:35 +00:00
Batch: do not export into a subfolder that holds source files
With `includeSubdirs` and the destination folder the same as the source folder, the Export for Screens folder of `a.svg` was `a`, and its `Artboard-1.svg` replaced the source `a/Artboard-1.svg` before Batch opened it. Batch now keeps the names of subfolders of the destination folder that hold source files, so that export folder is `a-2`.
This commit is contained in:
+3
-2
@@ -1525,8 +1525,9 @@ already walks Image Trace. Short agent entry points:
|
||||
add `-2`, `-3`… to the name for each later file (compared without case), as for data sets. They also add it when a
|
||||
later file's folder or file would have the name of a file or folder an earlier one wrote: with the folder
|
||||
destination, `a.svg` is saved as `a.svg`, so the Export for Screens folder of `a.svg.svg` is `a.svg-2`. When
|
||||
`destinationFolder` holds source files, only a file's own output takes its name: with `a..svg` and `a.svg` saved
|
||||
in place, `a..svg` is saved as `a-2.svg` and `a.svg` over itself.
|
||||
`destinationFolder` holds source files, only a file's own output takes its name, and no export folder takes the
|
||||
name of a subfolder that holds source files: with `a..svg` and `a.svg` saved in place, `a..svg` is saved as
|
||||
`a-2.svg` and `a.svg` over itself.
|
||||
- Image Trace: `imageTrace.presets`, `imageTrace.make {id?, preset?, params?, view?}` (or `imageTrace.makeAndExpand`),
|
||||
`imageTrace.setView`, `imageTrace.expand`, `imageTrace.release`. A key inside `params` that is not one of the trace
|
||||
settings, such as `colours`, is an error that names it and the nearest setting (`colors`), as for a command's own keys.
|
||||
|
||||
Reference in New Issue
Block a user