image-rs / image

Encoding and decoding images in Rust
Apache License 2.0
4.96k stars 618 forks source link

Support progressive JPEG #114

Closed nstoddard closed 8 years ago

nstoddard commented 10 years ago

Currently, this library doesn't support progressive JPEG images, which are very common and are the default output format for some programs, such as GIMP.

nwin commented 10 years ago

Currently it actually doesn't support any progressive image type. Including the most important variant: Animated gif. ;)

lifthrasiir commented 10 years ago

@nwin The animated image does not qualify as a "progressive" image format. (GIF is a progressive---interlaced---image format, though.) I personally think that the progressive image support and animation support would need distinct interfaces.

nwin commented 10 years ago

That was a joke, but ok I would qualify high color gifs as a progressive format. Anyway, I'm in favor for not exposing any special interface (for now) and just expanding the image and output the first/last animation frame (last frame for t=0 to support high color gifs).

Unless anybody has a good idea for an interface of course. It is unclear to me how this is best done such that one can interact with the consumer on another thread (to we get the stream and push the partial images on a channel or do we get data chunks from the consumer on a channel, how does servo doe this?).

Ralle commented 9 years ago

+1, I need SOF2 support in JPEG files. I am trying to write a converter for BLP (Warcraft 3) to JPG. It apparently uses JPEGs with SOF2.

kaksmet commented 8 years ago

Fixed by #513