improve ui
This commit is contained in:
21
src/App.vue
21
src/App.vue
@@ -50,13 +50,20 @@ async function exportBatch() {
|
||||
isExporting.value = true;
|
||||
|
||||
// Map images to include manual settings
|
||||
const exportTasks = store.images.map(img => ({
|
||||
path: img.path,
|
||||
manual_position: img.manualPosition || null,
|
||||
scale: img.scale || null,
|
||||
opacity: img.opacity || null,
|
||||
color: img.color || null
|
||||
}));
|
||||
const exportTasks = store.images.map(img => {
|
||||
// Extract filename from originalPath to ensure export uses original name
|
||||
// Handles both Windows (\) and Unix (/) separators
|
||||
const originalName = img.originalPath.split(/[/\\]/).pop() || "image.png";
|
||||
|
||||
return {
|
||||
path: img.path,
|
||||
output_filename: originalName,
|
||||
manual_position: img.manualPosition || null,
|
||||
scale: img.scale || null,
|
||||
opacity: img.opacity || null,
|
||||
color: img.color || null
|
||||
};
|
||||
});
|
||||
|
||||
// Pass dummy globals for rust struct compatibility
|
||||
// The backend struct fields are named _manual_override and _manual_position
|
||||
|
||||
Reference in New Issue
Block a user