Hi Rich,
RWAP wrote:JNorman - can the upload of images into the dokuwiki site be automated in some way ?
I've had a look, I had some playtime this afternoon, and found that there are 617 image links in the Wiki code. Of these, there are 612 unique images, 606 hosted on your site, and the rest found elsewhere. Sadly, all the COWO stuff no longer worked as the web site linked to is no more. However I found the missing 4 images and downloaded them too, so I now have a full set.
I adapted the "listWiki" utility to output a wget parameter file then "wgot" them all.
Some of the filenames were something.gif, however, it turned out that some of those gifs were jpegs and one was a bmp and the last, rwapbanner.gif, was actually rwapbanner.png. Linux complained when I tested all images to see if they worked or not. Once I fixed those by changing the gif extension to the correct one, all was well.
I've also uploaded them, all 612, to the 'qlwiki' name-space (for images) on the new Wiki and in doing so, I had 5 failures. It seems that BMP files are not permitted, so I converted eva_screenshot.bmp to jpeg. Also, the 4 files names *advert* simply refuse to upload. I renamed them to *ad* and they worked fine. Hmmm, interesting.
I now have all the images uploaded, corrected and working fine. I'll take a while next week and write some more code to convert the full URLs to the desired URL to load from the Wiki itself.
For my reference, this will be:
Code: Select all
{{:qlwiki:file_name.jpg?direct&size|Some explanatory text}}
With the desired alignment etc as appropriate.
So, I think - famous last words - that I have a complete collection of all the Wiki files and images present on the free host site. We shall see!
The images have been zipped up and added to my repository and I've pushed them to the SinclairQL repository as well. We should be both up to date.
Cheers,
Norm.