Encode quantized DCT arrays as jpeg file? #100
Replies: 4 comments
-
You can't provide quantized DCT input to this library. It only accepts RGBA pixel arrays. If you've already created quantized DCTs you're already like 90% of the way there anyhow ;) |
Beta Was this translation helpful? Give feedback.
-
Thanks @patrickhulce :) I extracted the quantized DCT arrays using https://github.com/uber-research/jpeg2dct from a jpeg file. But unable to find an approach to save them as a jpeg. |
Beta Was this translation helpful? Give feedback.
-
Oh, if a library is outputting DCT for you and you're not manually constructing these in a way you're familiar with, it's probably a bit much to walkthrough and more than 10% to go :/ sorry. My best advice is try to find another library that will do this out of the box or dissect the encoder logic in a language you know best. |
Beta Was this translation helpful? Give feedback.
-
Thanks @patrickhulce for the tips. |
Beta Was this translation helpful? Give feedback.
-
How can I save the quantized DCT arrays as shown above, as a jpeg file using this library?
Beta Was this translation helpful? Give feedback.
All reactions