Update notes for 2019-02-12

This commit is contained in:
2019-02-12 20:12:43 +02:00
parent a3f762d1a7
commit d11b75d251
3 changed files with 53 additions and 8 deletions

View File

@ -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: -->