[backport cloud/1.41] Use preview downscaling in fewer places#9683
Merged
AustinMroz merged 1 commit intocloud/1.41from Mar 9, 2026
Merged
[backport cloud/1.41] Use preview downscaling in fewer places#9683AustinMroz merged 1 commit intocloud/1.41from
AustinMroz merged 1 commit intocloud/1.41from
Conversation
Thumbnail downscaling is currently being used in more places than it should be. - Nodes which display images will display incorrect resolution indicators <img width="255" height="372" alt="image" src="https://github.com/user-attachments/assets/674790b6-04c8-4db0-84c2-2fa2dbaf123d" /> <img width="255" height="372" alt="image" src="https://github.com/user-attachments/assets/1dbe751b-7462-4408-9236-9446b005f5fc" /> This is particularly confusing with output nodes, which claim the output is not of the intended resolution - The "Download Image" and "Open Image" context menu actions will incorrectly download the downscaled thumbnail. - The assets panel will incorrectly display the thumbnail resolution as the resolution of the output - The lightbox (zoom) of an image will incorrectly display a downscaled thumbnail. This PR is a quick workaround to staunch the major problems - Nodes always display full previews. - Resolution downscaling is applied on the assert card, not on the assetItem itself - Due to implementation, this means that asset cards will still incorrectly show the resolution of the thumbnail instead of the size of the full image. --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Alexander Brown <drjkl@comfy.org>
🎨 Storybook: ✅ Built — View Storybook |
🎭 Playwright: ✅ 556 passed, 0 failed · 2 flaky📊 Browser Reports
|
AustinMroz
approved these changes
Mar 9, 2026
⚡ Performance ReportNo baseline found — showing absolute values.
Raw data{
"timestamp": "2026-03-09T23:08:49.729Z",
"gitSha": "5eb1079054e5c642d3472739f315c70a094b372d",
"branch": "backport-9678-to-cloud-1.41",
"measurements": [
{
"name": "canvas-idle",
"durationMs": 2037.0929999999987,
"styleRecalcs": 126,
"styleRecalcDurationMs": 29.729000000000003,
"layouts": 1,
"layoutDurationMs": 0.2000000000000001,
"taskDurationMs": 452.492,
"heapDeltaBytes": -2614088
},
{
"name": "canvas-idle",
"durationMs": 2047.5910000000113,
"styleRecalcs": 125,
"styleRecalcDurationMs": 23.665000000000003,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 410.6379999999999,
"heapDeltaBytes": -4449284
},
{
"name": "canvas-idle",
"durationMs": 2027.953000000025,
"styleRecalcs": 123,
"styleRecalcDurationMs": 23.638,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 424.524,
"heapDeltaBytes": -3552016
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1955.9110000000146,
"styleRecalcs": 180,
"styleRecalcDurationMs": 56.696999999999996,
"layouts": 12,
"layoutDurationMs": 3.6710000000000003,
"taskDurationMs": 916.8800000000001,
"heapDeltaBytes": -3277904
},
{
"name": "canvas-mouse-sweep",
"durationMs": 2012.1330000000057,
"styleRecalcs": 180,
"styleRecalcDurationMs": 52.495999999999995,
"layouts": 12,
"layoutDurationMs": 3.4029999999999996,
"taskDurationMs": 1034.091,
"heapDeltaBytes": -2890372
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1839.845999999966,
"styleRecalcs": 169,
"styleRecalcDurationMs": 49.425999999999995,
"layouts": 12,
"layoutDurationMs": 3.3619999999999997,
"taskDurationMs": 795.5360000000001,
"heapDeltaBytes": -4149564
},
{
"name": "dom-widget-clipping",
"durationMs": 590.1350000000036,
"styleRecalcs": 44,
"styleRecalcDurationMs": 11.775,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 353.242,
"heapDeltaBytes": 7290376
},
{
"name": "dom-widget-clipping",
"durationMs": 578.5250000000133,
"styleRecalcs": 43,
"styleRecalcDurationMs": 13.01,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 359.85499999999996,
"heapDeltaBytes": 7508072
},
{
"name": "dom-widget-clipping",
"durationMs": 567.0489999999972,
"styleRecalcs": 41,
"styleRecalcDurationMs": 12.642999999999999,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 347.433,
"heapDeltaBytes": 7639184
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 596.6449999999952,
"styleRecalcs": 73,
"styleRecalcDurationMs": 15.363999999999999,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 410.686,
"heapDeltaBytes": 15913008
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 583.4950000000276,
"styleRecalcs": 73,
"styleRecalcDurationMs": 15.489999999999998,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 418.774,
"heapDeltaBytes": -9001520
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 608.8440000000332,
"styleRecalcs": 74,
"styleRecalcDurationMs": 15.857,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 428.597,
"heapDeltaBytes": -8570880
},
{
"name": "subgraph-idle",
"durationMs": 2008.1569999999829,
"styleRecalcs": 123,
"styleRecalcDurationMs": 28.297000000000004,
"layouts": 1,
"layoutDurationMs": 0.22099999999999995,
"taskDurationMs": 432.77700000000004,
"heapDeltaBytes": -2428628
},
{
"name": "subgraph-idle",
"durationMs": 1994.338999999968,
"styleRecalcs": 120,
"styleRecalcDurationMs": 23.403999999999996,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 407.9680000000001,
"heapDeltaBytes": -3402864
},
{
"name": "subgraph-idle",
"durationMs": 1991.3389999999822,
"styleRecalcs": 120,
"styleRecalcDurationMs": 23.796999999999997,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 405.69100000000003,
"heapDeltaBytes": -3518332
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 2000.522999999987,
"styleRecalcs": 173,
"styleRecalcDurationMs": 57.116,
"layouts": 16,
"layoutDurationMs": 4.549999999999999,
"taskDurationMs": 995.2230000000001,
"heapDeltaBytes": -5196508
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1711.3720000000399,
"styleRecalcs": 155,
"styleRecalcDurationMs": 46.055,
"layouts": 16,
"layoutDurationMs": 4.428999999999999,
"taskDurationMs": 742.3029999999999,
"heapDeltaBytes": -6466896
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1997.2389999999791,
"styleRecalcs": 172,
"styleRecalcDurationMs": 56.018,
"layouts": 16,
"layoutDurationMs": 4.316000000000001,
"taskDurationMs": 992.155,
"heapDeltaBytes": -5158628
}
]
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #9678 to
cloud/1.41Automatically created by backport workflow.
┆Issue is synchronized with this Notion page by Unito