← Home

Downloads

Free tools for astrophotography

Image Preparation

Tools for the step between stacking and processing: naming, tidying and combining your master lights.

ChangeImageID

v1.1.0 · PixInsight script · released 2026-11-21

Gives your master lights short, standard image IDs (R, G, B, L, Ha, SII, OIII), closes the windows that integration leaves behind, and builds the RGB and SHO colour images for you, with LinearFit. It is one click between stacking and processing, and works on macOS and Windows.

Download ChangeImageID-v1.1.0.zip

ZIP, 9 KB · Requires PixInsight 1.9 or later SHA-256 1995ffd41e149b2be858b15b57f2e669135bf30f20aa01f1b0a436a3e17c9d50

What it does

  1. Closes integration side products. Windows named *_crop_mask, *_drizzle_weights and *_rejection_low / *_rejection_high are closed. Files on disk are not touched.
  2. Applies AutoSTF to every open image, for display only. Pixel data is not changed.
  3. Suggests a short ID for each image: from the view ID (MasterLight_R becomes R), otherwise from the FILTER- part of the file name written by WBPP (…_FILTER-Ha_mono.xisf becomes Ha), otherwise the file name.
  4. Renames the images when you click OK.
  5. Builds RGB from R, G and B (R and B are linear-fitted to G) and SHO from SII, Ha and OIII (SII → red, Ha → green, OIII → blue; SII and OIII are linear-fitted to Ha), whenever all three channels are open.

Recognized names, in any letter case: R / Red, G / Green, B / Blue, L / Luminance, Ha / H / Halpha, SII / S / S2 / Sulfur, OIII / O / O3 / Oxygen.

Install and run

  1. Unzip the download. You get a folder named ChangeImageID. Put it somewhere permanent, for example Documents/PixInsight Scripts/ChangeImageID.
  2. In PixInsight, choose Script › Execute Script File… and select ChangeImageID.js.
  3. Optional: to add it to the Script menu, choose Script › Feature Scripts…, click Add, select the ChangeImageID folder, then click Done. From then on, start it from Script › Astro Scripts › ChangeImageID.

Step by step

The Rename Image IDs dialog: four master lights listed with their file names, original IDs MasterLight_B, G, L and R, suggested new IDs B, G, L and R, three option checkboxes, and OK and Cancel buttons.
The Rename Image IDs dialog with four WBPP master lights. Click the picture to see it full size.
  1. Open your master lights in PixInsight, for example straight from WBPP's master folder. Drizzle weights, crop masks and rejection maps can be open too; they are closed for you.
  2. Run ChangeImageID. The Rename Image IDs dialog lists every open image: its file name (hover for the full path), its current ID, and the suggested New ID.
  3. Check the New IDs. Type over any you want to change. Leave one empty to keep that image's current ID.
  4. Choose the options. Skip Linearfit and Skip Making RGB Image only renames R, G and B. Remove individual R, G and B images after making RGB (on by default) closes the channels once RGB exists; they stay open if RGB cannot be built. Skip Linearfit and Skip Making SHO Image only renames SII, Ha and OIII.
  5. Click OK. The images are renamed and RGB and SHO are built. The Process Console lists every rename, closed window and new image.
  6. Save the results you want to keep. Nothing is written to disk.

Good to know

  • IDs may contain only letters, digits and underscores. Other characters become underscores, and an ID that starts with a digit gets a v_ prefix.
  • If an ID is already used by an image that is not being renamed, a number is added (R1). IDs can be swapped between images in the same run.
  • LinearFit changes the channel pixels in memory (R and B, or SII and OIII). The files on disk are never changed.
  • RGB and SHO need registered channels of the same size. If a channel is missing, in colour, or a different size, that colour image is skipped and the Process Console says why.
  • Click Help… in the dialog for a summary of all of this.

To update

Replace the ChangeImageID folder with the new one. If you added it to Feature Scripts, open Script › Feature Scripts… and click Done again. Version 1.1.0 appears in the menu as ChangeImageID, where earlier copies were called RenameImageIDs. Since 2026-11-22 the scripts appear under Script › Astro Scripts (formerly Chinh Scripts).

