ಸಹಾಯ:Adding images
This page outlines how to prepare and include illustrated content at Wikisource.
The image guidelines discuss usage, style, and inclusion criteria.
After an image is prepared, go to Wikimedia Commons and follow the instructions at upload images.
File types
[ಸಂಪಾದಿಸಿ]- Djvu: a file containing a machine read text-layer and a scan of the source. Frequently used in side-by-side proof-reading via the Page and Index namespaces.
- JPG, PNG, TIFF, etc., suitable for illustrations, usually available at the same source as a djvu.
Image preparation
[ಸಂಪಾದಿಸಿ]- Obtain a high quality image: see below. Open it in an image editor.
- Crop the image to remove the text, including the caption, and any blank space.
- Rotate the illustration left or right as required, a finer adjustment can also improve images.
- White or transparent backgrounds match Wikisource pages, so consider converting monochrome illustrations
- convert to grey-scale by applying a 'colour profile' or similar command
- adjust the black and white points using 'colour correction' or similar.
The result should remove the colour of the background, leaving the 'ink' for display. Colour images require more advanced restoration techniques, assistance with this can be found at Commons.
Image quality
[ಸಂಪಾದಿಸಿ]Procedure for obtaining page scans and high quality images.
Text images
[ಸಂಪಾದಿಸಿ]The file type DjVu is available for transcription, proof-reading, and verification of works at Wikisource. These files are optimised for print, greatly compressing the file size, and include digitised text for each page. The file type also renders simple diagrams, but is not suitable for compression of colour and fine detail. Their use is discussed at Help:Proofread.
- Search for a scan of a work at a site such as archive.org
- Scan quality is occasionally poor. Use an online viewer to sample the scanned pages or check the text version at the site.
- Upload as described below, using an appropriate title and disambiguation.
- Note: It is possible to remove the first page if it contains extraneous content.
- Open the file using DjVuLibre or similar
- Select 'save as' and adjust the page range, e.g. 2–123
Illustrations
[ಸಂಪಾದಿಸಿ]Sites often provide scans of documents in a variety of file types. The Internet Archive and others have a selection of files that provide sources for images, some better than others.
Online viewer
[ಸಂಪಾದಿಸಿ]The online viewer at the Internet Archive site uses JP2 data to display JPG images. If a work contains several illustrations you can obtain good versions from this viewer.
- Locate the source of the scan. A DjVu file's information should note this as source =
- Navigate to the Internet Archive's "details" page.
- Select the online viewer (flipbook) using the "Read online" link.
- Set view to a single page.
- Navigate to the image.
- Using the page number.
- Using the .djvu index number with the prefix "n".
- Zoom the image to "100%" (important, otherwise you will lose a lot of detail).
- Choose a title (See Image naming).
- Right click on the image and select "Save as...".
- Prepare the image as above.
Automatic processing with Imagemagick
[ಸಂಪಾದಿಸಿ]If you have Imagemagick (all operating systems), you can remove a paper texture automatically from a black-and-white image by adjusting the colour levels as follows:
convert foo.jpg -level-colors 'rgb(40,40,40),rgb(180,180,160)' -type Grayscale foo2.jpg
or
convert foo.jpg -level 49% -type Grayscale foo2.png
Original image cropped from a page scan | Image processed with Imagemagick |
If you need a transparent background (for example for a drop initial over a coloured background), you can then use the following command:
convert foo2.jpg -negate -background transparent -alpha Shape foo.png;
Upload steps
[ಸಂಪಾದಿಸಿ]To add images to Wikisource use Wikimedia Commons, where they become immediately available for use on Wikisource and elsewhere. Images are not usually uploaded directly to Wikisource.
- See also: Commons:First steps
- Make sure that the image you would like to upload complies with the copyright rules of Wikimedia Commons.
- Use the best quality available and modify the file for inclusion here.
- Upload the file and give detailed information about the image, a url for the source, and the copyright status.
- Give the file a name in accordance with the style discussed at image guidelines, and categorize the file at commons.
- Note any modifications, such as a crop, removed caption or conversion to black & white. Best practice at Commons is to also upload the unmodified file and link it from
other_versions=
in the description.
Adding to Wikisource
[ಸಂಪಾದಿಸಿ]
This image is shown using {{img float}}. It doesn't have a frame, but it still has a caption.
- See also: Wikipedia:Picture tutorial
- Navigate to the page on Wikisource where you would like to add the image, and then click "edit".
- Type [[File:Image Name Here.jpg|frameless]] to add the image. It is also possible to align the image: [[File:Image Name Here.jpg|frameless|center]] will center the image on the page, 'left' or 'right' will allow the text flow around the image.
- Image size is a user defined preference. To override the default size, add a value ...|frameless|90px]] to force a relatively smaller size. Note that larger images can affect the rendering of a page and may greatly increase its size.
- Save the change, and ensure that the image does not hinder the reading of the text in any way.
- You can also use a template like {{img float}} to insert an image float to the left or right with a caption, but no frame.