读取和写入jpeg格式的纯Python库 [英] Pure python library to read and write jpeg format

查看:96
本文介绍了读取和写入jpeg格式的纯Python库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们! 我正在寻找jpeg编写的纯python实现(阅读会很好,但不是必须的)库.
我在 http://mail上仅创建了TonyJPEG库端口. python.org/pipermail/image-sig/2004-November/003055.html
但是问题是该库不支持编写.

guys! I'm looking for pure python implementation of jpeg writing (reading will be nice, but not necessary) library.
I've founded only TonyJPEG library port at http://mail.python.org/pipermail/image-sig/2004-November/003055.html
But the problem is this library doesn't support writing.

有什么想法吗?

UPD::我需要修改jpeg算法(从DCT开始)以制作可用的原型.

UPD: I need to modify jpeg algorithm (starting from DCT) to make working prototype.

UPD2:对我来说,最好的决定是从另一种语言移植Jpeg库.我选择了TonyJPEG库,因为它比 libJPEG 更为简单.
如果您需要在Python中有效地对JPEG进行低级访问,最好的选择是移植诸如libJPEG之类的内容,或者尝试了解诸如PIL之类的工具的工作方式.

UPD2: The best decision for me was to port Jpeg library from the another language. I've chosen TonyJPEG library, because It's simplier than libJPEG.
If you need effective low-level access to JPEG in Python, the best choice is to port something like libJPEG or try to understand how tools like PIL works.

推荐答案

我不知道用100%python编写的任何库,但是,如果您只需要使用python编写的库,请使用

I don't know of any libraries written in 100% python, however if you just need the library to work in python, then use PIL. It supports reading and writing many different imaging formats, including JPEG. Realistically, it should do everything you need it to do.

这篇关于读取和写入jpeg格式的纯Python库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