mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-09 15:24:31 +00:00
more mogrify documn. - online edit of handbook/computing/log-blog-parsing.html
This commit is contained in:
@@ -70,8 +70,9 @@ 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>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
|
<p>There will be a lot. So install imagemagick and use the
|
||||||
<a href="https://imagemagick.org/script/mogrify.php">mogrify tool</a>:
|
<a href="https://imagemagick.org/script/mogrify.php">mogrify tool</a>:
|
||||||
<br />mogrify -resize "900>x900>" *.jpg
|
<code>mogrify -resize "900>x900>" *.jpg</code>
|
||||||
<br /> will resize in-place, overwriting the files, and make the maximum dimension 900 pixels in either dimension, but preserving the aspect ratio.
|
will resize in-place, overwriting the files, and make the maximum dimension 900 pixels in either dimension, but preserving the aspect ratio (this is the "geometry" expression <a href="https://imagemagick.org/script/command-line-processing.php#geometry"><var>"900>x900>"</var></a>.
|
||||||
|
|
||||||
<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.
|
<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>
|
<h3 id="code1">Edit logbooks.py</a></h3>
|
||||||
|
|||||||
Reference in New Issue
Block a user