@@ -76,7 +76,7 @@ class Image{
}
if($infos['extension']=='jpg' || $infos['extension']=='jpeg') {
imagecopyresampled($dst_resource,$resource,0,0,0,0,$thumb_w,$thumb_h,$oldX,$oldY);
- $result = imagejpeg($dst_resource,$path,80);
+ $result = imagejpeg($dst_resource,$path,100);
imagedestroy($dst_resource);
imagedestroy($resource);
@@ -88,7 +88,7 @@ switch($_['action']){
$stream = preg_replace('|data\:image\/[^;]*;base64,|is','',$_['stream']);
$filepath = $folder.SLASH.$name;
$row = file_put_contents($filepath, base64_decode($stream));
- Image::resize($filepath,150,150);
+ //Image::resize($filepath,150,150);
$response['stream'] = 'data:image/jpg;base64,'.base64_encode(file_get_contents($filepath));
});
@@ -28,11 +28,11 @@
#sketchs .card-img-top {
- max-height: 180px;
+ max-height: 170px;
width: 100%;
border-top-left-radius: calc(.25rem - 1px);
border-top-right-radius: calc(.25rem - 1px);
- margin: 10px auto;
+ margin: 0 auto;
#sketchs .btn-dark {
@@ -264,6 +264,9 @@ function hackpoint_sketch_search(callback){
var x = e.pageX - $(this).offset().left;
var percent = Math.round(x *100 / $(this).width());
var progressClass = '';
+
+ if(percent>97) percent = 100;
if(percent > 30) progressClass = 'bg-warning';
if(percent > 45) progressClass = 'bg-warning';
if(percent > 60) progressClass = 'bg-info';