Stacking is a neat trick but is fussy and takes real practice and patience. If you are serious about wanting the best results for product work like this (as in you can justify the expense for the camera gear) use a tilt shift/ PC (perspective control) lens and get it in a single shot.
View attachment 971916
A PC lens will give you simple controls akin to a view camera (large format camera) to control perspective (shift/rise/fall) and focus control (swings/tilts) which is how product photography has been done for decades. A real view camera (be it film or digital back) is the ideal way to have absolute control as you can use all movements simultaneously, but the DSLR PC lenses are a great tool and get you 80% there.
They aren’t cheap, but they do the job optically without relying on software to figure things out for you.
I use them on my Nikon’s for architectural work (19 & 24mm) and (45 & 85mm) for quick product work in the studio and even environmental portraits (when the architectural context is just as important as the person in the picture). Canon makes a line of them as well and adapters are available for use on Sony mirrorless.
Click to expand...