'Imagine' takes only the '-ing' form. 'Learn' takes both with no real difference in meaning, but I suggest that the '-ing' form is rare and of limited use. 'Like' takes both with roughly the same meaning, with '-ing' more likely when the activity is in progress.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.