( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/resize.php
<?php $thumb_width = 800;

           list($width, $height) = getimagesize($thepicha);
           $imgratio=$width/$height;
           if ($imgratio>1){
              $newwidth = $thumb_width;
              $newheight = $thumb_width/$imgratio;
           }else{
                 $newheight = $thumb_width;
                 $newwidth = $thumb_width*$imgratio;
           }
						
			$resized_img = imagecreatetruecolor($newwidth,$newheight);
           imagecopyresized($resized_img, $new_img, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
		   ImageJpeg ($resized_img,"$thepicha");
           ImageDestroy ($resized_img);
           ImageDestroy ($new_img);			
		   
		   
		   ?>