google / brunsli

Practical JPEG Repacker
MIT License
730 stars 51 forks source link

compress/decompress the truncated JPEG image #61

Open zuoerfeng opened 4 years ago

zuoerfeng commented 4 years ago

pull request: add the function: compress/decompress the truncated JPEG image

what is truncated JPEG image? A:if there is a large jpeg image, it need to stored in two place, so it's truncated into two parts. First part has jpeg header, the second does not. The first part is called truncated JPEG image.

Main steps:

  1. find truncated point in read jpeg step
  2. add ExternalSection Tag to save the field metadata of the truncated point in brunsli encode step
  3. playback the truncated point when decompress brn
  4. fill the tail data into jpeg data in write jpeg step
googlebot commented 4 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.