Skip to content
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

fast thumbnail creation for jpeg images by using DCT coefficients #1711

Open
jwurzer opened this issue Oct 24, 2024 · 0 comments
Open

fast thumbnail creation for jpeg images by using DCT coefficients #1711

jwurzer opened this issue Oct 24, 2024 · 0 comments

Comments

@jwurzer
Copy link

jwurzer commented Oct 24, 2024

Is your feature request related to a problem? Please describe.
Create a thumbnail without full decoding of the jpeg image. Necessary for jpeg images which have no embedded EXIF thumbnail.

Describe the solution you'd like
Collects the DCT coefficients from the image, and performs a rescaling operation on them. The DCT coefficient is normally used as the base coefficient for an 8x8 block of pixels. Treat it as one pixel. As a result, a (computationally free) thumbnail exactly 1/8th the size of the original image is created.

Describe alternatives you've considered
Encode the whole jpeg file and resize it to a thumbnail. The problem is it needs more performance.

Additional context
There is already a solution with EPEG using libjpeg (see https://github.com/mattes/epeg ). But the lib libjpeg is necessary. Fine would be a solution with stb image.

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

No branches or pull requests

1 participant