From eb7674d29c134a4b3f1266b692dd24e8a9213941 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 16 Mar 2025 15:16:52 +0000 Subject: [PATCH] mogrify fix - online edit of handbook/computing/log-blog-parsing.html --- handbook/computing/log-blog-parsing.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/handbook/computing/log-blog-parsing.html b/handbook/computing/log-blog-parsing.html index 0e80d5e06..26366d478 100644 --- a/handbook/computing/log-blog-parsing.html +++ b/handbook/computing/log-blog-parsing.html @@ -5,7 +5,8 @@ CUCC Expedition Handbook: Logbook - importing Blog posts - + +

CUCC Expedition Handbook

Blog Import

@@ -66,8 +67,8 @@ it is handy to print out this page and tick off the steps as you do them.

Now use your favourite photo editor (e.g. Irfanview on Windows) or a command-line tool to resize all the photos. A maximum of 800 pixels wide or high, or 400 or 300 pixels wide if the image quality is poor. Keep the same filename then you don't have to try to edit the horrendously horrible HTML which was generated by the blog software. If there are any .png files, convert them to .jpg.

There will be a lot. So install imagemagick and use the mogrify tool: -
mogrify -resize 800>x800> *.jpg -
will resize in-place, overwriting the files, and make the maximum dimension 800 pixels. +
mogrify -resize "900>x900>" *.jpg +
will resize in-place, overwriting the files, and make the maximum dimension 900 pixels in either dimension, but preserving the aspect ratio.

Look at all the photos in the file browser set to show thumbnails and delete all advertising logos etc., and delete the UK Caving header image which will be of random people not us.

Edit logbooks.py

@@ -133,8 +134,6 @@ When you split a blog into different entries the quickest way to re-order everyt Back to Logbooks Import for Nerds documentation.
Back to Logbook internal format documentation.
Back to Logbooks for Cavers documentation. -
- - +