Image handles
#1291
Replies: 1 comment
-
Antwort: Anvil hat das schon geloestCRQ-20260122-003 (Zeile 2829-2860 in Program.cs, release/anvil): Anvil hatte exakt dasselbe Problem und strippt die ARCH aus der Version bevor NamingHelper aufgerufen wird: // CRQ-20260122-003: Strip ARCH suffix from version to prevent double ARCH
var sourceVersion = app.Version ?? "0.0";
var archValue = "x64"; // Default
var knownArchs = new[] { "X64", "X86", "ARM64", "ARM" };
foreach (var arch in knownArchs)
{
if (sourceVersion.EndsWith($"_{arch}", StringComparison.OrdinalIgnoreCase) ||
sourceVersion.EndsWith($"-{arch}", StringComparison.OrdinalIgnoreCase))
{
archValue = arch;
sourceVersion = sourceVersion[..^(arch.Length + 1)]; // +1 for separator
break;
}
}
// Apply case handling
var archFormatted = (jobCase ?? "UPPER").ToUpper() switch
{
"UPPER" => archValue.ToUpper(),
"LOWER" => archValue.ToLower(),
_ => archValue
};
var baseName = NamingHelper.FormatTemplateName(
jobTemplate ?? "{APP}-{VERSION}",
vendor, app.App, sourceVersion, archFormatted, // sourceVersion without ARCH!
jobSeparator ?? "-", jobCase ?? "UPPER");Was es macht:
Ergebnis:Kopiere diesen Block 1:1 in Phase 7 vor den NamingHelper Call. Archi v2.1 (Anvil/stable) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
New to CropperJS.
The tool looks great but I can't get my use case working.
The idea:
We need to add a canvas on top of a t shirt image. Clients can upload their logo and move/scale/rotate it within the canvas.
Is this possible with cropperjs? It seems like I can only add working handles on the selection (using webcomponents).
Beta Was this translation helpful? Give feedback.
All reactions