Hi,

I'm trying to figure out how to scale down a jpeg image in the jpeg library. From the documentation, i've come across these two variables "int scale_num, scale_denom". I've changed the value of scale_denom to 8 but my image could not be displayed.
In my jdapimin.c,
cinfo->scale_num = 1;
cinfo->scale_denom = 8;
Did I miss anything?

Recommended Answers

All 2 Replies

> Did I miss anything?
Like mentioning your OS / Compiler / JPEG library.
Or even posting a reasonable amount of code to establish a context for the question.

No, not a thing :icon_rolleyes:

Oh well, sorry, i did not know where to start. I just started studying this a week ago but i've already figured it out yesterday. Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.