JSFiddle - React, Tailwind, and code Playground
by t2t2
HTML
<b>system information</b><br />- class version : 0.31<br />- operating system : Linux<br />- PHP version : 5.3.3<br />- GD version : 2.0.34<br />- supported image types : png jpg gif bmp<br />- open_basedir : no restriction<br />- upload_max_filesize : 2M (2097152 bytes)<br />- language : en_GB<br /><b>source is an uploaded file</b><br />- upload OK<br />- file name OK<br /><b>determining MIME type</b><br />- Checking MIME type with Fileinfo PECL extension<br /> MAGIC path defaults to /usr/share/file/magic<br /> Fileinfo PECL extension failed (finfo_open)<br />- Checking MIME type with UNIX file() command<br /> MIME type detected as image/jpeg by UNIX file() command<br />- MIME validated as image/jpeg<br /><b>source variables</b><br />- You can use all these before calling process()<br /> file_src_name : Planet M.jpg<br /> file_src_name_body : Planet M<br /> file_src_name_ext : jpg<br /> file_src_pathname : /tmp/phpF5d1TX<br /> file_src_mime : image/jpeg<br /> file_src_size : 257237 (max= 2097152)<br /> file_src_error : 0<br />- source file is an image<br /> image_src_x : 1440<br /> image_src_y : 1296<br /> image_src_pixels : 1866240<br /> image_src_type : jpg<br /> image_src_bits : 8<br /><b>process file to /var/www/html/mlm/public//images/uploads/o/</b><br />- file size OK<br />- file mime OK : image/jpeg<br />- <b>error</b>: Image too tall.<br />