简体   繁体   中英

How to decode the pixels in a JPG in App Engine (using pure python)?

Using python App Engine I need to convert a JPG image that is one 9 MB file (of Pakistan's floods) into many PNG tiles.

For the PNG part, I already know how to use PyPNG, which is great. Note: PIL cant be used with App Engine.

So how do I decode the JPG into pixel data?

Using Image class and crop and execute_transforms to encode as png?

Note: You should provide relevant part of your code

You can use the efforts here to get a pure python JPEG Parser. Why the absolute need to use App Engine ? If you want more flexible library usage try EC2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM