forked from friendica/friendica-addons
privacy_image_cache: removed experimentual resize of pictures
This commit is contained in:
parent
cd8944cdcc
commit
88048bc18e
1 changed files with 7 additions and 7 deletions
|
@ -80,13 +80,13 @@ function privacy_image_cache_init() {
|
||||||
if ($mime == "") $mime = "image/jpeg";
|
if ($mime == "") $mime = "image/jpeg";
|
||||||
|
|
||||||
// Test
|
// Test
|
||||||
if ($mime == "image/jpeg") {
|
//if ($mime == "image/jpeg") {
|
||||||
$img = new Photo($img_str);
|
// $img = new Photo($img_str);
|
||||||
if($img->is_valid()) {
|
// if($img->is_valid()) {
|
||||||
$img->scaleImage(1000);
|
// $img->scaleImage(1000);
|
||||||
$img_str = $img->imageString();
|
// $img_str = $img->imageString();
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
} else {
|
} else {
|
||||||
// It shouldn't happen but it does - spaces in URL
|
// It shouldn't happen but it does - spaces in URL
|
||||||
$_REQUEST['url'] = str_replace(" ", "+", $_REQUEST['url']);
|
$_REQUEST['url'] = str_replace(" ", "+", $_REQUEST['url']);
|
||||||
|
|
Loading…
Reference in a new issue