Comfy-Org / Comfy-Org/ComfyUI

Load image and text dataset from folder, stretch vs pad

Open
#9,742 0 comments 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

### Custom Node Testing

- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

When setting this beta node to "Pad" resize method the short axis of the image should be padded maintaining orginal images aspect ratio

### Actual Behavior

"pad" resize method acts as "stretch" shrinking down the long axis of the non 1:1 aspect ratio image down causing tall images to be squished instead of padded.

### Steps to Reproduce

just have a dataset with a 512x512 image and another with a 512x960 image imported using the beta node and previewed shows the 512x960 "stretched" down to 512x512 instead of padded to 960x960 then scaled down

### Debug Logs

```powershell
No log
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.