Credits. By Chinh Nguyen, developed with Claude Code (Anthropic) and Codex (OpenAI). It uses PixInsight's own LinearFit and ChannelCombination processes. Free to use and share; provided as is, without warranty.

Gradient Removal

Tools that model and remove light pollution, sky glow and vignetting from linear images.

SFGradient

v1.0.1 · PixInsight script · updated 2026-11-21

Sample-free gradient removal for PixInsight. It models and removes light pollution and other gradients from linear images without placing sample points. It includes live previews, per-image settings, LinearFit and RGB / SHO composites. Everything runs inside PixInsight, with no other application, Python or helper program to install, and the same files work on macOS, Windows and Linux.

Download SFGradient-v1.0.1.zip

ZIP, 69 KB · Requires PixInsight 1.9 or later · GPL-3.0-or-later SHA-256 2ba9be5a556e5f37b7c367a921bef4bc6ef8ecab3fd1eea3dcf4229475e37eaa

New in 1.0.1: closing the dialog now always ends the script cleanly. Version 1.0.0 could occasionally leave PixInsight waiting for it, which stopped other scripts from starting until PixInsight was restarted. Please update. Also adds an About… button with the credits.

Install and run

  1. Unzip the download. You get a folder named SFGradient. Keep its files together and put the folder somewhere permanent, for example Documents/PixInsight Scripts/SFGradient.
  2. In PixInsight, open the linear images you want to correct. They must not be stretched yet.
  3. Choose Script › Execute Script File… and select SFGradient.js inside the folder. The dialog opens with the active image already previewed.
  4. Optional: to add it to the Script menu, choose Script › Feature Scripts…, click Add, select the SFGradient folder, then click Done. From then on, start it from Script › Astro Scripts › SFGradient.

Step by step: one image

The SFGradient dialog in PixInsight: the image list at top left, the Process settings below it, a large preview of the corrected image on the right, and the save buttons under the preview.
The SFGradient dialog with a luminance image. Click the picture to see it full size.
  1. Select the image. Double-click its ImageID in the image list. Every image open in PixInsight is listed; the arrow keys move between them, and each one keeps its own settings.
  2. Select Polynomial. Check Polynomial + multiscale on the Process tab. Degree 1 suits most images; raise it only for curved gradients. Scale, Smoothness and the protection settings can usually stay at their defaults.
  3. It corrects automatically. The preview recalculates on its own after every change. Use View, or press Space, to compare Original, Final and Background, and check that no real nebulosity went into the Background.
  4. Save the output. Save to PI overwrites the image (with Undo) or creates a new one, as chosen in PI output. Save image… writes a file. Save and exit applies every image you worked on and closes the dialog. Your files on disk are never overwritten.

Step by step: RGB or SHO colour image

  1. Open the three channels in PixInsight: registered, same-size mono masters named R, G and B (or S, H and O; names such as Ha, OIII and SII also work). Then start SFGradient.
  2. Correct each channel. Double-click each channel in the list and set it up as in the steps above. Each channel keeps its own settings.
  3. Check the three channels in the Active column of the list.
  4. Check LinearFit to balance the channels before they are combined, and pick the Fit reference (lowest median is a good start).
  5. Click Generate RGB / SHO. The colour image is added to the list and previewed. After changing a channel, click it again to rebuild.
  6. Click Save and exit. It writes the corrected channels and the colour image to PixInsight, with Undo on each.

The histogram and display controls only change the preview. Saved images stay linear. Click Help… in the dialog for every setting, About… for the credits, and Open algorithm PDF for how the algorithm works.

To update

Replace the SFGradient folder with the new one. If you added it to Feature Scripts, open Script › Feature Scripts… and click Done again. Since 2026-11-22 the scripts appear under Script › Astro Scripts (formerly Chinh Scripts).

