Help with images

C

Chad

I have installed a TWAIN module(from
http://twainmodule.sourceforge.net) today and figured out how to
acquire an image. The only problem is that the image is way too large
in terms of filesize. It is over 1MB.

I can do either one of two things. Try to figure out how to manupilate
the image with this module(which I am been doing all day) or just use a
module that can compress jpegs. Can anybody help?
 
M

max

I have installed a TWAIN module(from
http://twainmodule.sourceforge.net) today and figured out how to
acquire an image. The only problem is that the image is way too
large in terms of filesize. It is over 1MB.

I can do either one of two things. Try to figure out how to
manupilate the image with this module(which I am been doing all
day) or just use a module that can compress jpegs. Can anybody
help?

Check out PIL:
http://www.pythonware.com/products/pil/
http://www.pythonware.com/library/pil/handbook/


but also be sure to read the "Setting Capababilities" section of this
document:

http://twainmodule.sourceforge.net/docs/caps.html

max
 
C

Chad Best

max said:
Check out PIL:
http://www.pythonware.com/products/pil/
http://www.pythonware.com/library/pil/handbook/


but also be sure to read the "Setting Capababilities" section of this
document:

http://twainmodule.sourceforge.net/docs/caps.html

max

Max,

I have read the document about setting the capabilities. I have also tried
the twexplore.exe to see the capabilities of my scanner. The twexplore.exe
will give you the option to save the file or "retrieve it natively." On the
window where it gives you this option, it also allows you to set attributes
like bit size, or compression. No matter how many times I change these
options, it still gives an image with the same filesize. The reason, I
mentioned that was because those attributes that you can change correlate to
the ICAP values. If changing those attributes in twexplore.exe does not do
anything, then I am thinking that it probably won't do anything when I write
a script either.
 
P

Peter Hansen

Chad said:
I have installed a TWAIN module(from
http://twainmodule.sourceforge.net) today and figured out how to
acquire an image. The only problem is that the image is way too large
in terms of filesize. It is over 1MB.

I can do either one of two things. Try to figure out how to manupilate
the image with this module(which I am been doing all day) or just use a
module that can compress jpegs. Can anybody help?

PIL does that.
 

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,261
Messages
2,571,308
Members
47,976
Latest member
AlanaKeech

Latest Threads

Top