mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2019-02-12
This commit is contained in:
@ -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: -->
|
||||
|
Reference in New Issue
Block a user