Solved by jdhao in post #3 
              
              
                You can use the old Scale transform. But if the size provided is just int, it will resize the minimum size of image to that number. If you want to resize the image’s maximum length to size and keep aspect ratio. Just write your own resize, it is just a few line of code, see example code below for a …