You can get the file object like this: New editor: Referencing image metadata
Then you can resize it.