Closed mnaydan closed 1 month ago
Here's where I documented the syntax I used before for running mogrify: https://github.com/Princeton-CDH/ppa-nlp/issues/39#issuecomment-2204495465 :
mogrify -format jpg -resize 500 */*.TIF
This was for Gale content, hence the .TIF
.
Maybe copy the image directories we want from tigerdata to local storage then run mogrify to resize them in place, replacing the existing file. Relative path and filenames need to be the same because they are referenced in the dataset loaded into prodigy. Mogrify isn't installed on cdh-prodigy1 yet, but let's add it.
On the cdh-ansible side of things:
imagemagick
; here's an example in another app: https://github.com/Princeton-CDH/cdh-ansible/blob/31b01c46265b1bea89bf937fdd4ce53ec32cab34/inventory/group_vars/prosody/vars.yml#L81-L83
nginx
and supervisor
The temporary fix has been pushed to cdh-ansible
. That said we'll want to make a longer term fix that has ansible automatically copy (and correctly set permissions) the (possible transformed) images to the hosting server.