mirror of
https://github.com/kvazar-network/webapp.git
synced 2025-01-24 13:54:20 +00:00
set image format to png
This commit is contained in:
parent
5de0a77ccc
commit
e48d60ac1d
@ -81,7 +81,7 @@ final class Icon {
|
||||
}
|
||||
|
||||
ob_start();
|
||||
imagejpeg($resized, null, 100);
|
||||
imagepng($resized);
|
||||
imagedestroy($resized);
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
@ -5,11 +5,11 @@ require_once('../library/icon.php');
|
||||
|
||||
if (isset($_GET['hash'])) {
|
||||
|
||||
header("Content-Type: image/jpeg");
|
||||
header("Content-Type: image/png");
|
||||
|
||||
if (CACHE_ENABLED) {
|
||||
|
||||
$filename = dirname(__FILE__) . '/../cache/' . $_GET['hash'] . '.jpeg';
|
||||
$filename = dirname(__FILE__) . '/../cache/' . $_GET['hash'] . '.png';
|
||||
|
||||
if (!file_exists($filename)) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user