PHP Unzip the image why can only extract 8k size

Source: Internet
Author: User
Unzip the image with PHP, press directly to the 8k size behind the full display.
Who can tell me where to set the size or solve it in other ways?


Reply to discussion (solution)

What unzip the picture?? Speak clearly.

I compress all the JPG images first, then upload the compressed package to the server on the webpage, unzip and put it under the directory I want to upload. Then the uncompressed image is only 8K in size. Many pictures show only half of the above, none of the below.

is not after you upload, the size of the picture is 8k size.

Compressed package inside the picture or the original size, unzip the picture is less than 8k can see all the pictures, if it is greater than 8K, the picture will show 8k, more than the department is gray like this

The image above is extracted by php ... Only 8k more than the part is gone

Put your code out.
Maybe you can upload the package to a downloadable place.

$zip = Zip_open ("/php/test/test.zip");

if ($zip) {
while ($zip _entry = Zip_read ($zip)) {
$fp = fopen ("/php/". Zip_entry_name ($zip _entry), ' W ');
if (Zip_entry_open ($zip, $zip _entry, "R")) {
$buf = Zip_entry_read ($zip _entry, zip_entry_filesize ($zip _entry));

Fwrite ($fp, ' $buf ');
Zip_entry_close ($zip _entry);
Fclose ($FP);
}
}
Zip_close ($zip);
}

I felt a red part of the problem there, but I went to the program and did not find where to set the size of the control.
Does PHP come with its own settings?

  • Related Article

    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.