The way I thought this would be implemented is a user defined setting in the printer profile of the slicer software. With this approach the end user could activate the feature and specify thumbnail size.
I would use this feature with octoprint and octodash myself.