<div dir="ltr"><div dir="ltr"><div>Hi John,<br></div><div><br></div><div>Thank you for the guidance.</div><div><br></div><div>I&#39;ve spent a couple of hours today looking through everything and not getting very far.</div><div><br></div><div>It turns out the imagemagick isn&#39;t installed. When I do:</div><div><br></div><div>&quot;which convert&quot;</div><div><br></div><div>I get nothing! A bit embarrassing that I didn&#39;t check this earlier, but there we are.</div><div><br></div><div>Thanks again for your help,</div><div>James</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 26, 2019 at 12:14 PM John Salter &lt;<a href="mailto:J.Salter@leeds.ac.uk">J.Salter@leeds.ac.uk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-GB">
<div class="gmail-m_-4679433255873878233WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi James,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">In the default EPrints &#39;summary page&#39; citation, the $doc.icon method is used to display a thumbnail if one exists. See:
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Flib%2Fdefaultcfg%2Fcitations%2Feprint%2Fsummary_page.xml%23L33&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C5e3b21d95dd644d7d7fb08d6ccb139b1%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=ggDFid0zIQ79N3fIO2DdkUXk8%2Bec8E3OFwnz6W4WGIk%3D&amp;reserved=0" originalSrc="https://github.com/eprints/eprints/blob/3.3/lib/defaultcfg/citations/eprint/summary_page.xml#L33" shash="KgEoIEsF260MOO/MqPjeLAFcPDZ8drImA+BTxWnRhRF0ElpUtfp/8+W7nGnBM2aNyQEgKw6QbJ4C1CI/470hE+G5KE1PMrC/8P/ECx1IpaDCPFUIZkMqkYwW4dN194cLu0iJl1WzJMilQRynd/J6kT7ySbscm2IQJts/OvO5Jqc=" target="_blank">
https://github.com/eprints/eprints/blob/3.3/lib/defaultcfg/citations/eprint/summary_page.xml#L33</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">The thumbnails are generated by the indexer - and this may not be enabled for your repository.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">You&#39;re looking in the right place - the convert plugin.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">If you want to test what the thumbnails will do by default, look at the &#39;call_convert&#39; method in EPrints::Plugin::Convert::Thumbnails.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">From this you should be able to deduce what command-line will be called to generate the thumbnails - and therefore be able to test
 it on your server.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Some of the parts might need explaining - e.g. what &quot;$geom^&quot; compared to &quot;$geom&gt;&quot; means (it&#39;s in the ImageMagick documentation somewhere).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Most of the Thumbnail plugin is overridable in the repository configuration - so if you needed to change the thumbnail sizes, how they&#39;re
 cropped etc., you can do that without subclassing the module.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">The most important piece might be the second half of this line:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FPlugin%2FConvert%2FThumbnails.pm%23L41&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C5e3b21d95dd644d7d7fb08d6ccb139b1%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Vc%2FaJojxsXjPHonGwp%2BMxByulRN5x01AL9VQOKZL6Xs%3D&amp;reserved=0" originalSrc="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Convert/Thumbnails.pm#L41" shash="MKXJuo9IPgKoI665GX1kqts59729/OrVrR/JKVOZYRcZARdfSc37Np4PSQAt1eHSct2lV/h+1XAY5Doixo6oz1U+JZ9yCM0VlPUWm3r40u65nW7NaN/SOFnYGwJES85vD/7V8wU1KidTh2IZGWEpNIEzuyYx2ci8BKMtevdVfUs=" target="_blank">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Convert/Thumbnails.pm#L41</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">For our repo, in [EPRINTS_ROOT]/lib/syscfg.d/<a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fexecutables.pl&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C5e3b21d95dd644d7d7fb08d6ccb139b1%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Ynft337F72ZzlrGXntB%2BLHmL9p16qtLs1lEBaYA8%2FkQ%3D&amp;reserved=0" originalSrc="http://executables.pl" shash="INT9qGMeGxmHo9BnIQYFEdBY2tkbG+14eBQ/XmhEvmmdDj9M4jjue3Mis2NYJKRA1IPxwc5FgD4dAgp8pPzRlulTrKyl5Xkmrlt+yW6ZGMHfy4gkz2a1hV2n3r63oNGWyvUqeq569m1hgobu1LqjhsLXJzlY23DMOnOgTkKqddA=" target="_blank">executables.pl</a>, we have:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">my %executables = (<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">    &#39;convert&#39; =&gt; &#39;/usr/bin/convert&#39;,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">    &#39;ffmpeg&#39; =&gt; &#39;/usr/bin/ffmpeg&#39;,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">);<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">John<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank">eprints-tech-bounces@ecs.soton.ac.uk</a> [mailto:<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank">eprints-tech-bounces@ecs.soton.ac.uk</a>]
<b>On Behalf Of </b>James Kerwin via Eprints-tech<br>
<b>Sent:</b> 26 April 2019 10:31<br>
<b>To:</b> <a href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">eprints-tech@ecs.soton.ac.uk</a><br>
<b>Subject:</b> [EP-tech] File Icons<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hi All,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The files in the repository currently display as generic icons, I think there is some difference depending on whether they&#39;re .docx,.pdf,.jpg etc.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I have noticed some other repositories have icons that are the front page of the document they represent. Can anybody please nudge me in the right direction for setting this up at Liverpool?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I&#39;ve so far been reading about imagemagick, Convert plugins and these pages:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FHow_to_write_plugins%23Convert_Plugin&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C5e3b21d95dd644d7d7fb08d6ccb139b1%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Ml90ORMasR3xNVpsJhIWBlPCagiF8k6FWJSD5fgASCo%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/How_to_write_plugins#Convert_Plugin" shash="gEi7LHMoTcvvfZ9xiyE/X3AK9doJbQAg9CAT1zp4lPewlIB6haCq2eLKJFuiWmVFvv9iBo0pghqsv+GxMNBtSS82gbVQE6ItmGIAhnxZAszZeFMBUMh2EM368avmmnGlVZ2YqlY0ihrpgV0R4AzexaZU75lSt1Nys9eO7n0vBIA=" target="_blank">https://wiki.eprints.org/w/How_to_write_plugins#Convert_Plugin</a>  <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2Fw%2FAPI%3AEPrints%2FPlugin%2FConvert&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C5e3b21d95dd644d7d7fb08d6ccb139b1%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2FCmyi619ze6pkUOEaQVphzUMxDyCJabc9o4uaEmENXY%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/w/API:EPrints/Plugin/Convert" shash="PRxHTRjyKBla8nBJ7p7L2Uz+2j2vidWPBFPs50oF+5L8R9jUqEafU21VhAs77xSb375wki4spxBTRVFJ/RRPE3nd9keOZg073nTEIBOptSAHbZtxY+cyMyMOG6M4ieH81Q9Cp1h9+cdg5NFlYlWfHnexeZeLmyb6vkwWIKbduDw=" target="_blank">http://wiki.eprints.org/w/API:EPrints/Plugin/Convert</a> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The wider scope of this is part of our PhD thesis digitisation project. I want to try to display the files in a nicer way and maybe place them in a carousel on their abstract pages. There is talk about each thesis chapter being its own
 file so I want to display them as neatly as possible.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">James<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>

</blockquote></div>