I have an image which has a lot of transparency around it and I need the canvas to automatically fit the image. Currently I am doing this by hand with the crop tool. Is there any fit canvas to image function in Krita?
If you want to trim the surrounding pixels that are out side of the canvas boundaries there is Trim to Image size in the image menu.
This will crop out all the pixels on all layers that are outside of the canvas boundary.
You can do that in Image > Trim image to current Layer.