Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

JPEG old compression setting offset value
Started by wilxom at 02-06-2008 6:42. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  02-06-2008, 6:42
wilxom is not online. Last active: 3/8/2008 1:07:07 AM wilxom

Top 150 Posts
Joined on 01-09-2008
Posts 15
JPEG old compression setting offset value
Reply Quote
Hi,

I am using LeadTools 14.5 V COM-VB.
I have a scenario that need to be achieved but i do not know whether LeadTools app might help me.
Below are the Tag No, name and value:

273 - > StripOffsets - > 935
279 - > StripByteCounts - > 47617
512 - > JpegProc - > 1
513 - > JpegIFOffset - > 588
514 - > JpegIFByteCount - > 47964
515 - > JpegRestartInterval - > 0
519 - > JpegQTables - > 310
520 - > JpegDCTables - > 378
521 - > JpegACTables - > 410

Required:
1. JpegIFOffset(513) should have identical value to StripOffsets(273) which is "935".
2. JpegIFByteCount(514) should have identical value to StripByteCount(279) which is "47617".
3. JpegRestartInterval(515) value should be "99".
4. JpegQTables(519) should be identical to "StripOffSets(273) + 25".
5. JpegDCTables(520) should be identical to "StripOffSets(273) + 107".
6. JpegACTables(521) should be identical to "StripOffSets(273) + 140".

Is this Old JPEG tags value can be changed? and will it caused any instability towards the image after any changs? Please assist. Thanks.

Regards,
Wilson


   Report 
  02-06-2008, 10:18
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,124
Re: JPEG old compression setting offset value
Reply Quote
Wilson,

You should not modify the JPEG tags values yourself, but only let our JPEG compressor and TIFF file writer manipulate them.

However, we have a flag for old JPEG, but I don't know if it will do all the changes you need or not. To try it, set the LEADRasterIO.SaveOldJTIF property to True before saving the file.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  02-07-2008, 3:45
wilxom is not online. Last active: 3/8/2008 1:07:07 AM wilxom

Top 150 Posts
Joined on 01-09-2008
Posts 15
Re: JPEG old compression setting offset value
Reply Quote
Hi Adnan,

The tags value in the previous message was generated by LeadTools OLDJPEG compression via sampel code writen below:

RasterIO.SaveOldJTIF = True
RasterIO.Save rasterImage, strDir & strName, FILE_TIF_JPEG, 8, 10, SAVE_OVERWRITE

Is there any possibility that LeadTools able to manipulate the tags value via It's "JPEG compressor and TIFF file writer" towards the Images with the specific value that i mentioned in the previous mail?
Thanks.

Regards,
Wilson

   Report 
  02-07-2008, 11:34
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,124
Re: JPEG old compression setting offset value
Reply Quote

Wilson,

No there are no options in the compressor to manipulate these values, and if you modified the values yourself you will corrupt the file.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Image Compressi... » JPEG old compression setting offset value

Powered by Community Server, by Telligent Systems