forked from friendica/friendica-addons
privacy_image_cache: removed experimental resize
This commit is contained in:
parent
88048bc18e
commit
d33c565745
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ function privacy_image_cache_init() {
|
||||||
|
|
||||||
$cache = get_config('system','itemcache');
|
$cache = get_config('system','itemcache');
|
||||||
if (($cache != '') and is_dir($cache)) {
|
if (($cache != '') and is_dir($cache)) {
|
||||||
$cachefile = $cache."/".hash("md5", $urlhash);
|
$cachefile = $cache."/".hash("md5", $_REQUEST['url']);
|
||||||
if (file_exists($cachefile)) {
|
if (file_exists($cachefile)) {
|
||||||
$img_str = file_get_contents($cachefile);
|
$img_str = file_get_contents($cachefile);
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ function privacy_image_cache_init() {
|
||||||
$img = new Photo($img_str);
|
$img = new Photo($img_str);
|
||||||
if($img->is_valid()) {
|
if($img->is_valid()) {
|
||||||
$img->store(0, 0, $urlhash, $_REQUEST['url'], '', 100);
|
$img->store(0, 0, $urlhash, $_REQUEST['url'], '', 100);
|
||||||
$img->scaleImage(1000); // Test
|
//$img->scaleImage(1000); // Test
|
||||||
$img_str = $img->imageString();
|
$img_str = $img->imageString();
|
||||||
}
|
}
|
||||||
$mime = "image/jpeg";
|
$mime = "image/jpeg";
|
||||||
|
|
Loading…
Reference in a new issue