New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with mozjpeg #539

Open
selwin opened this Issue Mar 5, 2014 · 6 comments

Comments

Projects
None yet
5 participants
@selwin
Copy link

selwin commented Mar 5, 2014

Hi there, I was just wondering whether it's possible to use pillow with the newly announced https://github.com/mozilla/mozjpeg/ . Sorry if this is a dumb question

@wiredfool

This comment has been minimized.

Copy link
Member

wiredfool commented Mar 6, 2014

Probably, but it might take passing different options in. We already work with libjpeg-turbo, as it's the default on at least one of the linux platforms. As long as they keep the api the same, I don't think it's going to be a major issue to drop it in.

@aclark4life aclark4life added this to the Future milestone Mar 17, 2014

@aclark4life

This comment has been minimized.

Copy link
Member

aclark4life commented Apr 1, 2014

Does jpeg2000 support affect this in any way?

@wiredfool

This comment has been minimized.

Copy link
Member

wiredfool commented Apr 2, 2014

Nope. Different format.

@aclark4life aclark4life modified the milestones: 2.5.0, Future Apr 2, 2014

@aclark4life aclark4life modified the milestones: Future, 2.5.0 Jun 1, 2014

@blaise-io

This comment has been minimized.

Copy link

blaise-io commented Jul 18, 2014

From mozjpeg's readme:

'mozjpeg' is not intended to be a general JPEG library replacement. It makes tradeoffs that are intended to benefit Web use cases and focuses solely on improving encoding. It is best used as part of a Web encoding workflow. For a general JPEG library (e.g. your system libjpeg), especially if you care about decoding, we recommend libjpeg-turbo.

So there may be some caveats even if it's compatible.

@andreymal

This comment has been minimized.

Copy link

andreymal commented Nov 25, 2017

I intalled mozjpeg as default libjpeg in my Arch Linux, and Pillow can't save JPEG files with it:

I/O suspension not supported in scan optimization
Traceback (most recent call last):
  File "./local/genpreview.py", line 33, in go
    cropped_im.save(image_path, quality=75)
OSError: encoder error -2 when writing image file

Pillow still can't work with mozjpeg? Or this is my local problem somewhere?

libjpeg-turbo works good.

@wiredfool

This comment has been minimized.

Copy link
Member

wiredfool commented Nov 26, 2017

As far as I know, it's never been tested with mozjpeg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment