How amrsubzero/iconfastfit works
Icon Fast Fit is a Photoshop CEP extension for fitting the active icon layer to a selection, with optional color styling and persistent settings. The panel collects settings and dispatches the fit through the CEP bridge to ExtendScript; a separate Photoshop Scripts-menu command loads the same host logic for global shortcuts. The README documents these capabilities, while the excerpts show the panel, bridge, host, and shortcut command; installer and packaging files are omitted.
Main entry points: host.jsx Fit and validate layer · panel.js Settings and dispatch · cep-bridge.js CEP script bridge · Icon Fast Fit.jsx Scripts-menu command
Components 10
CEP Panel
- Panel controls
index.html - Settings and dispatch
js/panel.js - CEP script bridge
js/cep-bridge.js
Photoshop Host
- Fit and validate layer
host/host.jsx - Color Overlay
host/host.jsx - Clipped Solid Color
host/host.jsx - Persistent settings
host/host.jsx
Global Shortcut
- Scripts-menu command
global/Icon Fast Fit.jsx
Other components
- Photoshop user
- Photoshop
Connections 13
- Photoshop user → Panel controls: operates
README.md - Panel controls → Settings and dispatch: supplies controls
js/panel.js - Settings and dispatch → CEP script bridge: dispatches scripts
js/panel.js - CEP script bridge → Photoshop: evaluates scripts
js/cep-bridge.js - CEP script bridge → Fit and validate layer: runs host code
- Settings and dispatch → Persistent settings: saves host settings
js/panel.js - Fit and validate layer → Persistent settings: loads and saves
host/host.jsx - Fit and validate layer → Photoshop: fits and centers layer
host/host.jsx - Fit and validate layer → Color Overlay: applies when enabled
host/host.jsx - Fit and validate layer → Clipped Solid Color: creates when enabled
host/host.jsx - Photoshop user → Scripts-menu command: invokes shortcut
README.md - Scripts-menu command → Fit and validate layer: loads and runs
global/Icon Fast Fit.jsx - Scripts-menu command → Persistent settings: runs saved settings
global/Icon Fast Fit.jsx