User:File Upload Bot (Timscaffidi)
This is the mass upload account for User:Timscaffidi
Uploading Public Domain art reproductions from the "Great Works of Art" series from Corel Professional Photo CDs.
I used a few command line tools to convert and rename the images. It seems that the largest size for each work is 1536x1024. The PCD files include much larger versions, but they appear to be simply interpolated versions of the 1536x1024.
Here is the command. It uses imagemagik's convert and sed for most of the work. The command should be run from the root of the CD-ROM.
sed -n 's/[0-9]\.PCD/&/p' utils/info.ini | tr -d '\015' | sed -e 's/\ (detail)//g' -e 's/^/convert\ -verbose\ corel\//' -e 's/$/.png\"/' -e 's/PCD=\"/pcd[4]\ \"\/\home\/tim\/pcd\//' -e 's/\",/\ -/' | sh
I wanted to find a script that could easily upload each image based on the meta-data file on the CD (utils/info.ini) but the information was very limited. I could not find information on medium, dimensions or date. The perl scripts I found both had issues which I could not resolve, so I am now using the java applet commonist. There are about 500 images I have to upload, each one requires me to track down at least the date.