mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying to save
This commit is contained in:
@@ -10,5 +10,9 @@ $image->blurImage(30,50);
|
||||
|
||||
$output = $image->getimageblob();
|
||||
|
||||
$image->setImageFormat("jpeg");
|
||||
|
||||
file_put_contents ("/images/thumbnails/".$_POST['id'].".jpg", $image);
|
||||
|
||||
echo base64_encode($output);
|
||||
?>
|
||||
2
static/dist/frontpage.min.js
vendored
2
static/dist/frontpage.min.js
vendored
File diff suppressed because one or more lines are too long
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -121,6 +121,15 @@ var Nochan = {
|
||||
|
||||
if(Nochan.blob_list[i] !== undefined){
|
||||
//$(".room-namer").css("opacity", 0);
|
||||
var img = new Image();
|
||||
img.src = "/images/thumbnails/"+id;
|
||||
|
||||
img.onerror = function(){ // Failed to load
|
||||
console.log("didn't find");
|
||||
};
|
||||
img.onload = function(){ // Loaded successfully
|
||||
console.log("found");
|
||||
};
|
||||
setTimeout(function(){
|
||||
$("#mega-background").css("background", "url(data:image/png;base64,"+Nochan.blob_list[i]+")");
|
||||
$("#mega-background").css("background-size" , "200%");
|
||||
|
||||
Reference in New Issue
Block a user