find . -name '*.tif' -depth 1 -print -exec tiff2rgba {} {}-uc.tif \;
find . -name '*-uc.tif' -depth 1 -print -exec convert {} -quality 95 {}.jpg \;
find . -name '*-uc.tif' -print -exec rm "{}" \;
find . -name '*.tif.jpg' -print -exec bash -c 'mv "{}" $(dirname "{}")/$(basename -s .tif-uc.tif.jpg "{}").jpg' \;
Larger files can't be handled by tiff2rgba
, it will failes with the following message ./front.tif: Raster size 341660508 over memory limit (268435456), try -b option..
.
find . -name '*.tif' -depth 1 -print -exec convert {} -quality 95 {}.jpg \;
find . -name '*.tif.jpg' -print -exec bash -c 'mv "{}" $(dirname "{}")/$(basename -s .tif.jpg "{}").jpg' \;
find content/post/ -name info.json -exec dirname {} \; | xargs rm -r
See https://womanonrails.com/adding-yarn-package-from-github on how to add a specific revision.
Mirador 3 is not really feature complete, even though it's tagged as a Release Candidate. The following changes need to be applied to make Mirador usable.
- Thumbnails won't be displayed if they're static #3330
- Mirador fails to load Minifests if bundled #3311
- Mirador can't display non-paged viewing hints 3029
These patches are combined in one file in patches
.
Currently yarn will will pull Mirador directly from GitHub, not NPM. It applies the patches and rebuilds the viewer with these patches applied.
Append the following line
yarn run build-mirador patch-mirador
We start to use [LibVIPS]https://github.com/libvips/libvips(), since it's very fast:
On Mac OS X just run:
brew install vips
vips dzsave front.jpg front -t 512 --layout iiif --id '.'
URL_PREFIX=http://localhost:1313/ ./scripts/iiif.sh
This might be needed if there are to many sub directories (with IIIF structures) generated, since watching might not work in this setup. This stopped to work reliably between Hugo 0.79.0 and 0.81.0
hugo serve -F --debug --disableFastRender --disableLiveReload --watch=false --renderToDisk
docker run --name hugo -v `pwd`/docs:/usr/share/nginx/html -p 1313:80 nginx