Build an addon with a resize icon to maintain the aspect ratio issue

Status
This content is read-only, or is not open for further replies.

Yenxji

Guest
offline
When you are trying to upload an image that would resize the image to 320x320, but XenForo built self keeps using Maintain Aspect Ratio to adjust the image, is there any method to prevent Maintain Aspect Ratio and let resize the image only?

PHP:

Code:
        if ($upload = $this->request->getFile('image_icons')) {
            if ($upload->isValid()) {
                $dataDir = \XF::getRootDirectory() . '/data/image_icons/';
                \XF\Util\File::createDirectory($dataDir, false)...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom