Maybe more for an ImageMagick script than a Gimp script / plugin
Scale, then deform an image, then plant on the front of a mug image.
Certainly not trivial to deform but there is a script for linux / macos
http://www.fmwconcepts.com/imagemagick/cylinderize/ see the coffee cup examples
Scale, then deform an image, then plant on the front of a mug image.
Certainly not trivial to deform but there is a script for linux / macos
http://www.fmwconcepts.com/imagemagick/cylinderize/ see the coffee cup examples