Credits. SFGradient is based on the sample-free background extraction in GraXpert, by Steffen Hirtle and the GraXpert contributors (source). It follows GraXpert's method, settings and defaults, and it is tested against GraXpert's own implementation, which it reproduces to float32 rounding. Many thanks to the GraXpert team for making their work open source.

The underlying model is Siril's automatic gradient extraction (Francois Meyer, 2005–2011; team free-astro, 2012–2026; simplified model by Cyril Richard and the Siril team). The PixInsight port and interface are by Chinh Nguyen, developed with Claude Code (Anthropic) and Codex (OpenAI).

SFGradient is an independent port. It does not include or need GraXpert or Siril, and it is not affiliated with or endorsed by either project. It is free software under the GNU GPL v3 or later and comes with no warranty. The full license is in LICENSE.md inside the download.

Registration & Merging

Tools that align images of the same field and combine them for more signal.

AlignMerge

v1.6 · PixInsight script · released 2026-11-21

Registers one image onto another and merges the two to raise the signal-to-noise ratio, for example two sessions of the same target taken with different cameras, telescopes or framing. Image 2 is matched to Image 1's signal level and background tile by tile, weighted by its noise, and blended in with a feathered edge. It works with grayscale or RGB images, on macOS and Windows.

Download AlignMerge-v1.6.zip

ZIP, 13 KB · Requires PixInsight 1.9 or later SHA-256 3bf0b4b4a98bf9aabe0aef0853e5ceb5a1133afd49584a57b079b8a842089ab4

Plate solve both images first. The default registration method, AlignByCoordinates, uses each image's astrometric solution, so both images must be plate solved before you start. Use Script › Image Analysis › ImageSolver, or keep the solution that WBPP or SPFC already added. If you can't plate solve, choose StarAlignment instead.

Install and run

  1. Unzip the download. You get a folder named AlignMerge. Put it somewhere permanent, for example Documents/PixInsight Scripts/AlignMerge.
  2. In PixInsight, choose Script › Execute Script File… and select AlignMerge.js.
  3. Optional: to add it to the Script menu, choose Script › Feature Scripts…, click Add, select the AlignMerge folder, then click Done. From then on, start it from Script › Astro Scripts › AlignMerge.

Step by step

The AlignMerge dialog showing the Merged Image tab: two RGB images of a reflection nebula merged, with Image 1, Image 2 and Align selectors at the top, the settings row, preview tabs, and the Preview Merge, Create Image and Close, and Save Aligned Image 2 buttons at the bottom.
The Merged Image tab after Preview Merge. Click the picture to see it full size.
  1. Plate solve both images (see above) and open them in PixInsight. Use linear images that are not stretched yet. Removing gradients from both first, for example with SFGradient, gives the cleanest blend.
  2. Choose Image 1 / reference. Its pixel grid, size and orientation define the output.
  3. Choose Image 2, the image to register and blend in.
  4. Choose Align. AlignByCoordinates (default) needs both plate solutions. StarAlignment matches stars instead. Choose None only if both images already share exactly the same pixel grid.
  5. Click Preview Merge. Image 2 is registered and merged. The tabs show Image 1, the registered Image 2, the Merged Image and an SNR comparison, and the status line shows each image's weight and the gain per channel.
  6. Click Create Image and Close to create the full-resolution result as a new image named by Output ID (default Merged).

Optional: Save Aligned Image 2… registers Image 2 and saves it as XISF without merging, for example to combine it elsewhere.

The Image 2 tab: the second image rotated onto the first image's pixel grid by AlignByCoordinates, with black triangles in two corners where it has no coverage.
The Image 2 tab: Image 2 rotated onto Image 1's grid by AlignByCoordinates. The black corners are outside Image 2's coverage; there the result is Image 1 alone.

Settings

  • Noise spacing (12): pixel spacing used to estimate noise for the weighting, from 1 to 64.
  • Feather width (300): width of the blend at the edge of Image 2's coverage, in Image 1 pixels, from 1 to 5000.
  • Image 2 gain (Auto): scale that puts Image 2 on Image 1's signal level. Auto measures it for each channel.
  • Image 2 weight % (Auto): share of Image 2 inside the overlap. Auto weights by noise, so the cleaner image counts more.

