Repository: PowerToys
Issue: Image resizer reducing to tiny 52 x 64 resolution randomly, when others resize correctly at 3840 x 2160 setting.
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.86.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Image Resizer

### Steps to reproduce

Typically when resizing bulk images, randomly an image will be reduced to a tiny thumbnail/icon size, not the size selected.

Selected resize operation on a folder full of images (and nothing else), with anywhere between 5 to 100 images, however the number of images selected doesn't appear relevant.
I've only noticed this when resizing to 3840 x 2160 (I don't resize to less then this resolution, to know if the issue exists at other sizes also).
which typically brings the images down to a resolution of 2160 x 2880 or 2880 x 2160 (Portrait/Landscape as applicable).
Selected/Active settings are only:
Make pictures smaller but not larger
and
Overwrite files
Source images are always from photos taken on the same phone, with source image resolution of 4000 x 3000 / 3000 x 4000.

### ✔️ Expected Behavior

Images should all reduce to the selected size, as all the other images from the same source do.

### ❌ Actual Behavior

Typically when resizing bulk images, randomly an image will be reduced to a tiny thumbnail/icon size, not the size selected.

Most images will be resized as expected, however sometime any random image will resize right down to 69 x 52 or 52x69 pixels (if source image was landscape/portrait).
Restoring that incorrectly resized file and carrying out the same resize on that one original image will result in it working correctly.
Likewise restoring the entire folder back to original and repeating the same resize on the group of images originally selected; might result in a completely different file being incorrectly resized, or even no files being resized incorrectly and the operation performing as expected.

I have gone back through older folders of images from a month earlier to see if this had affected other prior resized photos, and noticed there were several tiny file sizes, indicating the same small thumbnail images and subsequent issue has been present for at least a month or more (so issue is probably existing on previous versions of PowerToys/Image Resizer too).

Whilst looking at these file sizes as a quick reference to decide where the Image Resizer has worked correctly, I noticed even when images are being resized in resolution (ending up at the desired image size), some file sizes are remaining similar to the original image source (around 4-6MB, while the bulk of the images resize down to around 1-2MB).
Repeating the resize function on these images wont reduce them at this point, since they're already below the original resolution, but for some reason those images are still larger. I can copy those source images back over and repeat on the same large images and they will resize to similar 1-2MB files as expected - I'm not sure if this is similar to the above behaviour where the images end up tiny instead, but seems to have the same random selection of images when it occurs.

### Other Software

_No response_