Technical documentation and educational guide

Parametric Literacy Tool: Enhanced Educational Edition

A browser-based educational image-processing environment for teaching parametric literacy, histogram-based image diagnostics, reproducible parameter records, and optional parameter-aware AI tutoring.

1. Purpose and Scope

The Parametric Literacy Tool is designed for teaching digital imaging as a measurable, parameter-based process rather than a sequence of opaque interface actions. Learners upload an image, adjust tonal and color parameters, inspect real-time histograms, diagnose clipping, export image and metadata outputs, and optionally request AI-generated parameter-aware feedback.

In the context of design education and AI literacy, parametric literacy refers to the ability to describe a visual result through explicit adjustable values such as brightness, contrast, gamma, hue, saturation, color balance, blur, sharpening, and output format. This ability supports both traditional digital image editing and clearer communication with generative AI systems.

Enhanced interface of the Parametric Literacy Tool with demo image, controls, histogram, and metrics
Figure 1. Enhanced application interface with the AI-generated demo image, parameter controls, live preview, RGB/luminance histograms, clipping metrics, and diagnostic feedback.

2. Installation and Execution

The application is a zero-install browser application. The core tool does not require a server, database, package manager, build step, or JavaScript framework.

Execution environment Modern desktop browser with HTML5 Canvas and JavaScript support.
Core dependencies No runtime dependencies beyond the browser for image editing, histogram rendering, image export, and JSON export.
Optional dependency Google Gemini API key for the AI Tutor functions.
Distribution Single HTML application plus documentation and screenshot assets.

Running the Tool

  1. Open the live GitHub Pages demo or download the repository.
  2. Open enhanced_parametric_app.html in a modern browser.
  3. Upload an image through the Upload Image button.
  4. Move sliders to observe canvas, histogram, and diagnostic changes.
  5. Use Export for processed images and Export JSON for reproducible parameter metadata.

Recommended public demo: https://gk1966.github.io/Parametric_Literacy_Learning_Tool/

3. User Guide and Feature Map

3.1 Tab Contents Overview

The application is organized into six main tabs: Basics, Color, Effects, Output, Literacy, and AI Tutor. The overview figure summarizes the content of each tab in a single documentation-ready visual map.

Overview diagram of the contents of each application tab
Figure 2. Unified overview of the contents included in each application tab.

3.2 Controls, Presets, and Menus

The controls panel combines image loading, demo image loading, reset actions, import/export JSON, parameter search, group resets, preset examples, and tab navigation. This layout supports rapid experimentation while keeping parameter values explicit and reproducible.

Controls panel and tab menu of the enhanced application
Figure 3. Control panel with upload/demo image actions, JSON import/export, presets, parameter search, and tab navigation.

3.3 Before/After Split View

The improved preview area includes a before/after split view. This allows learners to compare the original and edited image directly, making strong tonal changes and over-editing easier to understand.

Before and after split view with edited demo image
Figure 4. Split view comparing the original and edited version of the demo image.

3.4 Histogram, Metrics, and Prompt Output

The diagnostic area combines RGB/luminance histograms, clipping percentages, mean luminance, average saturation, generated image-editing prompts, simplified prompts, technical prompts, context-aware tips, and parametric breakdown.

Histogram metrics and generated prompt area
Figure 5. Histogram diagnostics, metric cards, prompt generation area, smart tips, and parametric breakdown.

3.5 Detail Inspection Zoom

The preview includes a point-inspection zoom lens. Clicking or tapping on the image opens a magnified local view, helping learners inspect blur, sharpening, noise, clipping, and local detail changes.

Zoom lens inspecting a detail of the edited image
Figure 6. Detail zoom lens used to inspect local changes in the edited image.

3.6 AI Tutor Panel

The AI Tutor panel is optional. It supports image critique, workflow translation, quiz generation, and free-form tutoring. The panel also includes API setup and privacy notes so that learners understand the data flow before invoking external AI services.

AI Tutor panel with API setup, image critic, workflow translator, quiz, and ask tutor sections
Figure 7. AI Tutor panel with Gemini API setup, privacy confirmation, image critique, workflow translation, quiz, and tutoring functions.

4. Software Architecture

The system uses a client-side architecture: user input updates a shared state object, the rendering pipeline applies image transformations to the current canvas, and diagnostic modules update histograms and overlays. This makes the core editing workflow transparent, inspectable, and easy to archive as open-source software.

4.1 Configuration-Driven UI Generation

Parameters are described in the groups configuration object and injected into the interface by mountGroups(). This separates control definitions from the DOM construction logic and supports future extension.

const groups = {
  basic: [
    { key: 'brightness', label: 'Brightness', type: 'range', min: -100, max: 100 },
    { key: 'contrast', label: 'Contrast', type: 'range', min: -100, max: 100 }
  ],
  color: [...],
  effects: [...]
};

function mountGroups(){
  for (let gName in groups) {
    const arr = groups[gName];
    const container = document.getElementById('group-' + gName);
    // Controls are created dynamically from the parameter definitions.
  }
}

Adding a new processing feature still requires an appropriate parameter definition, state key, and processing function. The benefit is reduced coupling, not automatic filter generation.

4.2 Canvas/ImageData Processing Pipeline

Many tonal and chromatic operations are applied through the HTML5 Canvas ImageData buffer. This supports direct inspection of pixel-level transformations and is pedagogically useful because learners can connect slider movements with numerical changes in RGB data.

let imageData = CX.getImageData(0, 0, w, h);
let d = imageData.data;

applyBrightnessContrast(d, P.brightness, P.contrast);
applySaturationHue(d, P.saturation, P.hue);
applyGamma(d, P.gamma);
applyLevels(d, P.levels_black, P.levels_white, P.levels_mid);

