Y

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

  • Thread starter Thread starter Yenxji
  • Start date Start date
Y

Yenxji

Guest

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...
 
Similar threads Most view View more
Back
Top Bottom