Category: NZTekonverse -> Linux
-
Python Scripting [4D]: Exif Based Image Renaming 4
After testing the Exif renaming script for the past couple of weeks I have added a piece of code to check for collisions and rename any file that collides with an existing filename. With Exif data, the most likely cause of a filename collision is when a camera is set to shoot continuously and it…
-
Python Scripting [4C]: Exif Based Image Renaming 3
After letting this one slide for quite a while, I picked it up again yesterday and have completed most of the coding. This is the full code to date (barring any further modifications found to be needed after testing). The script is run from the directory that is to be acted upon and takes no…
-
Buster moves to RC1
I have put a 240 GB SSD into the computer that I edit the map mosaics on (in Gimp) which gives me 200 GB of swap file space so that large projects can be handled more readily. I have no actual intention of going beyond 100 layers as in the present projects; it will be…
-
Python Scripting [6C]: Layer Sidecar Duplication & Renaming for NZ Rail Maps 3
After the use of the duplicate.py script for a while, an amendment has been decided upon and implemented this week. This is to simply duplicate the sidecars where there is no change of pixel size involved. For example it may be just a case of the prefix being changed. To implement these changes the following…
-
Python Scripting [6B]: Layer Sidecar Duplication & Renaming for NZ Rail Maps 2
Since yesterday the script has been completed and tested OK. Here is the complete script. It is similar to the segments script but a lot less complex with a total of 77 lines. # declarations import glob import argparse import os import shutil import sys rootPath = os.getcwd() # set up command line argument parser…
-
Lubuntu 19.04 with LXQt
It should generally be known by now that the Lubuntu project, which produces a version of Ubuntu that utilises the LX desktop environment for low resource usage, has switched from LXDE to LXQt in its more recent releases. The use of LXQt provides for a refreshing modern interface design in this application and for me,…
-
Python Scripting [6A]: Layer Sidecar Duplication & Renaming for NZ Rail Maps 1
Our new scripting project as of present is a script called duplicate.py which is specifically with the NZ Rail Maps project and it aims to achieve duplication and renaming of the sidecar files that are associated with raster layers. Suppose that we have a base raster 4800×7200 pixels named in the following pattern: Timbuctoo-930W8-92NN9.jpg We…
-
Webcam with Linux [1]
We need to do some livestreaming on Facebook Live for a project I am working on. Using a phone is quick and convenient, but pretty limited unless it is a selfie. So the next option is a webcam connected to a laptop and remotely located from it by a 5 metre cable which lets me…
-
Python Scripting [4B]: Exif Based Image Renaming 2
Today I am going to have a look at Pillow and its interface for reading EXIF data from images. As I mentioned previously, Pillow is a fork of PIL (the Python Imaging Library) and contains capabilities to read and write EXIF data from images. Although there are official documents for Pillow at Readthedocs, it is…
-
Python Scripting [4A]: Exif Based Image Renaming
This is now a new scripting project I am starting for Python. I need this script to rename all my photos off the camera, replacing the use of IrfanView which I used on my Windows 10 computer. Whilst I still have that computer and the software, I am looking to do something with Python scripting…