TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Twain Driver Settings for JPG

Forums › TWAIN Classic › Twain Driver Settings for JPG

  • This topic has 7 replies, 4 voices, and was last updated 3 weeks ago by Tseqcb56245afsdfsaf5621.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • October 9, 2012 at 1:30 pm #22788 Reply
    djaap30
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    Hi,
    I am having a strange issue and need more information about twain….I’m hoping to attain some guidance here.
    I use a small document management system called netDMS (http://www.vistasg.com/netdms_index/netdms_index.html).
    We use canon scanners (DR 5010 and DR 4010) with the latest twain drivers from Canon’s website.
    We recently purchased new PC’s that run windows 7 SP1 x64. All PC’s were previously running XP x86.
    The problem is this:
    On several of the new pcs, any image scanned into the document mgt system are being saved as JPG. The norm is for the images to be saved as tiff. The scanning functions of the dms simply calls the twain driver. It doesn’t give the users the option to choose a file format, nor is it configurable….according to the vendor, file format is controlled by the twain driver. The problem that i have with JPG is that the files are much larger then tiff. Also, we have a web service that converts the images on the fly when viewed on our website….the larger file sizes crash the pdf conversion. I have scowered thru the twain driver settings and can’t find anything that is relative.
    Can anyone give me some guidance as to how to control this in the twain driver?
    Thanks in advance.

    October 24, 2012 at 3:10 pm #25708 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    ICAP_COMPRESSION is the capability that controls the use of JPEG. Setting it to TWCP_NONE (no compression) should take care of that problem.

    There’s a remote possiblity that the new driver is automatically detecting color content and is returning JPEG as a “convenience”.

    I recommend downloading the TWACKER, which is a standalone application that can be used to tinker with TWAIN drivers. You can find it at the bottom of this page…
    https://www.twain.org/scannerdriverdevelopers/specification-and-tools.html

    See if the driver is automatically JPEG when you bring it up. Check the ICAP_COMPRESSION setting. You may also want to bring up the driver’s GUI to see if it has any settings that relate to your problem. Some drivers remember their GUI settings, so turning it off in the driver GUI and then running from your preferred application might give the result you want.

    You should also consider contacting Canon for more help…

    October 24, 2012 at 4:02 pm #25709 Reply
    djaap30
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    MarkM,
    Thanks for your response. I have downloaded TWACK, but i can’t seem to find the “ICAP_COMPRESSION” setting that you referred to. Can you tell me where exactly i can find that?

    @MarkM wrote:

    See if the driver is automatically JPEG when you bring it up. Check the ICAP_COMPRESSION setting.

    Do you mean the driver gui that appears when scanning? Or is there a file somewhere that holds these settings? I have scowered thru every tab in the scanner driver gui (from twack and my 3rd party tool) and there aren’t any settings that relate to anything about JPEG or ICAP_COMPRESSION.

    @MarkM wrote:

    You should also consider contacting Canon for more help…

    also tried this…they said that there aren’t any settings within the scanner driver that would automatically determine file format…..which i find hard to believe because i have several pcs without this problem and they are identical (same PC hw, same OS, same OS patch level, same scanner model, same scanner driver version ,same firmware, etc).

    October 24, 2012 at 4:57 pm #25710 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    Okay…so when you have TWACKER up, you want to use “File / Select Source…” to pick your scanner.

    Then click on “Special / 1 Load/Open SM”, then “Special / 2 Open Source”

    Then click on “Special / 3 Send…”, and you’ll get the negotiation dialog…

    It should already be set for DG_CONTROL / DAT_CAPABILITY / MSG_GET, so click on the “Capability:” dropdown and see if ICAP_CAPABILITY shows up in the list. If it does, then you can investigate it and make sure it’s set to TWCP_NONE. If it doesn’t, then keep going…

    Are you using DAT_IMAGEFILEXFER to get the image? If so, then you need to look into the setting on ICAP_IMAGEFILEFORMAT and make sure that DAT_SETUPFILEXFER isn’t asking for TWFF_JFIF (the offical name of a JPEG header). Try setting it to TWFF_BMP.

    If that doesn’t help, then make sure the scanner has a piece of paper ready, click on “File / Message Level / Full”, then click on “Special / 5 Enable/Transfer”

    You’ll get a dialog for the DAT_IMAGEINFO command. Check the value of compression. If it’s anything other than 0, then the image was compressed by the driver. (6 is the value for JPEG)

    Hopefully, that’ll give you some more information to figure out what’s happening…

    January 16, 2014 at 3:21 am #25711 Reply
    peterlee
    Participant
    • Topics - 0
    • Replies - 24
    • Total Posts - 24

    Hi, MarkM.
    I am almost a greenhand on
    JPEG processing problem. But I believe it can work better with the help of some professional TWAIN driver. I am testing about the related projects these days. Do you have any ideas about it? Or any good suggestion? Thanks in advance.

    Best regards,
    Arron

    January 17, 2014 at 4:51 pm #25712 Reply
    djaap30
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    We’ve tried all of the suggestions in this thread and have never been able to fix this problem….please update this thread if anyone has any work arounds…..it would be greatly appreciated!

    February 8, 2014 at 3:42 am #25713 Reply
    Foximage
    Participant
    • Topics - 0
    • Replies - 13
    • Total Posts - 13

    TWAIN scanner is an industrial standard that was defined by the TWAIN Working Group. It includes the specification, data source manager and sample code. TWAIN links applications and image acquisition devices (such as photo scanners and digital cameras). The supportable acquired image of TWAIN scanner can be in various form, inlcuding jpg. For scanning and decoing different image format, we neen to do some modification on twain scanning console properties.

    February 10, 2014 at 1:53 pm #25714 Reply
    djaap30
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    @Foximage wrote:

    TWAIN scanner is an industrial standard that was defined by the TWAIN Working Group. It includes the specification, data source manager and sample code. TWAIN links applications and image acquisition devices (such as photo scanners and digital cameras). The supportable acquired image of TWAIN scanner can be in various form, inlcuding jpg. For scanning and decoing different image format, we neen to do some modification on twain scanning console properties.

    So are you saying that the TWAIN Working Group needs to address this with a development effort? Or are you saying that there is a way to change this behavior thru a configuration setting? I am an end user / administrator so I am hoping that it is the latter. Can you clarify?

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Twain Driver Settings for JPG
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.