PowerToys
PowerToys copied to clipboard
Resizer Not Working for Portrait Photos
Microsoft PowerToys version
0.62.1
Running as admin
- [X] Yes
Area(s) with issue?
Image Resizer
Steps to reproduce
✔️ Expected Behavior
While resizing numerous portrait orientated photos I edited the presets to reflect the size I required, i.e. width: 3072 x Height: 4608. I then highlighted the required photos and selected the requisite size choice and clicked 'Resize'. Resizeing completed I then checked the metadata and found that Resizer had reversed the pixel sizes.
❌ Actual Behavior
On reviewing the photo size I found that Resizer had resized the photo to landscape and instead of Width: 3072 x Height: 4608 it inserted Width: 4608 x Height: 3072. Even using the 'Custom' option resizer insisted on reversing the figures and making the photo lanscape.
Other Software
No response
Hello and thanks for your message. A visible example would be very helpful here. With "reversed", do you mean the image is rotated or cropped? Also important to know the exact settings that are used for the resize action. Specifically the fit/fill/stretch one, and the checkbox "Ignore orientation of pictures".
Hello Jay,
Apologies for lack of screenshot or any illustrations, but needed to resize a large number of photos in a hurry and uninstalled power toys to install the original image resizer which works fine. However, in response to your questions:
- Required width setting was entered as '3072' and the Height setting was entered as '4608'. However, when photo was resized, the Width was '4608' and the Height was '3072', essentially making the portrait photo landscape;
- The fit/fill/stretch setting was set to 'Fill';
- Orientation of pictures was checked initially, then and unchecked, but this did not resolve the issue;
- Tried several configurations, changing presets to my required settings, creating a new setting and using the 'custom' setting. None of which provided the required results and all produced the 'landscape' orientation. As I mentioned above, have uninstalled power toys for the moment and have image resizer 3.1.2 installed which does what I want.
Regards.
John.
I think you might want to use the FIT setting. Unchecking
- [ ] Ignore orientation of pictures
should work, but apperently it doesn't? CC @bricelam
Will give the 'fit' option a try when I reinstall. However, I was under the impression that the 'fit' option crops the image if it is larger than the specified dimensions? Not totally convinced that this would solve the programme identifying the width dimension as the height and the height as the width. As I mentioned, it works perfectly fine for landscape mode, just not those in portrait mode.
John.
Will give the 'fit' option a try when I reinstall. However, I was under the impression that the 'fit' option crops the image if it is larger than the specified dimensions? Not totally convinced that this would solve the programme identifying the width dimension as the height and the height as the width. As I mentioned, it works perfectly fine for landscape mode, just not those in portrait mode.
John.
Fit will not crop, Fill will
Possibly related to the very long discussion in https://github.com/bricelam/ImageResizer/issues/38 (but maybe not)
Read #38, and in some respects mirrors what I experienced in the Power Toys version of IR. I've tried using 'fill' and 'fit' to resize a portrait photo from 3456 x 4608 to 3072 x 4608, but using 'fill' it results in 4608 x 3072 - essentially reversing the width and height. If I use 'fit' a similar thing happens, but this time instead of 3072 x 4608 it produces 2304 x 3072. Doesn't appear to make any difference if 'ignore orientation' is checked or not. On the other hand, the stand alone Image Resizer 3.1.2 works perfectly fine in both landscape and portrait modes. Just don't understand why this should be. Anyway, will probably stick with the stand alone version should I need to resize other images.
Let me add example photo. This is 3023x4032 and when I try to resize it with options "Fits within 1920 x 1080 pixels" the resizer produces image 1080 x 1440, which obviously doesn't fit in the vertical goal of 1080. The result is same with or without selecting "Ignore the orientation of pictures". I am currently using Release v0.78.0