Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
rothschild86 authored Jul 24, 2024
1 parent af2127d commit 4f57f19
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,17 @@ <h2></h2>
var createOverlay = function(uploadImage) {

crop(uploadImage, 1).then((cropped) => {
// `cropped` is the resulting image
// `cropped` is the resulting image canvas

const croppedImg = new Image();
croppedImg.src = cropped.toDataURL();

Caman("#overlay-img", function () {
this.brightness(5).render();
this.newLayer(function() {
this.setBlendingMode("normal");
this.opacity(100);
this.overlayImage(cropped);
this.overlayImage(croppedImg);
});

this.newLayer(function() {
Expand Down

0 comments on commit 4f57f19

Please sign in to comment.