Good to know

  • Outside Image 2's coverage the result is Image 1 alone, so the SNR gain is only in the overlap.
  • With equal noise, a 50/50 blend lowers noise to about 71% and raises SNR by about 41% in the overlap.
  • A grayscale and an RGB image together produce RGB.
  • The preview stretch is for display only; the result stays linear. Your input images are never changed.
  • The SNR comparison tab estimates whole-image median / noise per channel for each input and the result. The values are also stored in the output's AlignMerge:SNR property.
  • Click Help / About in the dialog for more detail.

To update

Replace the AlignMerge folder with the new one. If you added it to Feature Scripts, open Script › Feature Scripts… and click Done again. Since 2026-11-22 the scripts appear under Script › Astro Scripts (formerly Chinh Scripts).

Credits. By Chinh Nguyen, developed with Claude Code (Anthropic) and Codex (OpenAI). Registration uses PixInsight's own StarAlignment process and its astrometry library (the engine of the AlignByCoordinates script). Free to use and share; provided as is, without warranty.

Stretching

Tools for the move from linear to non-linear data.

MakeSTFPermanent

v1.1 · PixInsight script · released 2026-11-21

Turns the screen stretch you see into a real stretch. The active image's screen transfer function (STF), for example from AutoSTF or the ScreenTransferFunction tool, is applied to the pixels as an equivalent HistogramTransformation. The STF is then reset, so the image looks exactly as it did, but the stretch is now in the data. One click replaces the usual "drag the STF triangle onto HistogramTransformation, apply, reset the STF" routine. It works with grayscale and RGB images, on macOS and Windows.

Download MakeSTFPermanent-v1.1.zip

ZIP, 3 KB · Requires PixInsight 1.9 or later SHA-256 f9fb4bc5d39b0ec2ab34318f6b5b0458118b512d6bce3cae293b5cfe984da233

Install and run

  1. Unzip the download. You get a folder named MakeSTFPermanent. Put it somewhere permanent, for example Documents/PixInsight Scripts/MakeSTFPermanent.
  2. In PixInsight, choose Script › Execute Script File… and select MakeSTFPermanent.js.
  3. Optional: to add it to the Script menu, choose Script › Feature Scripts…, click Add, select the MakeSTFPermanent folder, then click Done. From then on, start it from Script › Astro Scripts › MakeSTFPermanent. Feature scripts can also be given a keyboard shortcut or a toolbar icon in PixInsight.

Step by step

  1. Finish your linear processing first: gradient removal, colour calibration, noise reduction and so on. After this script the image is no longer linear.
  2. Click the image to make it the active window.
  3. Set the screen stretch you want to keep: AutoSTF (Ctrl+A on Windows, Cmd+A on macOS, or the radioactive icon in ScreenTransferFunction), then fine-tune it in the ScreenTransferFunction tool if you like. Linked or unlinked channels both work; each channel's settings are kept.
  4. Run MakeSTFPermanent. There is no dialog. The stretch is applied, the STF is reset, and the Process Console reports what was done.
  5. Check the result. The image looks the same but now holds stretched data. Edit › Undo returns to the linear image. Save the image to keep the result.

Good to know

  • It works on the active image's main view.
  • If the image has no screen stretch (the STF is already neutral), nothing is changed and a message says so.
  • Grayscale images use their single STF channel. RGB images keep separate red, green and blue settings, so an unlinked AutoSTF also neutralizes the background colour.
  • The STF's shadows, midtones, highlights and range values are all transferred, so the result matches what was on screen.
  • The script changes the image in PixInsight only. Save it to keep the result.

To update

Replace the MakeSTFPermanent folder with the new one. If you added it to Feature Scripts, open Script › Feature Scripts… and click Done again. Since 2026-11-22 the scripts appear under Script › Astro Scripts (formerly Chinh Scripts).

Credits. By Chinh Nguyen, developed with Claude Code (Anthropic) and Codex (OpenAI). It uses PixInsight's own HistogramTransformation process. Free to use and share; provided as is, without warranty.

