Difference between revisions of "Help:Uploading images"

From Nottinghack Wiki
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{also|Help:Images|l1=Help:Images (adding to pages)}}
+
{{also|Help:Contents|Help:Images|l2=Help:Images (adding to pages)|}}
 
This page explains how to upload images to this wiki. We upload images to the wiki so they can be embedded in wiki pages.
 
This page explains how to upload images to this wiki. We upload images to the wiki so they can be embedded in wiki pages.
 
{{Note|If you want to upload a whole gallery of photos it is better to use the [http://www.flickr.com/photos/nottinghack Nottinghack flickr group]. See }}
 
  
 
== Uploading a single image ==
 
== Uploading a single image ==
Line 26: Line 24:
  
 
</pre>
 
</pre>
 +
 +
===SVG files===
 +
Sometimes SVG vector files don't render correctly, for example they are blurred or have the wrong background. They can be edited using [[Inkscape]]. The absolute size of the image has an effect (as measured in the image's set units), as does its relative size to the image's set document border.
 +
 +
Sometimes 'cleaning' the cruft from the image can help. This can be done with the online tool [https://www.svgminify.com SVGminify.com] (keep a copy of the original file).
 +
 +
As a last resort the SVG can be converted to a bitmap PNG/JPEG file at an appropriate resolution and then uploaded to the wiki.
 +
 +
{{note|There is a bug that shows the last iteration of the graphic in the thumbnails on the image's file page. Add the graphics to an article page to see how it renders.}}
  
 
== Uploading a set of images ==
 
== Uploading a set of images ==
 +
[[File:Commonist.jpg|Commonist gui|thumb|200px]]
 +
 +
===Installing Commonist===
 +
The program [https://commons.wikimedia.org/wiki/Commons:Commonist Commonist] can be used to upload a whole batch of images.  You can set it up as follows:
  
The program [http://neonstau.de/commonist/ Commonist] can be used to upload a whole batch of images.  You can set it up as follows:
+
:'''1)''' Install Commonist by following installation instructions for your operating system, as shown  [http://commons.wikimedia.org/wiki/Commons:Tools/Commonist#Installation here].  
 +
::('''Warning:''' the 'Easiest way' highlighted in those instructions (using .JNLP) '''will not work!''' You must install the program to your computer. Save the commonist.zip, unpack it, to execute file <code>./commonist</code> (on Linux or mac os x), or <code>.\commonist.bat</code> (on windows).
 +
:'''2)''' Now to add Nottinghack Wiki. Open the <code>wikis.txt</code> file, or create if it does not exist. It is located at <code>~/.commonist/wikis.txt</code> (Linux or mac) or <code>C:\Users\t\Desktop\commonist-x.x.x-src\src\main\resources</code> (Windows)
 +
:'''3)''' Add the following line of text to the 'wikis.txt' file:
 +
::<code><nowiki>nottinghack _ https://wiki.nottinghack.org.uk/api.php</nowiki></code>
 +
:'''4)''' Now you can run Commonist and select 'nottinghack' in the list of Wikis.  Execute <code>./commonist</code> (on Linux or mac os x), or <code>.\commonist.bat</code> (on windows).
  
# Install Commonist by following the specific installation instructions for your operating system [http://commons.wikimedia.org/wiki/Commons:Tools/Commonist#Installation] (unfortunately the 'Easiest way' described in those instructions -- using JNLP -- will not work!  You must install the program to your computer).
+
===Using Commonist===
# Open the file <code>etc/wikis.txt</code> inside the Commonist directory.
+
Commonist uses a intuitive GUI. Enter your Nottinghack credentials and select Nottinghack Wiki. The file browsing pane allows you to select a directory. On the right hand side tick the photos in the directory to upload, specific details can be add. The information on the left will be add to all the uploaded photo pages.
# Add the following line of text to the file: <pre>nottinghack _ http://wiki.nottinghack.org.uk/api.php</pre>
 
# Now you can run Commonist and select 'nottinghack' in the list of Wikis.
 
  
== See also ==
+
== Flickr ==
* [[Widget:Flickr_gallery|How to embed a flickr gallery in a wiki page]].
+
{{Note|If you want to upload a whole gallery of photos it may be better to use the [http://www.flickr.com/photos/nottinghack Nottinghack flickr group], especial for high resolution files.}}
 +
See [[Widget:Flickr|how to embed a flickr gallery in a wiki page]] (defunct as of December 2019).
  
 
[[Category:Flickr]]
 
[[Category:Flickr]]
 
[[Category:Help]]
 
[[Category:Help]]

Latest revision as of 16:04, 12 December 2019

This page explains how to upload images to this wiki. We upload images to the wiki so they can be embedded in wiki pages.

Uploading a single image

You can upload images one-at-a-time on the Special:Upload page:

  1. On the left-hand sidebar, under “toolbox”, click “Upload file.”
  2. Select the “Source filename”
  3. Fill in the optional “Summary” text.

Adding information about the image

If you upload an image with a name like "DSC0013424.JPG", then please choose a more meaningful Destination filename on the upload page, as it makes linking to the image easier.

A description, license information and categories can be added in the summary (it can be update late by going to image page and clicking edit). Example summary in wiki markup:

==Summary==

'''Source:''' https://en.wikipedia.org/wiki/File:Cat_silhouette.svg

'''Licence''' [[wikipedia:Public domain]]

[[Category:Design and graphics]]

SVG files

Sometimes SVG vector files don't render correctly, for example they are blurred or have the wrong background. They can be edited using Inkscape. The absolute size of the image has an effect (as measured in the image's set units), as does its relative size to the image's set document border.

Sometimes 'cleaning' the cruft from the image can help. This can be done with the online tool SVGminify.com (keep a copy of the original file).

As a last resort the SVG can be converted to a bitmap PNG/JPEG file at an appropriate resolution and then uploaded to the wiki.

Note Note: There is a bug that shows the last iteration of the graphic in the thumbnails on the image's file page. Add the graphics to an article page to see how it renders.

Uploading a set of images

Commonist gui

Installing Commonist

The program Commonist can be used to upload a whole batch of images. You can set it up as follows:

1) Install Commonist by following installation instructions for your operating system, as shown here.
(Warning: the 'Easiest way' highlighted in those instructions (using .JNLP) will not work! You must install the program to your computer. Save the commonist.zip, unpack it, to execute file ./commonist (on Linux or mac os x), or .\commonist.bat (on windows).
2) Now to add Nottinghack Wiki. Open the wikis.txt file, or create if it does not exist. It is located at ~/.commonist/wikis.txt (Linux or mac) or C:\Users\t\Desktop\commonist-x.x.x-src\src\main\resources (Windows)
3) Add the following line of text to the 'wikis.txt' file:
nottinghack _ https://wiki.nottinghack.org.uk/api.php
4) Now you can run Commonist and select 'nottinghack' in the list of Wikis. Execute ./commonist (on Linux or mac os x), or .\commonist.bat (on windows).

Using Commonist

Commonist uses a intuitive GUI. Enter your Nottinghack credentials and select Nottinghack Wiki. The file browsing pane allows you to select a directory. On the right hand side tick the photos in the directory to upload, specific details can be add. The information on the left will be add to all the uploaded photo pages.

Flickr

Note Note: If you want to upload a whole gallery of photos it may be better to use the Nottinghack flickr group, especial for high resolution files.

See how to embed a flickr gallery in a wiki page (defunct as of December 2019).