CX.putImageData(imageData, 0, 0);

4.3 Diagnostic Clipping Overlay

The clipping overlay is a diagnostic layer rather than a cosmetic effect. It maps near-white and near-black regions to red and blue, respectively, helping learners identify areas where visual detail may be lost.

function applyClippingWarning(d) {
  for (let i = 0; i < d.length; i += 4) {
    const r = d[i], g = d[i + 1], b = d[i + 2];
    if (r >= 253 && g >= 253 && b >= 253) {
      d[i] = 255; d[i + 1] = 0; d[i + 2] = 0;
    } else if (r <= 5 && g <= 5 && b <= 5) {
      d[i] = 0; d[i + 1] = 150; d[i + 2] = 255;
    }
  }
}
Technical precision. These are near-clipping thresholds after pixel values have been clamped to the displayable RGB range. The overlay should not be described as detecting mathematical out-of-bounds values after rendering.

4.4 Adaptive Histogram Sampling

Histograms are computed from the current canvas data. To maintain responsive interaction with larger images, the histogram routine adapts its pixel iteration step according to the image data size.

const step = Math.max(4, Math.floor(d.length / 200000) * 4);

for (let i = 0; i < d.length; i += step) {
  const red = Math.round(d[i]);
  const green = Math.round(d[i + 1]);
  const blue = Math.round(d[i + 2]);
  const lum = Math.round(0.299 * red + 0.587 * green + 0.114 * blue);
  rCount[red]++; gCount[green]++; bCount[blue]++; lumCount[lum]++;
}

This should be described as performance-aware adaptive sampling for responsive histogram rendering. Do not claim a measured 60 fps rate unless benchmark data are collected and reported.

4.5 Optional Multimodal AI Integration

The AI Tutor module combines a compressed canvas snapshot with the active parameter context. The model is prompted to provide parameter-aware explanations and suggestions. This is best described as explainability-oriented tutoring, not as a formal model-interpretability framework.

const base64 = C.toDataURL('image/jpeg', 0.5).split(',')[1];

const systemPrompt = `You are an expert digital imaging instructor and colorist.
My active parametric sliders are: [ ${activeParams} ].
Suggest SPECIFIC parameter adjustments to improve the image.`;

5. Reproducibility and Metadata Export

The enhanced release includes a JSON metadata export that records the active parameter state without embedding the original image pixels or the user's API key. This supports reproducible educational demonstrations and gives researchers a lightweight record of the parameter configuration used to generate an output.

JSON metadata export showing software information, demo image metadata, canvas dimensions, and parameter values
Figure 8. JSON metadata export showing software metadata, demo image information, canvas dimensions, and the exact parameter values needed to reproduce the editing state.
const metadata = {
  schema: 'parametric-literacy-metadata-v1',
  software: {
    name: 'Parametric Literacy Tool',
    edition: 'Enhanced Educational Edition'
  },
  parameters: { ...state.p },
  privacy: {
    includesImagePixels: false,
    includesApiKey: false
  }
};
Scientific value. The JSON file can be archived with exported images or course materials to document the exact parameter state used in a demonstration or classroom activity.

6. AI Tutor, API Access, and Privacy

The application distinguishes between local image processing and optional external AI calls. Ordinary image editing, histograms, clipping overlay, image export, and JSON metadata export run locally in the browser.

When the user explicitly clicks Analyze My Image, the application sends a compressed canvas snapshot and active parameter context to the Gemini API. This design should be described transparently in the repository and any publication material.

Workflow Data Location Notes
Slider editing and rendering Local browser No server required.
Histogram and clipping diagnostics Local browser Computed from the current canvas.
Image export Local browser Uses browser download functionality.
JSON metadata export Local browser Does not include image pixels or API keys.
AI image critique Gemini API when invoked Sends compressed image data and active parameter context.
Recommended wording. Use "core image processing runs locally" rather than absolute privacy claims. The optional AI features involve a third-party API call and should be described plainly.

7. Source Image Attribution

The current prototype uses an AI-generated landscape image as a built-in demo asset. The image is not part of the software source code license; it is included to support immediate educational testing without requiring users to upload personal or third-party photographs.

Suggested credit line:
AI-generated demo image created with ChatGPT on 18 May 2026 for educational software demonstration purposes. The image depicts sea, mountains, sunset light, clouds, shadows, highlights, and warm color gradients.

The image should be described as an AI-generated demonstration asset, not as photographic evidence or as a documented real location.

8. Publication and Reuse Support Notes

This manual supports software-publication and reuse review by documenting the interface, implementation model, reproducibility mechanism, public availability, privacy behavior, and reuse conditions.

Review-relevant item Recommended entry
Software name Parametric Literacy Tool: Enhanced Educational Edition
Version 3.0.1
Author / maintainer Georgios Korakakis, Assistant Professor, Department of Graphic Design and Visual Communication, School of Applied Arts and Culture, University of West Attica (UniWA)
Software type Browser-based educational image-processing software
Programming language HTML, CSS, JavaScript
Execution environment Modern web browser
Repository https://github.com/gk1966/Parametric_Literacy_Learning_Tool
Live demo https://gk1966.github.io/Parametric_Literacy_Learning_Tool/
Archived release v3.0.1 DOI: 10.5281/zenodo.20582977. Previous releases: v3.0.0 DOI 10.5281/zenodo.20366944; v2 DOI 10.5281/zenodo.20112617; v1 DOI 10.5281/zenodo.19451351.
License Software source code is released under the MIT License. Documentation and demo-asset licensing are described in CONTENT_LICENSE.md.
Reuse potential Digital imaging education, design education, AI literacy, prompt engineering exercises, reproducibility demonstrations.

Limitations