Unexpected outcome of the SaveImage transform #5361
Answered
by
wyli
hblanco2009
asked this question in
Q&A
-
After loading and resizing a PNG image, the SaveImage transform doesn't work as expected. To the right you can see the original image (4280 x 3520 pixels). Below you can see the resized image (256 x 256) but clearly not well encoded. Any hints on what is going on? |
Beta Was this translation helpful? Give feedback.
Answered by
wyli
Oct 19, 2022
Replies: 1 comment 8 replies
-
thanks for reporting, could you please try |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
hblanco2009
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for reporting, could you please try
channel_dim=None
orchannel_dim=-1
forEnsureChannelFirst
, because the input png may be channel last.