Shutterfly Inc. is in talks to go public through a merger with a blank-check company, according to people familiar with the matter, less than two years after Apollo Global Management Inc. took the online-photo-book maker private.