Image Coordinate Previewer
A VS Code extension that allows you to preview images and see coordinate information when hovering over them.
Features
- Open JPG and PNG images in a custom preview panel
- Display raw pixel coordinates (x, y) on hover
- Display normalized coordinates (0-1 range) on hover
- Show image dimensions
- Crosshair cursor for precise positioning
- Clean, VS Code-themed interface
Usage
- Right-click on a JPG or PNG file in the Explorer
- Select "Open Image with Coordinates" from the context menu
- Hover over the image to see coordinate information
- The overlay shows:
- Raw coordinates (pixel position)
- Normalized coordinates (0.000-1.000 range)
- Image dimensions
Installation
- Clone this repository
- Run
npm install
- Run
npm run compile
- Press F5 to launch a new Extension Development Host window
- Test the extension with sample images
Development
npm run compile - Compile TypeScript to JavaScript
npm run watch - Watch for changes and recompile
npm run vscode:prepublish - Prepare for publishing
Compatibility
- VS Code 1.74.0+
- Cursor IDE
- Supports JPG, JPEG, and PNG image formats
| |