TYPO3: Resizing with t3lib
===

What is the equivalent of this Typoscript in PHP?

    10 = IMAGE
    10.file{
        width = 400
        height = 300
        import = uploads/pics/
        import.field = image
    }

Im guessing there is something in TYPO3 libraries that does the same.