Skip to content

Commit

Permalink
Create map->image as jpeg so we can compress it
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed May 8, 2024
1 parent 30e5e00 commit d21bae1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/views/map/custom-background-modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ function backgroundModalData() {
}
this.type = 'image';
this.image = 'geo-map.png';
canvas.toBlob((blob) => this.image_content = blob, 'image/png');
this.image = 'geo-map.jpg';
canvas.toBlob((blob) => this.image_content = blob, 'image/jpeg', 0.5);
this.saving_map_as_image = false;
});
},
Expand Down

0 comments on commit d21bae1

Please sign in to comment.