mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-24 22:12:17 -03:00
Show original image size in layer info overlay
Added originalWidth and originalHeight properties to layers in CanvasLayers.js. Updated CanvasRenderer.js to display the original image dimensions in the layer info overlay if available, and improved overlay rendering to support multiline text.
This commit is contained in:
@@ -140,6 +140,8 @@ export class CanvasLayers {
|
||||
y: finalY,
|
||||
width: finalWidth,
|
||||
height: finalHeight,
|
||||
originalWidth: image.width,
|
||||
originalHeight: image.height,
|
||||
rotation: 0,
|
||||
zIndex: this.canvasLayers.layers.length,
|
||||
blendMode: 'normal',
|
||||
|
||||
Reference in New Issue
Block a user