PixInsight tools for astronomical image processing, by Thorsten Glebe.
A collection of tools for imaging-target planning, image processing, quality review, and PixInsight script development.
Installation · Script overview · Script gallery · Help and troubleshooting · Credits and license
Install through PixInsight’s update system to receive the scripts and their bundled documentation.
Add this repository URL:
https://norman123al.github.io/TGScripts/TGScripts_repository/
To try a newly added script before the next updater release, download or clone this repository and use Script → Execute Script File to open its JavaScript file from TGScripts_repository/src/scripts/TGScripts/.
The packaged updater release may lag behind the repository source. For manual execution, keep each script with its bundled helpers and the lib folder. The updater package requires PixInsight 1.9.6 or later because it includes Subframe Quality Review.
| Previous name | Current menu name |
|---|---|
| AberrationInspectorTG | TG Field Mosaic |
| AberrationSpotterTG | TG Corner Mosaic |
| ColorMaskTG | TG Hue Range Mask |
| DarkStructureEnhanceTG | TG Dust Contrast |
| DeconvolutionPreviewTG | TG PSF Comparison |
Recreate saved process icons that reference an old script filename from the corresponding renamed script. Some screenshots show the previous script names.
| Task | Script | Version | What it does | Last update |
|---|---|---|---|---|
| Inspect image quality | TG Field Mosaic | 2.3.0 | Builds a configurable grid of image crops for comparing stars across the field. | 2026‑11‑10 |
| Compare corners | TG Corner Mosaic | 2.3.0 | Combines the four corners and, optionally, the center in one inspection image. | 2026‑11‑10 |
| Plan imaging targets | Astro Bucket List | 0.46.0 | Organizes Stellarium target lists, tracks imaging status, and displays finder charts and DSS images. | 2026‑11‑16 |
| Reduce stars | BBStarReduction | 1.3.0 | Applies Bill Blanshan’s three methods using automatic or existing starless data, with comparison previews. | 2026‑10‑30 |
| Select colors | TG Hue Range Mask | 2.3.0 | Creates masks from hue, intensity, and saturation ranges. | 2026‑11‑10 |
| Isolate emission | CSTG | 2.2.0 | Subtracts the broadband continuum contribution from a narrowband image. | 2026‑10‑30 |
| Enhance dark detail | TG Dust Contrast | 2.5.0 | Enhances dark structures in stretched images, with a parameter comparison grid. | 2026‑11‑10 |
| Tune deconvolution | TG PSF Comparison | 2.4.0 | Compares synthetic PSF settings on a preview and applies deconvolution to the full image. | 2026‑11‑10 |
| Combine narrowband and RGB | EmissionLineIntegrationTG | 2.2.1 | Adds continuum-subtracted narrowband emission to RGB channels. | 2026‑10‑30 |
| Blend linear masters | Linear Master Blend | 1.20.1 | Normalizes and integrates two linear masters using measured quality and adjustable sharpness preference. | 2026‑10‑19 |
| Support deconvolution | LocalSupportMask | 2.2.0 | Generates a local support mask for deconvolution deringing. | 2026‑10‑30 |
| Match L and RGB sharpness | LRGB Deconvolution Match | 1.14.3 | Uses BlurXTerminator to match stellar halo profiles with estimated sharpening, independent FWHM checks, and blink previews. | 2026‑11‑05 |
| Match intensity scales | ROI Linear Fit | 1.1.6 | Measures a fit in a selected region and applies it to the full target image. | 2026‑10‑04 |
| Protect diffraction spikes | Star Spike Protection Mask | 1.7.2 | Builds a soft mask protecting bright stellar cores and their spikes. | 2026‑10‑10 |
| Review WBPP subframes | Subframe Quality Review | 0.55.3 | Ranks and blinks WBPP subframes, recommends rejections with an SNR limit, and exports reviewed WBPP setups. | 2026‑11‑11 |
| Develop scripts | TGScriptSkeleton | 1.6 | Provides a reusable dialog, image preview, and process-instance framework. | 2026‑10‑19 |
Versions follow the declarations in the repository source.
Dates use YYYY-MM-DD and reflect the latest Git commit touching each script’s main JavaScript file; documentation and shared-library changes are excluded.
Short descriptions below cover each script’s purpose and main features; follow the guide links for usage and parameter details. Expand an entry to view its interface. Astro Bucket List screenshots show 0.33.2, captured on 2026-11-01; some other examples show earlier releases.
Version: 2.3.0 · Last update: 2026-11-10
Builds a grid of image crops to compare star shapes across the field and reveal optical aberrations. Offers adjustable panel size, spacing, and background brightness.
Version: 2.3.0 · Last update: 2026-11-10
Combines the four image corners and an optional center crop into one inspection image. Adjustable crop sizes, spacing, and background brightness make field comparisons easier.
Version: 0.46.0 · Last update: 2026-11-16
Manage Stellarium-compatible observing lists, track imaging status and notes, and find targets with flexible filters and sorting. Look up objects in local catalogs or SIMBAD, explore interactive finder charts and DSS previews, and export charts as SVG/PDF. Plan observing windows with saved sites, custom horizons and Moon limits, and export plans as CSV/PDF.
Source · Guide · PiDoc source
Version: 1.3.0 · Last update: 2026-10-30
Reduces stars in stretched images using Bill Blanshan’s Transfer, Halo, and Star methods. Supports StarXTerminator or an existing starless image, comparison grids, and output to a new image or the original.
Version: 2.3.0 · Last update: 2026-11-10
Creates color-selective grayscale masks from RGB images. Combines hue presets or custom ranges with intensity and saturation limits, adjustable weighting, strength, and smoothing.
Version: 2.2.0 · Last update: 2026-10-30
Isolates narrowband emission through continuum subtraction using a matching broadband image or RGB channel. Includes automatic subtraction-factor estimation, optional star masking, noise reduction, and diagnostic plots.
Version: 2.5.0 · Last update: 2026-11-10
Enhances dust lanes and other dark structures in stretched images using a generated mask. Provides adjustable strength and scale, comparison grids, and optional mask output.
Version: 2.4.0 · Last update: 2026-11-10
Helps tune deconvolution for linear images by comparing synthetic PSF settings in a preview grid. Includes deringing and local support-mask controls, then applies the chosen settings to the full image.
Version: 2.2.1 · Last update: 2026-10-30
Adds continuum-subtracted narrowband emission to RGB images, with independent amplification for each channel. Includes before/after previews, optional star masking, and separate emission-image output.
Version: 1.20.1 · Last update: 2026-10-19
Combines two aligned linear masters using automatic brightness and background matching, measured quality weights, and an adjustable sharpness preference. Provides blink previews and measurement comparisons before creating a new integrated image.
Version: 2.2.0 · Last update: 2026-10-30
Generates stellar support masks for deconvolution deringing from linear grayscale or RGB images. Offers adjustable strength, scale, growth, and smoothing, with intermediate and mask-overlay previews.
Version: 1.14.3 · Last update: 2026-11-05
Matches stellar sharpness and halos in registered linear L and RGB images using BlurXTerminator. Provides automatic sharpening estimates, halo optimization, blink comparisons, FWHM plots, and a match-quality report in a resizable dialog with collapsible settings.
Version: 1.1.6 · Last update: 2026-10-04
Matches a target’s intensity scale to a reference using a selected region of interest, then applies the fit to the full image. Supports RGB channels, preview-based region selection, scatter plots, and Undo.
Version: 1.7.2 · Last update: 2026-10-10
Creates soft protection masks for bright stars and diffraction spikes from stretched stars-only images. Includes star and spike detection controls, adjustable mask growth and blur, previews, and XISF export.
Version: 0.55.3 · Last update: 2026-11-11
Helps select WBPP subframes to keep or reject with four quality rankings, field/corner measurements, sky and guiding indicators, quality plots, and mosaic blink comparisons. Recommends rejections by testing trial stacks against a chosen SNR preservation limit, with optional object ROI measurements. Imports WBPP setups, exports reviewed setups excluding rejected lights, and supports confirmed, reversible moves of rejected originals.
Version: 1.6 · Last update: 2026-10-19
Provides a starting point for PixInsight script development with image selection, zoomable previews, display stretching, image statistics, reusable process icons, and standard dialog controls.
Use a script’s documentation or information button for parameter explanations and examples, where provided. The compiled guides are stored in TGScripts_repository/doc/scripts, including the new EmissionLineIntegrationTG guide.
Scripts with a New Instance triangle can store their settings in a PixInsight process icon. Save your process icons or project to reuse these settings in later sessions. Consult the individual guide before applying an instance to an image, since execution behavior varies by script.
If automatic star removal fails, check the PixInsight Process Console and confirm that StarXTerminator is installed, licensed, and configured with its AI model. The automatic mode requires a target of at least 512 × 512 pixels. Alternatively, enable Use an existing starless image and select a matching starless view.
Please open an issue with the script name and version, your PixInsight version and operating system, steps to reproduce the problem, and the relevant console error. Include whether the input is grayscale or RGB, linear or stretched, and a main image or preview.
| Location | Contents |
|---|---|
| TGScripts_repository/src/scripts/TGScripts | The 16 menu scripts, with script-specific helpers and data. |
| TGScripts_repository/src/scripts/TGScripts/lib | Shared helpers and libraries used by the scripts. |
| TGScripts_docu/pidoc | PiDoc sources and their input images for the script guides. |
| TGScripts_repository/doc/scripts | Compiled PixInsight documentation, with guide and gallery images in each script’s images folder. |
| TGScripts_docu/images | Installation screenshots for the README. |
| TGScripts_repository/updates.xri | PixInsight update manifest. |
| TGScripts_docu | Documentation sources and generated documentation assets. |
Build update packages from the src/scripts and doc/scripts subtrees of TGScripts_repository. TGScripts_docu contains documentation authoring and website assets. The installed guides use the PiDoc styles and utilities supplied by PixInsight.
The files in lib/ support the menu scripts and are not standalone tools.
Maintained by Thorsten Glebe. This collection includes original tools and adaptations of scripts by Mike Schuster, David Serrano, Rick Stevenson, Hartmut V. Bornemann, Carlos Sonnenstein, Oriol Lehmkuhl, and Juan M. Gómez. BBStarReduction implements star reduction methods by Bill Blanshan. Individual source files retain their original attribution and copyright notices.
The repository includes the GNU General Public License v3.0. Astro Bucket List, Linear Master Blend and LRGB Deconvolution Match have their own MIT licenses: Astro Bucket List license, Linear Master Blend license and LRGB Deconvolution Match license. See individual source headers for applicable notices and terms. The software is provided without warranty.
Visit Thorsten’s astrophotography gallery on AstroBin.