Auto Stretch To Fit for Custom Mockups

I work mostly with posters. Some of the mockups are slightly different size smart objects. With something like mockcity.com, I am able to have the designs stretch to fit the canvas so there’s no white left on any of the mockups when doing bulk.

Just wondering if this is possible and if I’m missing something or not?

Also I have a feeling the same problem would occur when fulfilling in printful with multiple sizes as there would only be one size print file.

Any ideas or suggestions?