Add Wiki Images and Other Files: Difference between revisions

From Minetest
(Created page with "<div class="p44_navbar"> Wiki Top Minetest MT worlds Bucket Game Trolltest </div> <div class="p44_navbar"> [https://minetest.org/ minetest.org] [https://minetest.io minetest.io] [https://git.minetest.io/ 9,000 gits] [https://irc.minetest.org:9000/#/connect CoderChat] [https://edgy1.net/ EdgyNet] </div> <br /> <span id="introduction"></span> == Introduction == This page discusses some issues related...")
 
No edit summary
Line 30: Line 30:
02) Rename the image files:
02) Rename the image files:


(2a) Make every filename unique.
* Make every filename unique.
 
* In most cases, though this is optional, make the filenames lower-case.
(2b) In most cases, though this is optional, make the filenames lower-case.
* Don't use spaces or most other punctuation characters in the filenames. Limit period to the filename extension. Dash, underscore, and plus are O.K.
 
(2c) Don't use spaces or most other punctuation characters in the filenames. Limit period to the filename extension. Dash, underscore, and plus are O.K.


03) Log-in as "root" or do "sudo bash".
03) Log-in as "root" or do "sudo bash".

Revision as of 10:15, 12 August 2023


Introduction

This page discusses some issues related to wiki images.

How-To Upload Wiki Images

This procedure assumes that you have CLI access to the wiki host box. Other procedures may be documented in the future.

01) Start with a set of 1 to 50 image files. Note: You'll be able to upload the full set easily in one go.

02) Rename the image files:

  • Make every filename unique.
  • In most cases, though this is optional, make the filenames lower-case.
  • Don't use spaces or most other punctuation characters in the filenames. Limit period to the filename extension. Dash, underscore, and plus are O.K.

03) Log-in as "root" or do "sudo bash".

04) Create a new empty temporary directory. Important: Make sure that it is empty.

05) Copy the image files into the temporary directory. Keep the directory flat; i.e., no subdirectories.

06) Execute the following but replace "/somedir/" with a directory path for the temporary directory.

cd /var/www/wiki.minetest.org/maintenance/
php importImages.php /somedir/

There you go. The temporary directory may now be removed.

(end of page)