Resize resource icon

I think size comes from avatar size,
I've just found this code in XFRM\Service\ResourceItem\Icon.php

Code:
$imageManager = $this->app->imageManager();
        $targetSize = $this->app->container('avatarSizeMap')['m'];
        $outputFile = null;

@Chris D how can we change it or is there a way to change the size?
Thanks.
 
I think size comes from avatar size,
I've just found this code in XFRM\Service\ResourceItem\Icon.php

Code:
$imageManager = $this->app->imageManager();
        $targetSize = $this->app->container('avatarSizeMap')['m'];
        $outputFile = null;

@Chris D how can we change it or is there a way to change the size?
Thanks.
This thread is 5 years old but I'd like to update this

Before - 256x256 default:
PHP:
$targetSize = $this->app->container('avatarSizeMap')['m'];


After - 512x512 resize image:
PHP:
$targetSize = 512;

I hope this helps!
 
This thread is 5 years old but I'd like to update this

Before - 256x256 default:
PHP:
$targetSize = $this->app->container('avatarSizeMap')['m'];


After - 512x512 resize image:
PHP:
$targetSize = 512;

I hope this helps!
I have already sort this out and thank you for posting this
 
Back
Top Bottom