Change Image Dimensions Dynamically

Hey all. Was wondering if anyone knows a way to dynamically change image dimensions in UE4?

I am working on a mobile app, and know that textures for mobile apps are required to have power of two dimensions (e.g. 64, 1024, etc.). However, I would eventually like for people to be able to upload their own images for textures, and obviously most people won’t upload an image with those specific dimensions.

The images are being used for textures in a material applied to static meshes.

Any suggestions are much appreciated!

you could probably just bake it into a render target, that would squish the image into the right size and it’s pretty easy to set up.
The problem you’d run into is that the image would be distorted to make it fit unless you can figure out how to do a crop beforehand.