且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以在Python中打开ljpg(无损jpeg)文件?

更新时间:2023-11-25 15:54:28

由于以下操作无效,请尝试使用此包装器: http://ebiznisz.hu/python-jpegtran/

Since the below didn't work, try this wrapper: http://ebiznisz.hu/python-jpegtran/

似乎可以解决问题.

http://www.pyglet.org/doc/api/pyglet.image-module.html
http://effbot.org/imagingbook/image.htm

这两个中的任何一个都应该能够.

Any of the two should be able to.

from PIL import Image
im = Image.open("test.ljpg")
im.show()