| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A lightweight JavaScript library for advanced image processing in the browser. Supports a variety of filters, transformations, and watermarks.
Load ImageProcessor.js directly from jsDelivr — no build step or download required:
<!-- Latest version (tracks the main branch) -->
<script src="https://cdn.jsdelivr.net/gh/peterbenoit/ImageProcessor@main/ImageProcessor.js"></script>
<!-- Pinned to a specific release -->
<script src="https://cdn.jsdelivr.net/gh/peterbenoit/ImageProcessor@v1.0.1/ImageProcessor.js"></script>Download ImageProcessor.js and include it in your HTML file:
<script src="path/to/ImageProcessor.js"></script>To apply basic filters and transformations:
new ImageProcessor('https://example.com/image.jpg', {
width: 400,
height: 300,
grayscale: 'grayscale(100%)',
brightness: 'brightness(3)',
altText: 'Processed image',
targetElement: document.getElementById('image-target'),
});To add a watermark to an image:
new ImageProcessor('https://example.com/image.jpg', {
watermark: 'Confidential',
watermarkPosition: 'center',
watermarkStyle: {
fontSize: '20px',
fontFamily: 'Arial',
color: 'rgba(255, 255, 255, 0.5)',
},
targetElement: document.getElementById('image-target'),
});The CODING_GUIDE.md provides comprehensive information on the implementation, and configuration.
See FAQ.md for more information.
Contributions are more than welcome! Please check the issues page for open tasks.
This project is licensed under the MIT License - see the LICENSE file for details.
Created by Peter Benoit
| Back | FazBrowse Home | New Git URL |