mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-08 14:54:28 +00:00
mogrify fix - online edit of handbook/computing/log-blog-parsing.html
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
<title>CUCC Expedition Handbook: Logbook - importing Blog posts</title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/main2.css" />
|
||||
</head>
|
||||
<body><style>body { background: #fff url(/images/style/bg-system.png) repeat-x 0 0 }</style>
|
||||
<body>
|
||||
<style>body { background: #fff url(/images/style/bg-system.png) repeat-x 0 0 }</style>
|
||||
<h2 id="tophead">CUCC Expedition Handbook</h2>
|
||||
<h1>Blog Import</h1>
|
||||
|
||||
@@ -66,8 +67,8 @@ it is handy to print out this page and tick off the steps as you do them.
|
||||
<p>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.
|
||||
<p>There will be a lot. So install imagemagick and use the
|
||||
<a href="https://imagemagick.org/script/mogrify.php">mogrify tool</a>:
|
||||
<br />mogrify -resize 800>x800> *.jpg
|
||||
<br /> will resize in-place, overwriting the files, and make the maximum dimension 800 pixels.
|
||||
<br />mogrify -resize "900>x900>" *.jpg
|
||||
<br /> will resize in-place, overwriting the files, and make the maximum dimension 900 pixels in either dimension, but preserving the aspect ratio.
|
||||
<p>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.
|
||||
|
||||
<h3 id="code1">Edit logbooks.py</a></h3>
|
||||
@@ -133,8 +134,6 @@ When you split a blog into different entries the quickest way to re-order everyt
|
||||
Back to <a href="logbooks-parsing.html">Logbooks Import for Nerds</a> documentation.<br>
|
||||
Back to <a href="logbooks-format.html">Logbook internal format</a> documentation.<br>
|
||||
Back to <a href="../logbooks.html">Logbooks for Cavers</a> documentation.
|
||||
<hr />
|
||||
|
||||
</body>
|
||||
<hr /></body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user