MergeDetailsPS

v1.1 · PixInsight script · released 2026-11-22

Blend two stretches of the same image the way you would with layers in Photoshop: a stronger Details stretch on top, a gentler Core stretch below, and a layer mask you paint by hand. Paint black over a blown-out galaxy core or bright nebula to reveal the gentler stretch there, and keep the strong stretch everywhere else. You see the merged result live while you paint, and a Dodge & burn tab lets you lighten or darken either layer with the same brush. Works on macOS and Windows.

Download MergeDetailsPS-v1.1.zip

ZIP, 31 KB · Requires PixInsight 1.9 or later · Includes MaskGenerator 1.1 SHA-256 df41eeebd0aa5e210930dceaf5c206d89b47cee40c9e6258c2422109935f7588

Install and run

  1. Unzip the download. You get a folder named MergeDetailsPS. Put it somewhere permanent, for example Documents/PixInsight Scripts/MergeDetailsPS. Keep MaskGenerator.js in the same folder: MergeDetailsPS uses it for the preview and image handling.
  2. In PixInsight, choose Script › Execute Script File… and select MergeDetailsPS.js.
  3. Optional: to add it to the Script menu, choose Script › Feature Scripts…, click Add, select the MergeDetailsPS folder, then click Done. From then on, start it from Script › Astro Scripts › MergeDetailsPS. MaskGenerator is added to the menu too.

Step by step

  1. Make two stretches of the same image and apply them to the pixels, for example with GHS, HistogramTransformation or MakeSTFPermanent. An STF screen stretch alone is not enough. Make one strong, for faint detail (Details), and one gentle that keeps the bright core from burning out (Core). Both must be the same size and both mono or both RGB, so stretch copies of one image.
  2. Run MergeDetailsPS and choose Details / top and Core / bottom. The mask starts white, so you see Details everywhere. If the two images from your last run are still open, they are selected for you.
  3. Set the brush. Brush radius (default 200) is in image pixels; press [ and ] to change it while the pointer is over the preview. Hardness (default 10%) sets how soft the edge is. Brush opacity (default 10%) is the most one stroke can change the mask. The grey circle under the pointer shows the brush. Your settings are remembered for the next run.
  4. Paint black to reveal Core. With Black: reveal Core selected, drag over the bright areas on Paint / merged image. Release and paint again to build the effect up gradually. However long you hold the button and paint, one stroke never goes past the Brush opacity; to make it darker, release and paint over it again. Prefer an airbrush? Check Airbrush: holding the button still then keeps painting at that spot, deepening the longer you hold. Switch to White: restore Details to paint Details back.
  5. Compare. Right-click the paint preview to flip between the original Details layer alone and the merged result after painting. The tab name changes to Original (Details only) while the original is showing; right-click again, or just start painting, to return to the merged result.
  6. Dodge & burn (optional). The Dodge & burn tab shows one layer at a time: Details or Core. Choose it under Show, or right-click the preview to switch; the tab name says which is showing. Paint with the same brush (size, hardness, opacity, Airbrush, [ / ]): Dodge: lighten brightens and Burn: darken darkens that layer. It works like a gamma curve, so black and white stay put and nothing clips. Brush opacity sets the strength of each stroke; paint again to go further. The merged result updates as you paint. Reset dodge & burn (on this tab) clears the shown layer. Undo / Redo cover strokes on every tab, in order. Your input images are not changed; dodge & burn goes into the saved result.
  7. Fine-tune. Undo (Cmd+Z on macOS, Ctrl+Z on Windows) takes back the last brush stroke and Redo (Shift+Cmd+Z / Shift+Ctrl+Z or Ctrl+Y) puts it back, one stroke at a time. Reset mask (also undoable) starts the mask over. Top layer opacity below 100% shows more Core everywhere. The Top layer mask tab shows the mask: white keeps Details, black reveals Core.
  8. Save. Enter an Output ID and click Save to PI and Exit. The merged image is built at full resolution as a new 32-bit image. If an image with that ID is already open (an earlier result, say), the new one gets the next free ID (_1, _2, …), and the Process Console says which. Keep layer mask in PI is off at the start of every run; check it to also keep the painted mask as <Output ID>_mask. Save the new images to disk yourself.

