I think it's actually the opposite. shrink the img and give it a white border, then re-imagine. Stitching together and playing the opposite way to give the zoom effect.
shrink to keep same px dimensions or just enlarge canvas and place img in center.
Some good examples of this being done with Dalle2 last month -- https://youtu.be/TW2w-z0UtQU?t=244