I suspect these sites you refer to are storing of the document's title and are using that populate the icons.
On Fri, 26 Apr 2019 at 08:51, James Kerwin <jkerwin2...@gmail.com> wrote: > Hi All, > > I promise this question is about Perl. I've googled this a lot and still > can't find where to start. > > I run a publications repository/website that uses Perl on its back end. On > each page I have a series of files. At the moment they display a thumbnail > as the file icon (different for file type such as .doc, .jpg, .pdf etc.). > > I have seen some similar websites that appear to have the file content as > the icon, admittedly with PDFs usually. For example the thumbnail would be > the title page of the document. Does anybody know what I would search for > for this functionality and is there a helpful Perl module/library that I > can use? > > Thanks, > James >