The ignoreWhite property of tracingOptions does not work
Illustrator v 28.0 - Image Trace option check box for Ignore White has been replaced with Ignore Color and an eyedropper option. While I think this is a good addition for manual use, it appears to have somewhat broken the ability to use image trace properly in javascript as the change has made the original "tracingOptions.ignoreWhite = true" no longer work. I suspect there is now an additional option/variable responsible for the color to be ignored's selection but it doesnt appear to be refferenced in any of the current documentation. I've tried adding the method for Abutting (also undocumented) as to enable ignore white option. I've also tried to blindly implement an option for ignorColor to establish a color. but still can no longer use any script that depends on white being ignored from an image trace. This is a fairly sizable setback for my workflow which worked fine before the update. Any feedback on this issue (particularly if someone in the know can provide the options that now need to be set in a script for image trace to ignore white) would be greatly appreciated.
-
Ten_A commented
Illustrator ver.28.3
macOS13.6.3/imac27inch Intel/32GBmem+1TB SSDIn the sample code below, the white areas of the image are not ignored even though the ignoreWhite property is set to true.
var p = app.activeDocument.placedItems.add();
p.file = File.openDialog("Select Image");
var t = p.trace();
t.tracing.tracingOptions.viewMode = ViewType.TRACINGVIEWVECTORTRACINGRESULT;
t.tracing.tracingOptions.tracingMode = TracingModeType.TRACINGMODEBLACKANDWHITE;
t.tracing.tracingOptions.tracingColorTypeValue = TracingColorType.TRACINGLIMITEDCOLOR;
t.tracing.tracingOptions.palette = "ライブラリなし";
t.tracing.tracingOptions.colorGroup = "グレー";
t.tracing.tracingOptions.tracingColors = 30;
t.tracing.tracingOptions.colorFidelity = 100;
t.tracing.tracingOptions.threshold = 200;
t.tracing.tracingOptions.grayLevels = 250;
t.tracing.tracingOptions.pathFidelity = 10;
t.tracing.tracingOptions.cornerFidelity = 100;
t.tracing.tracingOptions.noiseFidelity = 50;
t.tracing.tracingOptions.tracingMethod = TracingMethodType.TRACINGMETHODOVERLAPPING;
t.tracing.tracingOptions.fills = true;
t.tracing.tracingOptions.strokes = false;
t.tracing.tracingOptions.maxStrokeWeight = 10;
t.tracing.tracingOptions.snapCurveToLines = true;
t.tracing.tracingOptions.ignoreWhite = true;
app.redraw();
t.tracing.expandTracing();Testing with ver. 27.9.2 shows that the ignoreWhite property is handled as set.