how to use imaageop.scale

B

Bruce

Hi, I want to compress a jpg file. e.g. a jpg file which has RGB band
(24bit per pixel), 100 * 100 size to 50 * 50 size. I
tried to use scale function in imageop module but failed. Any
suggestions about this? Thanks!

Bruce
 
M

Marc 'BlackJack' Rintsch

Hi, I want to compress a jpg file. e.g. a jpg file which has RGB band
(24bit per pixel), 100 * 100 size to 50 * 50 size. I
tried to use scale function in imageop module but failed. Any
suggestions about this? Thanks!

I guess you are talking about the Python Imaging Library (PIL) here? What
have you tried and in which way did it fail?

What about the `resize()` method on image objects?

Ciao,
Marc 'BlackJack' Rintsch
 
A

Amit Khemka

Hi, I want to compress a jpg file. e.g. a jpg file which has RGB band
(24bit per pixel), 100 * 100 size to 50 * 50 size. I
tried to use scale function in imageop module but failed. Any
suggestions about this? Thanks!

Were there any exceptions/error-messasges ?
Do you jpeg libraries installed for hadling jpeg format ?

Cheers,

--
 
B

Bruce

Were there any exceptions/error-messasges ?
Do you jpeg libraries installed for hadling jpeg format ?

Cheers,

--
----
Amit Khemka -- onyomo.com
Home Page:www.cse.iitd.ernet.in/~csd00377
Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.

Amit & Marc, thank you very much. Now I used PIL instead and it works
fine.
But I still don't know how to complete this simple task with imageop
module.
THANKS ANYWAY!

Bruce
 
A

Amit Khemka

Amit & Marc, thank you very much. Now I used PIL instead and it works
fine.
But I still don't know how to complete this simple task with imageop
module.

I think imageop moudle can handle raw images only, so if you want to
use imageop you will need to convert jpeg images to raw format.

Cheers,
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top