Preview navigation

  • Paint: left-drag on Paint / merged image.
  • Brush size: [ smaller, ] larger.
  • Original / after: right-click the paint preview.
  • Details / Core: right-click the Dodge & burn preview.
  • Airbrush: check Airbrush to keep painting while the button is held still.
  • Undo / Redo stroke: Cmd+Z / Shift+Cmd+Z on macOS; Ctrl+Z / Shift+Ctrl+Z or Ctrl+Y on Windows.
  • Zoom: mouse wheel or trackpad pinch, or + / −.
  • Pan: Option-drag on macOS or Alt-drag on Windows, or drag with the middle mouse button. On the mask tab a plain drag pans.
  • Fit / 1:1: 0 fits the preview; 1 shows 1:1.

Good to know

  • Result = Details × (mask × top opacity) + Core × (1 − mask × top opacity), using the dodged and burned layers. No rescaling, clipping or extra stretch is applied, and the two input images are not changed.
  • The preview is reduced to about 1200 pixels on its longest side for speed; the saved image is rendered from your strokes at full resolution. Check fine detail at 1:1 in PixInsight.
  • The brush, opacity, mode, dodge/burn mode, shown layer, Airbrush and output ID settings, and the last two layers, are remembered when the dialog closes.
  • Choosing a different layer starts a fresh mask. Reload layers re-reads the same two images (after you edit them) and keeps your strokes.
  • The strokes are recorded on the output image for reference, but a painting session can't be reopened later. Cancel discards the session.

To update

Replace the MergeDetailsPS folder with the new one. If you added it to Feature Scripts, open Script › Feature Scripts… and click Done again. Since 2026-11-22 the scripts appear under Script › Astro Scripts (formerly Chinh Scripts).

Credits. By Chinh Nguyen, developed with Claude Code (Anthropic) and Codex (OpenAI). Free to use and share; provided as is, without warranty.

Masks

Tools that protect part of an image while you process the rest.

MaskGenerator

v1.1 · PixInsight script · released 2026-11-21

Draw freehand shapes on a preview of the active image and turn them into a soft, feathered mask attached to that image. A typical use is protecting a galaxy core or a bright nebula while you stretch the rest with GHS or HistogramTransformation. Shapes and settings stay with the image, so you can close the tool, run a process and come back where you left off. Works on macOS and Windows.

Download MaskGenerator-v1.1.zip

ZIP, 17 KB · Requires PixInsight 1.9 or later SHA-256 3e9e90981c9fafe5b903869039274b96414e89869f13bb082656fe35f19dcb08

Install and run

  1. Unzip the download. You get a folder named MaskGenerator. Put it somewhere permanent, for example Documents/PixInsight Scripts/MaskGenerator.
  2. In PixInsight, choose Script › Execute Script File… and select MaskGenerator.js.
  3. Optional: to add it to the Script menu, choose Script › Feature Scripts…, click Add, select the MaskGenerator folder, then click Done. From then on, start it from Script › Astro Scripts › MaskGenerator.

Step by step

