Giter VIP home page Giter VIP logo

python-jpeg-encoder's People

Contributors

fangwei123456 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

python-jpeg-encoder's Issues

Output JPG is not correct

I downloaded the script and tested the example code line but the output file is not valid. I attached it.
What is the problem?

File is like this:
[255, 216, 255, 224, 0, 16, 74, 70, 73, 70, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0][255, 219, 0, 67, 0][16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99][255, 219, 0, 67, 1][17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99][255, 192, 0, 17, 8][0, 16][0, 16][3, 1, 17, 0, 2, 17, 1, 3, 17, 1][255, 196, 1, 162, 0, 0, 0, 7, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 4, 5, 3, 2, 6, 1, 0, 7, 8, 9, 10, 11, 1, 0, 2, 2, 3, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 16, 0, 2, 1, 3, 3, 2, 4, 2, 6, 7, 3, 4, 2, 6, 2, 115, 1, 2, 3, 17, 4, 0, 5, 33, 18, 49, 65, 81, 6, 19, 97, 34, 113, 129, 20, 50, 145, 161, 7, 21, 177, 66, 35, 193, 82, 209, 225, 51, 22, 98, 240, 36, 114, 130, 241, 37, 67, 52, 83, 146, 162, 178, 99, 115, 194, 53, 68, 39, 147, 163, 179, 54, 23, 84, 100, 116, 195, 210, 226, 8, 38, 131, 9, 10, 24, 25, 132, 148, 69, 70, 164, 180, 86, 211, 85, 40, 26, 242, 227, 243, 196, 212, 228, 244, 101, 117, 133, 149, 165, 181, 197, 213, 229, 245, 102, 118, 134, 150, 166, 182, 198, 214, 230, 246, 55, 71, 87, 103, 119, 135, 151, 167, 183, 199, 215, 231, 247, 56, 72, 88, 104, 120, 136, 152, 168, 184, 200, 216, 232, 248, 41, 57, 73, 89, 105, 121, 137, 153, 169, 185, 201, 217, 233, 249, 42, 58, 74, 90, 106, 122, 138, 154, 170, 186, 202, 218, 234, 250, 17, 0, 2, 2, 1, 2, 3, 5, 5, 4, 5, 6, 4, 8, 3, 3, 109, 1, 0, 2, 17, 3, 4, 33, 18, 49, 65, 5, 81, 19, 97, 34, 6, 113, 129, 145, 50, 161, 177, 240, 20, 193, 209, 225, 35, 66, 21, 82, 98, 114, 241, 51, 36, 52, 67, 130, 22, 146, 83, 37, 162, 99, 178, 194, 7, 115, 210, 53, 226, 68, 131, 23, 84, 147, 8, 9, 10, 24, 25, 38, 54, 69, 26, 39, 100, 116, 85, 55, 242, 163, 179, 195, 40, 41, 211, 227, 243, 132, 148, 164, 180, 196, 212, 228, 244, 101, 117, 133, 149, 165, 181, 197, 213, 229, 245, 70, 86, 102, 118, 134, 150, 166, 182, 198, 214, 230, 246, 71, 87, 103, 119, 135, 151, 167, 183, 199, 215, 231, 247, 56, 72, 88, 104, 120, 136, 152, 168, 184, 200, 216, 232, 248, 57, 73, 89, 105, 121, 137, 153, 169, 185, 201, 217, 233, 249, 42, 58, 74, 90, 106, 122, 138, 154, 170, 186, 202, 218, 234, 250][255, 218, 0, 12, 3, 1, 0, 2, 17, 3, 17, 0, 63, 0]["'"]['2']['\xc8']['\xcd']['#']['\x19']['\x1c']['\x99']['>']['\xd9']["'"]['\xed']['o'][']']['\xfc']['w']['\x15']['\xcc'][';']['z']['\xee']['\x11']['\xb0']['\xae']['M']['#']['\xb4']['n']['\xae']['\x8c']['U']['\x94']['\xd4']['0']['4'][' ']['\xf8']['\xe0']['R']['\x01']['\x14']['W']['\xab']['\xcd'][',']['\xac']['\x15']['\xa4']['y']['&']['4']['']['\t']['%']['\xc9']['5']['\xa1']['\xf1']['\xde']['\x9f']['N']['\x1d']['\xd0']['D']['b']['<']['\x87']['\xd8']['\xb1']['\x11']['\xa4']['u']['D']['R']['\xcc']['\xc6']['\x81']['@']['\xa9']["'"]['\xc3']['\x02']['I']['\x00']['Y']['\x7f'][255, 217]`

output

input image file format

Hi!
Thanks for your great work.

I am wondering what happens if input image is jpg instead of bmp.
I could check with my eyes that this code still makes fine output.
But the weird thing was a file size.
Why does the file size increase with high quality level such as 95~100?
For example, when tested with 114kB jpg image and quality level 100, result was 295kB.
Is this because some of components in jpeg compression pipeline are missing in your work?

Regards,
Kim

JPEG version

Hi,

Thanks for the JPEG implementation. I am wondering is this implementation the same as the PIL library or some standard library?

Regards,
Jinyang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.