After the PHP image is compressed with the same height and width, imagejpeg ($ source, $ file, 100) remains

Source: Internet
Author: User
Image Quality Comparison: var_dump (exif_read_data ($ img); view, serious distortion compression ratio is 50%. Before compression: array (size18) FileNamestring1367000585017724053.JPG (length23) FileDateTimeint1367029384FileSizeint67872FileTypeint2

Image Quality Comparison: var_dump (exif_read_data ($ img); view, serious distortion compression ratio is 50%. Before compression: array (size = 18) 'filename' = string' 1367000585017724053. JPG '(length = 23) 'filedatetime' = int 1367029384 'filesize' = int 67872 'filetype' = int 2'

Image Quality Comparison: var_dump (exif_read_data ($ img); view, serious distortion compression ratio is 50%.


Before compression:
array (size=18)  'FileName' => string '1367000585017724053.JPG' (length=23)  'FileDateTime' => int 1367029384  'FileSize' => int 67872  'FileType' => int 2  'MimeType' => string 'image/jpeg' (length=10)  'psFound' => string 'ANY_TAG, IFD0, THUMBNAIL, EXIF' (length=30)  'COMPUTED' =>     array (size=7)      'html' => string 'width="300" height="300"' (length=24)      'Height' => int 300      'Width' => int 300      'IsColor' => int 1      'ByteOrderMotorola' => int 1      'Thumbnail.FileType' => int 2      'Thumbnail.MimeType' => string 'image/jpeg' (length=10)  'Orientation' => int 1  'XResolution' => string '72/1' (length=4)  'YResolution' => string '72/1' (length=4)  'ResolutionUnit' => int 2  'Software' => string 'Adobe Photoshop CS Windows' (length=26)  'DateTime' => string '2013:04:26 10:56:18' (length=19)  'Exif_IFD_Pointer' => int 164  'THUMBNAIL' =>     array (size=6)      'Compression' => int 6      'XResolution' => string '72/1' (length=4)      'YResolution' => string '72/1' (length=4)      'ResolutionUnit' => int 2      'JPEGInterchangeFormat' => int 302      'JPEGInterchangeFormatLength' => int 5519  'ColorSpace' => int 1  'ExifImageWidth' => int 300  'ExifImageLength' => int 300
After compression:
array (size=8)  'FileName' => string '1367000585108300044.jpg' (length=23)  'FileDateTime' => int 1367029385  'FileSize' => int 38802  'FileType' => int 2  'MimeType' => string 'image/jpeg' (length=10)  'psFound' => string 'COMMENT' (length=7)  'COMPUTED' =>     array (size=4)      'html' => string 'width="300" height="300"' (length=24)      'Height' => int 300      'Width' => int 300      'IsColor' => int 1  'COMMENT' =>     array (size=1)      0 => string 'CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 100' (length=58)




 

As long as the image is compressed by that function, it is still distorted. The compression ratio of the image file is 50%.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.