The MaskGenerator dialog: a stretched preview of a reflection nebula with one freehand shape drawn around its bright core, tinted red; Feather, Softness and Opacity sliders below; Show mask, Invert and Stretch preview checkboxes; Undo shape, Clear shapes, Apply and Close buttons.
One shape drawn around a bright core, with Show mask on. Click the picture to see it full size.
  1. Click the image you want to mask, then run MaskGenerator. The dialog shows a preview of it, auto-stretched if the image is linear (display only).
  2. Draw the shapes. Drag on the preview to draw a closed outline around the area to protect. Draw as many shapes as you need; they are combined. Undo shape removes the last one and Clear shapes removes them all.
  3. Shape the edge. Feather moves the edge: negative values contract the shape and positive values expand it, by that many pixels (0 keeps the drawn line). Softness blurs the whole mask (Gaussian sigma in pixels), which also rounds sharp corners. Opacity (20–100%, default 50%) sets how strongly the shapes are protected: 100% protects them fully, 50% lets a process act at half strength there.
  4. Check it. Show mask (red) tints the protected area, as PixInsight's mask overlay will. Invert protects everything except the shapes.
  5. Click Apply. The mask is built at full resolution as a new image <image>_mask and attached to your image, enabled and inverted, so the shapes are protected and the rest is processed. The dialog then closes.
  6. Run your process: GHS, HistogramTransformation, curves and so on. Press Ctrl+K (Windows) or Cmd+K (macOS) to hide the red mask overlay while you work, and remove the mask when you are done (Mask › Remove Mask).

To adjust the mask later, run MaskGenerator again on the same image (or on its _mask image). Your shapes and settings come back, and Apply updates the existing _mask.

Preview navigation

  • Zoom: mouse wheel or trackpad pinch, or + / −.
  • Pan: Option-drag on macOS or Alt-drag on Windows, or drag with the middle mouse button. Option/Alt + wheel scrolls up and down; Shift + wheel scrolls left and right.
  • Fit / 1:1: 0 or F fits the preview; 1 shows 1:1.

Good to know

  • Close keeps the shapes and settings without applying. They are stored on the image (and saved with it in XISF) and in PixInsight's settings.
  • If a process creates a new image of the same size, as GHS can, MaskGenerator restores the last shapes for it too.
  • MaskGenerator never changes your image's pixels; only the _mask image is written.

To update

Replace the MaskGenerator folder with the new one. If you added it to Feature Scripts, open Script › Feature Scripts… and click Done again. Since 2026-11-22 the scripts appear under Script › Astro Scripts (formerly Chinh Scripts).

Credits. By Chinh Nguyen, developed with Claude Code (Anthropic) and Codex (OpenAI). Free to use and share; provided as is, without warranty.

Utilities

Small helpers that keep a PixInsight session tidy.

CloseAllImages

v1.1 · PixInsight script · released 2026-11-21

Closes every open image in PixInsight at once, without asking to save. Handy between targets, or after a processing run that left dozens of windows open. Works on macOS and Windows.

Download CloseAllImages-v1.1.zip

ZIP, 2 KB · Requires PixInsight 1.9 or later SHA-256 6ab9445fd85817cf2e5dcc5c3c0c7f6c0ab3151143474e8b4236b70f879c4838

Unsaved changes are lost. There is no confirmation and no Undo. Save anything you want to keep before you run it. Files already on disk are never touched.

Install and run

  1. Unzip the download. You get a folder named CloseAllImages. Put it somewhere permanent, for example Documents/PixInsight Scripts/CloseAllImages.
  2. In PixInsight, choose Script › Execute Script File… and select CloseAllImages.js.
  3. Optional: to add it to the Script menu, choose Script › Feature Scripts…, click Add, select the CloseAllImages folder, then click Done. From then on, start it from Script › Astro Scripts › CloseAllImages. Feature scripts can also be given a keyboard shortcut or a toolbar icon.

Step by step

  1. Save what you want to keep. Unsaved images show Modified in PixInsight's status bar.
  2. Run CloseAllImages. There is no dialog; every image window closes immediately.
  3. Check the Process Console. It lists the images whose unsaved changes were discarded, any that could not be closed, and how many were closed.

Good to know

  • Only image windows are closed. Process icons, the Process Console and other tools stay as they are.
  • An image that is busy, for example while a process is running on it, may refuse to close. It is listed in the Process Console and left open.

To update

Replace the CloseAllImages folder with the new one. If you added it to Feature Scripts, open Script › Feature Scripts… and click Done again. Since 2026-11-22 the scripts appear under Script › Astro Scripts (formerly Chinh Scripts).

Credits. By Chinh Nguyen, developed with Claude Code (Anthropic) and Codex (OpenAI). Free to use and share; provided as is, without warranty.