If it's for a background / desktop the picture for an iPad needs to be 1024 pixels square.
Remember that landscape doesn't show part of the top and bottom and Portrait mode doesn't show part of the sides. Keeping the important part of the picture centred helps.