mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-22 14:45:03 +01:00
Update notes for 2019-02-12
This commit is contained in:
parent
a3f762d1a7
commit
d11b75d251
@ -542,5 +542,25 @@ $ vipsthumbnail alc_contrastes_desafios.pdf -s 300 -o '%s.jpg[Q=92,optimize_codi
|
||||
```
|
||||
|
||||
- (DSpace 5 appears to use JPEG 92 quality so I do the same)
|
||||
- Thinking about making "top items" endpoints in my [dspace-statistics-api](https://github.com/ilri/dspace-statistics-api)
|
||||
- I could use the following SQL queries very easily to get the top items by views or downloads:
|
||||
|
||||
```
|
||||
dspacestatistics=# SELECT * FROM items WHERE views > 0 ORDER BY views DESC LIMIT 10;
|
||||
dspacestatistics=# SELECT * FROM items WHERE downloads > 0 ORDER BY downloads DESC LIMIT 10;
|
||||
```
|
||||
|
||||
- I'd have to think about what to make the REST API endpoints, perhaps: `/statistics/top/items?limit=10`
|
||||
- But how do I do top items by views / downloads separately?
|
||||
- I re-deployed DSpace 6.3 locally to test the PDFBox thumbnails, especially to see if they handle CMYK files properly
|
||||
- The quality is JPEG 75 and I don't see a way to set the thumbnail dimensions, but the resulting image is indeed sRGB:
|
||||
|
||||
```
|
||||
$ identify -verbose alc_contrastes_desafios.pdf.jpg
|
||||
...
|
||||
Colorspace: sRGB
|
||||
```
|
||||
|
||||
- I will read the PDFBox thumbnailer documentation to see if I can change the size and quality
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
@ -42,7 +42,7 @@ sys 0m1.979s
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2019-02/" />
|
||||
<meta property="article:published_time" content="2019-02-01T21:37:30+02:00"/>
|
||||
<meta property="article:modified_time" content="2019-02-11T11:17:27+02:00"/>
|
||||
<meta property="article:modified_time" content="2019-02-12T09:24:28+02:00"/>
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="February, 2019"/>
|
||||
@ -89,9 +89,9 @@ sys 0m1.979s
|
||||
"@type": "BlogPosting",
|
||||
"headline": "February, 2019",
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2019-02/",
|
||||
"wordCount": "2900",
|
||||
"wordCount": "3049",
|
||||
"datePublished": "2019-02-01T21:37:30+02:00",
|
||||
"dateModified": "2019-02-11T11:17:27+02:00",
|
||||
"dateModified": "2019-02-12T09:24:28+02:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -771,6 +771,31 @@ Please see the DSpace documentation for assistance.
|
||||
|
||||
<ul>
|
||||
<li>(DSpace 5 appears to use JPEG 92 quality so I do the same)</li>
|
||||
<li>Thinking about making “top items” endpoints in my <a href="https://github.com/ilri/dspace-statistics-api">dspace-statistics-api</a></li>
|
||||
<li>I could use the following SQL queries very easily to get the top items by views or downloads:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>dspacestatistics=# SELECT * FROM items WHERE views > 0 ORDER BY views DESC LIMIT 10;
|
||||
dspacestatistics=# SELECT * FROM items WHERE downloads > 0 ORDER BY downloads DESC LIMIT 10;
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>I’d have to think about what to make the REST API endpoints, perhaps: <code>/statistics/top/items?limit=10</code></li>
|
||||
<li>But how do I do top items by views / downloads separately?</li>
|
||||
<li>I re-deployed DSpace 6.3 locally to test the PDFBox thumbnails, especially to see if they handle CMYK files properly
|
||||
|
||||
<ul>
|
||||
<li>The quality is JPEG 75 and I don’t see a way to set the thumbnail dimensions, but the resulting image is indeed sRGB:</li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ identify -verbose alc_contrastes_desafios.pdf.jpg
|
||||
...
|
||||
Colorspace: sRGB
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>I will read the PDFBox thumbnailer documentation to see if I can change the size and quality</li>
|
||||
</ul>
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2019-02/</loc>
|
||||
<lastmod>2019-02-11T11:17:27+02:00</lastmod>
|
||||
<lastmod>2019-02-12T09:24:28+02:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
@ -209,7 +209,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||
<lastmod>2019-02-11T11:17:27+02:00</lastmod>
|
||||
<lastmod>2019-02-12T09:24:28+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
@ -220,7 +220,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
||||
<lastmod>2019-02-11T11:17:27+02:00</lastmod>
|
||||
<lastmod>2019-02-12T09:24:28+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
@ -232,13 +232,13 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
||||
<lastmod>2019-02-11T11:17:27+02:00</lastmod>
|
||||
<lastmod>2019-02-12T09:24:28+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
|
||||
<lastmod>2019-02-11T11:17:27+02:00</lastmod>
|
||||
<lastmod>2019-02-12T09:24:28+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user