473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Help with images

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?

Jul 21 '05 #1
3 1044
max
"Chad" <sl*******@yahoo.com> wrote in
news:11**********************@z14g2000cwz.googlegr oups.com:
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
Jul 21 '05 #2

"max" <ma****@yahoo.com> wrote in message
news:Xn*************************@216.168.3.44...
"Chad" <sl*******@yahoo.com> wrote in
news:11**********************@z14g2000cwz.googlegr oups.com:
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


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.
Jul 21 '05 #3
Chad wrote:
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.
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Allen | last post by:
I am trying to add an additional photo/hyperlink to the company web site (I didn't create it) without any luck. The mouseover feature 'highlights' pics by swapping them with another pic using this...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
1
by: zengou | last post by:
My application have many picturebox objects,when run it ,sometimes i will have a strange error,how to work out ,help me please!(in windows98,the error cause frequently than in windowsxp) ...
7
by: Papelotte | last post by:
Hi all, I'm new to this forum and I am hoping that there is someone here who can help me. I have an ASP page that has javascript that works perfectly in IE, but not in Firefox. Can anybody tell...
36
by: aljamala | last post by:
Hi, I keep getting this warning on a page, but I do not know what the problem is...does anyone have an idea about what could be wrong? line 88 column 7 - Warning: missing </formbefore <td> it...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
14
by: ra7l | last post by:
hi all bleas h need help in cods GUI and Thread i need help function start () run() white () join () sleep ()
5
by: ra7l | last post by:
Hi All .. First Thanks to All For Help Me .. ok ..This Code it Move Train but one errore small.. Where Correct Cods Thanks All .. :)
2
by: chaos | last post by:
Hi all, i need help in this forgot password page, as the error message is show in another page cause the arrangement of the design in a mess. As i want to show the error message on the forgot...
2
by: tonsi | last post by:
I have a page but it wont center the div. Can anyone take a look at it and help. When I try to center in the body using text-align: center; it doesn't work with the main container (called Table_01)....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.