Why are my grayscale images JPEG wrapped in a TIFF header?

Why are my grayscale images JPEG wrapped in a TIFF header?

SmartSource default grayscale format is TIFF wrapped JPEG. Other formats are supported, including JPEG, shown below.
As of release 4.4.1.0-2.0.34.0, RangerForSmartPVA has an option to strip the TIFF header from the JPEG grayscale images.

Set up the appropriate generic options:
See the following options in the generic options file at
"C:\ProgramData\Silver Bullet Technology\Ranger\Scanner Plug-ins\Burroughs-SmartPVA\GenericOptions.ini":
  1.     [OptionalDevices]
  2.     NeedImaging=true
  3.     NeedFrontImage2 =true
  4.     NeedRearImage2=true
Set up the necessary driver options:
See the following options in the driver options file at
"C:\ProgramData\Silver Bullet Technology\Ranger\Scanner Plug-ins\Burroughs-SmartPVA\Burroughs-SmartPVA.ini":
  1. [Image.FrontGrayscale]
  2. // Compression type
  3. 3 = JPEG
  4. 20 = Grayscale Bitmap
  5. 21 = Grayscale PNG
  6. // The default is 3.
  7. COMPRESSIONTYPE=3

  8. [Image.RearGrayscale]
  9. // Compression type
  10. 3 = JPEG
  11. 5 = Full Resolution JPEG
  12. 20 = Grayscale Bitmap
  13. 21 = Grayscale PNG
  14. // The default is 3.
  15. COMPRESSIONTYPE=3

  16. [Image.GENERAL]
  17. // JpegTiffWrapped
  18. // Determines whether grayscale jpeg images are tiff wrapped
  19. // false - not tiff wrapped
  20. // true - tiff wrapped (default)
  21. JpegTiffWrapped=false

See the below code example to set these options programmatically:
  1. SetGenericOption("OptionalDevices", "NeedImaging", "true");
  2. SetGenericOption("OptionalDevices", "NeedFrontImage2", "true");
  3. SetGenericOption("OptionalDevices", "NeedRearImage2", "true");
  4. SetDriverOption("Image.FrontGrayscale", "COMPRESSIONTYPE", "3");
  5. SetDriverOption("Image.RearGrayscale", "COMPRESSIONTYPE", "3");
  6. SetDriverOption("Image.GENERAL", "JpegTiffWrapped", "false");

Copyright © 2023 Silver Bullet Technology
www.sbullet.com