This project merges a profile image with a frame, applies circular cropping to the profile image, and overlays the user's name at the bottom. The result is saved as a PNG file.
- Merges a user-provided image with a frame.
- Applies circular cropping to the profile image.
- Supports image zooming and positioning adjustments.
- Adds a name at the bottom of the final image.
- Saves the generated image as a local file.
Ensure you have Node.js installed on your system.
- Clone the repository:
git clone https://github.com/RAKESH9494/ImageMerger-CanvasAPI cd ImageMerger-CanvasAPI - Install dependencies:
npm install
To generate a merged image, run the script with the required parameters:
node generate.jsconst imageURL = "https://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bitcoin.svg/1200px-Bitcoin.svg.png";
const name = "BIT COIN";
const frameUrl = 'https://i.pinimg.com/736x/b4/02/46/b40246f4321ae26c83f7db362ae9ad06.jpg';
main(name, imageURL, frameUrl);- Adjust
imgSize,offsetX, andoffsetYvalues to modify image positioning. - Change
fontsize inctx.fontto adjust text display.