User:Nichalp/Upload script/installation
From Wikimedia Commons, the free media repository
| Nichalp's upload script | |
| Script information | |
|---|---|
| Author | Nichalp |
| Talk | Talk |
| Main page | Upload script |
| Language | Perl |
| Version | 1.0 + 1.3.1 |
| Description | Automates mass uploading of images with metadata |
| Licence | GPLv3 |
| Formats supported | JPG/JPEG |
| Scripts | |
| Scripts | |
| Help files | |
| Running the script | Main page |
| Installation | Installation |
| Spreadsheet information | csv fields explained |
| CSV example | upload.csv |
| Spreadsheet tips | Spreadsheet tips |
You need to have the Perl installed along with the following libraries:
- CSV Parser — to parse the CSV data
- ExifTool — to read and write Exif data
- Jpegtran — to rotate or flip images before uploading
The Linux part has been tested on Ubuntu, and reflects the Debian methods (apt-get) of installation. Windows help portion has been tested only on Vista. No idea about Mac.
Note: You need to have administrator permissions on both Linux and Windows to proceed.
Contents |
[edit] Linux
[edit] Perl
Perl comes with your Linux distribution. You can get the latest version by: sudo apt-get install perl
[edit] CSV parser
- Download the latest version of Text-CSV_XS from URL (90 KB). (If you get a 404 error, the package was probably upgraded. Go to the parent directory and look for the Text-CSV_XS-x.xx link. Please update this page for later users!).
- Open Terminal and navigate to the downloaded folder.
- In Terminal, type
tar xvzf Text-CSV_XS-0.66.tgz(Assuming that 0.66 is the downloaded version) - Type
cd Text-CSV_XS-0.66. - Read the README file.
- After reading the file, in Terminal, type the following:
perl Makefile.PLmakemake testsudo make install
[edit] ExifTool
- Go to the ExifTool homepage and download the full version URL (2.1 MB).
- Open Terminal and navigate to the downloaded folder.
- In Terminal, type
tar xvzf Image-ExifTool-7.86.tar.gz(Assuming that 7.86 is the downloaded version) - Type
cd Image-ExifTool-7.86. - Read the README file.
- After reading the file, in Terminal, type the following:
perl Makefile.PLmakemake testsudo make install
[edit] Jpegtran
Known as libjpeg62
- Open the Terminal and type:
sudo apt-get install libjpeg62 libjpeg-progs
[edit] Windows
[edit] Perl
You need to install Perl. Follow these steps:
- Download ActivePerl URL (15.4 MB).
- Install to the default folder (C:/Perl). You can change this if you want.
- In the Start menu, go to Run, and then type
cmdto open the Command Prompt. - In the command prompt dialog box, type
perl -v.- If Perl-related information appears, that means that ActivePerl is installed successfully.
[edit] CSV parser
- This is included in the ActivePerl distribution. You do not have to do anything.
- To get the latest version, go to: URL
[edit] ExifTool
- Go to the ExifTool homepage: URL.
- Download the full version, not the Windows executable (1.6 MB).
- Extract the zipped file by using a zip utility such as 7-zip or WinZip.
- Navigate to the extracted Image-Exiftool folder.
- In the Image-ExifTool folder, copy the contents of the lib folder to C:/Perl/lib. If asked to merge the File folder, click Yes.
[edit] Jpegtran
- Go to the JPEG for Windows homepage: URL.
- Download the complete package (without source) (800 KB).
- Install to C:\Program Files\GnuWin32
- After installation, go to C:\Program Files\GnuWin32\bin
- Copy these three files: jpegtran.exe, jpeg62.dll, and librle3.dll to C:\Windows