How to enlarge the picture according to its length and width

Do you mean height and width? So set a width/height and the image should be zoomed to fit the set size?

Anyway, jpeg images can’t be zoomed directly because they are decompressed in a special way to save memory. And one limitation of this decompression method is transformations (zoom, rotate) can’t be performed.