File size: 16,870 Bytes
70ceb8b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 | // Configuration file for ResolutionMaster
// Contains tooltips and preset categories to reduce main file size
export const tooltips = {
// Primary controls (excluding sliders and 2D canvas)
swapBtn: "Swap width and height values",
snapBtn: "Snap current resolution to the nearest snap value",
snapValueArea: "Click to set custom snap value",
// Output value areas (editable)
widthValueArea: "Click to set custom width value",
heightValueArea: "Click to set custom height value",
batchSizeValueArea: "Click to set custom batch size value",
latValueArea: "Click to select latent type (4x8 for SD/SDXL/Flux, 128x16 for Flux.2)",
// Scaling controls (buttons and dropdowns only)
scaleBtn: "Apply manual scaling factor and reset to 1.0x",
upscaleRadio: "Use manual scaling mode for rescale output",
scaleValueArea: "Click to set custom scale value (e.g., 2.5x)",
resolutionBtn: "Scale to target resolution (e.g., 1080p)",
resolutionDropdown: "Select target resolution for scaling",
resolutionRadio: "Use resolution-based scaling for rescale output",
resolutionValueArea: "Click to set custom resolution scale factor",
megapixelsBtn: "Scale to target megapixel count",
megapixelsRadio: "Use megapixel-based scaling for rescale output",
megapixelsValueArea: "Click to set custom megapixel value (e.g., 3.5MP)",
// Auto-detect controls
autoDetectToggle: "Automatically detect resolution from connected image input",
autoFitBtn: "Find and apply best preset match for current resolution",
autoFitCheckbox: "Automatically find and apply the best preset for the new detected image resolution",
autoResizeBtn: "Apply scaling based on selected mode (Manual/Resolution/Megapixels)",
autoResizeCheckbox: "Automatically apply scaling when new image is detected",
detectedInfo: "Click to apply detected image resolution directly",
// Preset controls
categoryDropdown: "Select preset category (Standard, SDXL, Flux, HiDream Dev, Qwen-Image, etc.)",
presetDropdown: "Choose specific preset from selected category",
customCalcCheckbox: "Automatically apply model-specific optimizations for the new detected image resolution (read orange information below)",
autoCalcBtn: "Apply model-specific optimizations for current resolution (read orange information below)",
// Section headers
actionsHeader: "Click to collapse/expand Actions section",
scalingHeader: "Click to collapse/expand Scaling section",
autoDetectHeader: "Click to collapse/expand Auto-Detect section",
presetsHeader: "Click to collapse/expand Presets section"
};
// Tooltips for Preset Manager Dialog
export const presetManagerTooltips = {
// Footer buttons
'add-preset-btn': 'Add a new custom preset to manage your resolution presets',
'delete-selected-btn': 'Delete all selected presets at once (use Shift+Click to select multiple)',
'import-btn': 'Import custom presets from a JSON file',
'export-btn': 'Export your custom presets to a JSON file for backup or sharing',
'edit-json-btn': 'Edit presets directly in JSON format with syntax highlighting',
'close-btn': 'Close the Preset Manager dialog',
'back-btn': 'Return to the preset list view',
// Add/Edit view
'category-select-btn': 'Select or create a category for your presets',
'resolution-master-preset-add-rename-category-btn': 'Rename this category',
'quick-add-button': 'Add or save this preset to the selected category',
// List view
'manage-presets-btn': 'Open the preset manager to add, edit, or delete custom presets',
'resolution-master-preset-list-edit-btn': 'Edit this item',
'resolution-master-preset-list-delete-btn': 'Delete this custom preset',
'resolution-master-preset-toggle-btn': 'Toggle visibility of this built-in preset',
'resolution-master-preset-list-edit-category-btn': 'Edit this category',
'resolution-master-preset-list-category-header': 'Drag to reorder categories',
'resolution-master-preset-list-category-name': 'Double-click to rename',
'resolution-master-preset-list-name': 'Double-click to rename this preset',
'resolution-master-preset-list-checkbox': 'Select for bulk deletion (use Shift+Click to select a range)',
'resolution-master-preset-list-clone-handle': 'Drag to duplicate this preset',
'resolution-master-aspect-ratio-preset-action-btn': {
'delete': 'Delete this custom preset',
'hide': 'Hide this built-in preset from the main selector',
'unhide': 'Show this hidden preset in the main selector'
},
// JSON Editor Dialog
'json-editor-close-btn': 'Close JSON editor without saving changes',
'json-editor-format-btn': 'Auto-format JSON with proper indentation (Ctrl+Shift+F)',
'json-editor-cancel-btn': 'Close editor and discard any changes',
'json-editor-apply-btn': 'Save changes and update presets configuration'
};
export const presetCategories = {
'Standard': {
'1:1 Square': { width: 512, height: 512 },
'1:2 Tall': { width: 512, height: 1024 },
'1:3 Ultra Tall': { width: 512, height: 1536 },
'2:3 Portrait': { width: 512, height: 768 },
'3:4 Portrait': { width: 576, height: 768 },
'4:5 Portrait': { width: 512, height: 640 },
'4:7 Phone': { width: 512, height: 896 },
'5:12 Banner': { width: 512, height: 1228 },
'7:9 Vertical': { width: 512, height: 658 },
'9:16 Mobile': { width: 576, height: 1024 },
'9:21 Ultra Mobile': { width: 512, height: 1194 },
'10:16 Monitor': { width: 640, height: 1024 },
'13:19 Tall Screen': { width: 512, height: 748 },
'3:2 Landscape': { width: 768, height: 512 },
'4:3 Classic': { width: 512, height: 384 },
'16:9 Widescreen': { width: 768, height: 432 },
'21:9 Ultrawide': { width: 1024, height: 439 }
},
'SDXL': {
'1:1 Square': { width: 1024, height: 1024 },
'3:4 Portrait': { width: 768, height: 1024 },
'4:5 Portrait': { width: 915, height: 1144 },
'5:12 Portrait': { width: 640, height: 1536 },
'7:9 Portrait': { width: 896, height: 1152 },
'9:16 Portrait': { width: 768, height: 1344 },
'13:19 Portrait': { width: 832, height: 1216 },
'3:2 Landscape': { width: 1254, height: 836 }
},
'Flux': {
'1:1 Square (Standard)': { width: 1024, height: 1024 },
'1:1 Square (Medium)': { width: 1408, height: 1408 },
'1:1 Square (High)': { width: 1440, height: 1440 },
'2:3 Portrait': { width: 832, height: 1248 },
'3:4 Portrait': { width: 896, height: 1184 },
'4:5 Portrait': { width: 928, height: 1152 },
'9:16 Portrait': { width: 768, height: 1344 },
'9:21 Portrait': { width: 672, height: 1440 },
},
'Flux.2': {
'1:1 Square': { width: 2048, height: 2048 },
'1:1 Square Native': { width: 2336, height: 2336 },
'2:3 Portrait': { width: 1632, height: 2448 },
'3:4 Portrait': { width: 1728, height: 2304 },
'4:5 Portrait': { width: 1792, height: 2240 },
'9:16 Portrait': { width: 1472, height: 2624 },
'3:2 Landscape': { width: 2448, height: 1632 },
'4:3 Landscape': { width: 2304, height: 1728 },
'16:9 Landscape': { width: 2624, height: 1472 },
'21:9 Ultrawide': { width: 2912, height: 1248 },
},
'WAN': {
// Community Presets
'16:9 Landscape-1280': { width: 1280, height: 720 },
'16:9 Landscape-832': { width: 832, height: 480 },
'1:1 Square-512': { width: 512, height: 512 },
'1:1 Square-768': { width: 768, height: 768 },
// Original Presets
'1:1 Square-720': { width: 720, height: 720 },
'2:3 Portrait': { width: 588, height: 882 },
'3:4 Portrait': { width: 624, height: 832 },
'9:21 Portrait': { width: 549, height: 1280 },
'3:2 Landscape': { width: 1080, height: 720 },
'4:3 Landscape': { width: 960, height: 720 },
'21:9 Landscape': { width: 1680, height: 720 }
},
'HiDream Dev': {
'1:1 Square-1024': { width: 1024, height: 1024 },
'1:1 Square-1280': { width: 1280, height: 1280 },
'1:1 Square-1536': { width: 1536, height: 1536 },
'16:9 Landscape': { width: 1360, height: 768 },
'3:2 Landscape': { width: 1248, height: 832 },
'4:3 Landscape': { width: 1168, height: 880 },
},
'Qwen-Image': {
'1:1 Square (Default)': { width: 1328, height: 1328 },
'16:9 Landscape': { width: 1664, height: 928 },
'4:3 Landscape': { width: 1472, height: 1104 },
'3:2 Landscape': { width: 1584, height: 1056 },
// Tests Presets
'1:1 Square-1024': { width: 1024, height: 1024 },
'3:4 Portrait': { width: 768, height: 1024 }
},
'ZImageTurbo': {
// === Base 1024 ===
'1:1 Square (1024)': { width: 1024, height: 1024 },
'9:7 Landscape (1024)': { width: 1152, height: 896 },
'7:9 Portrait (1024)': { width: 896, height: 1152 },
'4:3 Landscape (1024)': { width: 1152, height: 864 },
'3:4 Portrait (1024)': { width: 864, height: 1152 },
'3:2 Landscape (1024)': { width: 1248, height: 832 },
'2:3 Portrait (1024)': { width: 832, height: 1248 },
'16:9 Widescreen (1024)': { width: 1280, height: 720 },
'9:16 Portrait (1024)': { width: 720, height: 1280 },
'21:9 Ultrawide (1024)': { width: 1344, height: 576 },
'9:21 Ultra Portrait (1024)': { width: 576, height: 1344 },
// === Base 1280 ===
'1:1 Square (1280)': { width: 1280, height: 1280 },
'9:7 Landscape (1280)': { width: 1440, height: 1120 },
'7:9 Portrait (1280)': { width: 1120, height: 1440 },
'4:3 Landscape (1280)': { width: 1472, height: 1104 },
'3:4 Portrait (1280)': { width: 1104, height: 1472 },
'3:2 Landscape (1280)': { width: 1536, height: 1024 },
'2:3 Portrait (1280)': { width: 1024, height: 1536 },
'16:9 Widescreen (1280)': { width: 1536, height: 864 },
'9:16 Portrait (1280)': { width: 864, height: 1536 },
'21:9 Ultrawide (1280)': { width: 1680, height: 720 },
'9:21 Ultra Portrait (1280)': { width: 720, height: 1680 },
// === Base 1536 ===
'1:1 Square (1536)': { width: 1536, height: 1536 },
'9:7 Landscape (1536)': { width: 1728, height: 1344 },
'7:9 Portrait (1536)': { width: 1344, height: 1728 },
'4:3 Landscape (1536)': { width: 1728, height: 1296 },
'3:4 Portrait (1536)': { width: 1296, height: 1728 },
'3:2 Landscape (1536)': { width: 1872, height: 1248 },
'2:3 Portrait (1536)': { width: 1248, height: 1872 },
'16:9 Widescreen (1536)': { width: 2048, height: 1152 },
'9:16 Portrait (1536)': { width: 1152, height: 2048 },
'21:9 Ultrawide (1536)': { width: 2016, height: 864 },
'9:21 Ultra Portrait (1536)': { width: 864, height: 2016 },
},
'Social Media': {
// Instagram
'Instagram Square': { width: 1080, height: 1080 },
'Instagram Portrait': { width: 1080, height: 1350 },
'Instagram Landscape': { width: 1080, height: 566 },
'Instagram Stories/Reels': { width: 1080, height: 1920 },
'Instagram Profile': { width: 320, height: 320 },
// Facebook
'Facebook Post': { width: 1200, height: 630 },
'Facebook Cover Page': { width: 820, height: 312 },
'Facebook Cover Event': { width: 1920, height: 1005 },
'Facebook Personal Cover': { width: 1200, height: 445 },
'Facebook Profile': { width: 180, height: 180 },
'Facebook Stories': { width: 1080, height: 1920 },
// X (Twitter)
'Twitter Post': { width: 1200, height: 675 },
'Twitter Header': { width: 1500, height: 500 },
'Twitter Profile': { width: 400, height: 400 },
// YouTube
'YouTube Thumbnail': { width: 1280, height: 720 },
'YouTube Banner': { width: 2560, height: 1440 },
'YouTube Channel Icon': { width: 800, height: 800 },
'YouTube Shorts': { width: 1080, height: 1920 },
// LinkedIn
'LinkedIn Post': { width: 1200, height: 627 },
'LinkedIn Cover Profile': { width: 1584, height: 396 },
'LinkedIn Company Logo': { width: 300, height: 300 },
'LinkedIn Company Background': { width: 1128, height: 191 },
// TikTok
'TikTok Video': { width: 1080, height: 1920 },
'TikTok Profile': { width: 200, height: 200 },
// Pinterest
'Pinterest Standard Pin': { width: 1000, height: 1500 },
'Pinterest Max Pin': { width: 1000, height: 2100 },
'Pinterest Profile': { width: 165, height: 165 },
'Pinterest Board Cover': { width: 222, height: 150 },
// Snapchat
'Snapchat Story/Ads': { width: 1080, height: 1920 },
'Snapchat Profile': { width: 1080, height: 1080 }
},
'Print': {
// ISO Standards (Europe, World)
'A3 Portrait': { width: 3508, height: 4961 },
'A4 Portrait': { width: 2480, height: 3508 },
'A4 Landscape': { width: 3508, height: 2480 },
'A5 Portrait': { width: 1748, height: 2480 },
'A6 Portrait': { width: 1240, height: 1748 },
'Business Card EU': { width: 1004, height: 590 },
// North American Standards
'Letter Portrait': { width: 2550, height: 3300 },
'Legal Portrait': { width: 2550, height: 4200 },
'Tabloid': { width: 3300, height: 5100 },
// Photo Print Standards
'4x6 Photo': { width: 1200, height: 1800 },
'5x7 Photo': { width: 1500, height: 2100 },
'8x10 Photo': { width: 2400, height: 3000 },
'11x14 Photo': { width: 3300, height: 4200 },
'16x20 Photo': { width: 4800, height: 6000 },
'20x24 Photo': { width: 6000, height: 7200 }
},
'Cinema': {
// DCI Standards
'DCI 2K Flat': { width: 1998, height: 1080 },
'DCI 2K Scope': { width: 2048, height: 858 }, // professional DCI anamorphic
'DCI 4K Flat': { width: 3996, height: 2160 },
'DCI 4K Scope': { width: 4096, height: 1716 },
'DCI Full 2K': { width: 2048, height: 1080 },
'DCI Full 4K': { width: 4096, height: 2160 },
// IMAX Formats
'IMAX Digital': { width: 4096, height: 3020 }, // example resolution, varies by source
'IMAX 1.90:1': { width: 4096, height: 2160 },
// Classic Cinema Formats (approximate digital equivalents)
'Ultra Panavision 70': { width: 7680, height: 2782 }, // approximate digital equivalent
'Cinerama': { width: 7680, height: 2965 }, // approximate digital equivalent
'Academy 1.375:1': { width: 1378, height: 1000 }, // simplified variant
'Academy Original': { width: 1474, height: 1072 }, // closer to original
'Silent Film 1.33:1': { width: 1440, height: 1080 }, // modern transfer standard
'Silent Film Classic': { width: 1334, height: 1000 }, // classic variant
// Legacy Formats
'2.39:1 Anamorphic': { width: 2048, height: 858 }, // general anamorphic (same as DCI Scope)
'1.85:1 Standard': { width: 1998, height: 1080 },
'2:1 Univisium': { width: 2048, height: 1024 },
'4:3 Academy': { width: 1440, height: 1080 },
'1.33:1 Classic': { width: 1436, height: 1080 }
},
'Display Resolutions': {
'CIF': { width: 352, height: 288 },
'SVGA': { width: 800, height: 600 },
'XGA': { width: 1024, height: 768 },
'SXGA': { width: 1280, height: 1024 },
'WXGA': { width: 1366, height: 768 },
'WSXGA+': { width: 1680, height: 1050 },
'240p': { width: 426, height: 240 },
'360p': { width: 640, height: 360 },
'480p SD': { width: 854, height: 480 },
'540p qHD': { width: 960, height: 540 },
'720p HD': { width: 1280, height: 720 },
'900p HD+': { width: 1600, height: 900 },
'1080p Full HD': { width: 1920, height: 1080 },
'UWFHD': { width: 2560, height: 1080 },
'1200p WUXGA': { width: 1920, height: 1200 },
'1440p QHD': { width: 2560, height: 1440 },
'UWQHD': { width: 3440, height: 1440 },
'1600p UXGA': { width: 2560, height: 1600 },
'1800p QHD+': { width: 3200, height: 1800 },
'4K UHD': { width: 3840, height: 2160 },
'UW4K (5K2K)': { width: 5120, height: 2160 },
'5K': { width: 5120, height: 2880 },
'6K': { width: 6016, height: 3384 },
'8K UHD': { width: 7680, height: 4320 }
}
};
|