Unless you need to print large photos for something like a mural, you don’t need the most megapixels possible. A great range is 15MP to 30MP, common for budget and mid-tier cameras, which will give you plenty of resolution and detail.