Alexander Karpinsky

Results 93 comments of Alexander Karpinsky

> When embedding JPEGs into a container file format Could you provide an example how to use `no_default_app_segments` to embed in container and which containers this could be?

An idea: use the same callback for generating frames: pass current `im` object (which could be an image without bitmap in memory) and check if complete image is returned.

In general, yes. Depending on current code flow, it could be like this, or require some informations about the frames (like size and mode).

> I'm also pretty sure such a feature is out of scope for this particular pull-request. It out of scope of your needs, but is closely related to current PR...

> APNG considers the modes of all frames when saving We can restrict modes of generated frames only to the same as the initial image.

Having iterators support you can track progress without any callbacks.

I personally don't have preferences what to store in unused bytes. Also I guess performance impact should be near zero/

Currently Pillow doesn't coerce images to required mode for most operations. This is not unique to `ImageEnhance.Contrast`. The application should resolve this on it's own.

> as we are almost reduction the information by 1/2? Worse, it will reduce amount of information in 256 times. But still, Pillow doesn't have 16-bit-per-channel support in the first...

It's not just not comparable, it in totally wrong state. I believe we should prevent from creating objects like this, but this requires further discussion.