martedì 14 ottobre 2025

Bulk operations on MikroTik switch ports (interface range)

RouterOS' syntax lacks a "range" statement, like on Cisco IOS and similar CLIs, but you can leverage its scripting capabilities even in the interactive shell, and just do a for loop:

for i from=1 to=28 do={interface bridge port add bridge=bridge1 interface="ether$i"}

Scanning film with a flatbed scanner: what you can expect and what worked for me

As many film photographer will know, getting sharp scans out of a flatbed scanner is challenging at best, especially if you're doing it at high resolution, for example for inkjet prints. The issue lies mostly in the scanner's optics: most flatbeds with TMAs have a fixed focus lens that is rarely tuned to precision, and while the sensor and stepper motors could be capable of acquiring high resolution (altough noisy) images, if the media is out of focus or the lens just isn't that sharp, the actual, optical resolution of the captured image will be much lower, often in the 1400 to 2000 DPI range.

While 120 film, with its larger area, is more forgiving to lower resolution scanners, you might give up on getting a sharp scan out of a tiny 135 frame on a mid-range flatbed. However, they can be made to work for up to 13x18 prints (and maybe 18x24 if you're not too hung up on details), and they are certainly suitable for social media uploads. The key is to find a proper workflow, as often the software provided by the manufacturer is uncapable of delivering neither a high color depth for later grading in photo finishing software, nor a satisfying native inversion.

I've developed the following workflow for my HP Scanjet G4010 and G3010 scanners, which have an optical resolution of about 1400 DPI. It works by capturing a positive image and then inverting it manually in RawTherapee.

1. Capture a positive, 48-bit TIFF file from VueScan or Silverfast

This is crucial in order to retain the full color depth, and having maximum flexibility when inverting and grading the negative. My VueScan settings are as follows.

Input: 

- Scan resolution: as high as it goes. My G3010 does 4800 DPI, so that's what I will select. If you're running low on disk space you could go lower, albeit losing a bit of editing flexibility, and not really notice a difference. On my setup I could go as low as 2400 DPI without losing significant detail

- Mode: Transparency (it lights up the TMA lamp and scans only the negative strip area)

- Media: Image (it captures the negative without doing any inversion)

- Bits per pixel: 48-bit

- Lock exposure (ensures all negatives are scanned to the same exposure settings)

- Mirror (you should load the negatives emulsion-side down, and this flag ensures the output image is already mirrored)

Crop:

- Crop size: Maximum, Multi crop: Off (it seems that the frame detection does not work great when dealing with negatives)

Color:

- Color balance: None

- Output color space: Adobe RGB (again, we want to retain the most information in our TIFF file)

2. Inverting it in RawTherapee

RawTherapee has a built-in Film Negative profile. That will, however, require adjustments in:

- The reference exponent (tuned to the lightness of the negative)

- CMY levels

- White balance (in order to balance a scanner light that could be slightly off the 5500K mark)

Tune those values to a baseline that is identical and looks good across all the scanned negatives. That means:

- No cyan, magenta or yellow "casts" on the pictures 

- White balances of the scan matches the white balance of the film stock

- No burnt highlights, no muddy shadows

Then apply the profile to all the negatives in the batch, and you can start grading then one by one.

3. Some tricks to make a low resolution, noisy scan look good

You cannot recreate detail that was lost to the scanner's poor optical performance. What you can do in order to mitigate a soft looking image, is to use an unsharp mask and local contrast enhancement to fake it into looking a bit more sharp.

Also, those scanners produce pretty noisy output. The Noise reduction tool in RawTherapee, when set to work in the L*a*b* color space and in Conservative mode does a good job of removing a bit of RGB noise without further destroying the sharpness of the picture.

As a side note, some insist that you should not grade your negatives digitally, as it detracts from the film stock's characteristics and color science. I think that's nonsense, since even when doing darkroom prints you're expected to be doing some fine tuning in terms of filtering and exposure, but you do you.

The obvious drawback to this method: it takes time. Certainly, if you're in a hurry, VueScan or Silverfast might do an okay job of inverting negatives, and if you save them to 48-bit TIFF you still retain huge flexibility for doing later edits. What you will lose by letting the software doing the inversion for you is the consistency of having every frame inverted to the same exact baseline spec.

To conclude, a wholehearted recommendation: if you're serious about shooting and scanning film, get a dedicated film scanner (Primefilm or Plustek scanners are good, cost-effective options) or a DSLR scanning setup. But if you're dipping your toes in this your old scanner might work fine for Instagram posts, and there's a lot that can be squeezed from even an older, cheaper machine.

Shots from Trieste

Ilford Pan 400, Minolta Dynax 700si, Minolta AF 24-85mm f/3.5-4.5, scanned on a Nikon Coolscan IV ED and inverted/graded in RawTherapee.

Solving USB communication issues on Nikon Coolscan IV ED (LS-40 ED)

This blog post addresses some common issues on the Nikon Coolscan IV ED/LS-40 ED film scanner. Many report problems that seem to be related to USB communication on newer operating systems (that is, every 64-bit Windows version and modern Mac OS). For example:

* On Windows, the device fails to initialize (yellow warning sign in Device Manager), often with the message "This device cannot start. (Code 10) insufficient system resources exist to complete the API."

* On Mac OS, with Vuescan, the scanner seems to work at first, however it ceases to communicate after one or two successful scans

* On Mac OS, with Silverfast, the scanner is not recognized at all

This is due to issues in the USB routines of firmware 1.05 that were corrected on 1.10 and later revisions.

To check the current firmware revision, it is sufficient to open the Nikon Scan program, and it will tell which version the scanner is on on the window title:

If you're on firmware 1.05, you will have to update. The following steps will work for updating to version 1.20, which is what worked for me.

You're going to need:

* A Windows XP 32-bit or Windows 2000 computer (or virtual machine with USB pass-through capabilities). It's the only platform on which a 1.05 scanner can be reliably connected and updated

* The Nikon Scan 3.12 ISO (easily obtainable on the Internet Archive).

* Crucially, the 1.20 firmware updater. This is not found as easily and i cannot share it (it already got taken down from Mega for copyright claims), but you can look for a Zip bundle called LS40FW120_WIN or LS40FW_WIN on the Web. There's a Facebook group for Coolscan users, which gathers a lot of very experienced and helpful people: I encourage you to search for it or ask there.

Edit: it seems it's available on the DriverGuide website. It's sketchy, but it's seems to be legit. 

DO NOT attempt to install Nikon Scan 4 first, as you will end up with the wrong driver version and i guarantee you it's almost impossible to get rid of it, as its uninstaller does not remove the driver. You MUST use version 3.12. If you have updated to Nikon Scan 4, you will be greeted with this screen:

Here are the steps:

1. Boot Windows XP and connect the scanner via USB

2. Install Nikon Scan 3.12, using the Autorun setup

3. Check if you can do a successful scan

4. Unzip the LS40FW120_WIN.zip file, and launch the Windows\COOLSCANIVED_120.exe executable

5. Follow the procedure to update the firmware

Easy as that. Now you should be able to connect it to a Windows 10/11 or current Mac machine without issues.

If you're on Windows and it's still not recognized, you may need current drivers for it.

The FastPictureView website provides them for free, or you can choose to use paid scanning programs like VueScan or Silverfast which already include them.

In evidenza

BGP configuration on Sophos XG/XGS firewalls

Sophos XG firewalls, at the time of writing, do not offer sufficient flexibility for configuring BGP via the web panel (namely, you cannot e...