Page 1 of 1

Save a signature as jpg format

Posted: Thu Oct 06, 2016 3:08 pm
by MegumiSawada
Hi,

Our customer would like to save a signature as jpg format,not png.
Using set_Image method with Newimage_Format(jpg) & Save_Annotation method doesn't save the signature file as jpg format, just the extention is "jpg".

I have found the following topics:
http://longrange.lansa.com.au/viewtopic ... =310&p=830

Is this enhancement added yet?

Best Regards,
Megumi Sawada

Re: Save a signature as jpg format

Posted: Thu Oct 06, 2016 3:46 pm
by tsupartono
Don't save the annotation image, instead save the merged image (use Save_Image method).
The annotation image contains just the annotation, whereas the merged image contains both the annotations and the main image (in the case of signature capture, the main image is blank).
The annotation images are always saved as PNG because they have transparent background (which JPEG doesn't support).

You'd need to specify that the annotation should be merged with the main image - Annotate_MergeWthImg (Y)
Specify new image format as JPG - NewImage_Format(JPG).

Re: Save a signature as jpg format

Posted: Thu Oct 06, 2016 5:07 pm
by MegumiSawada
Hi Tony,

Thank you!

Best Regards,
Megumi

Re: Save a signature as jpg format

Posted: Thu Oct 06, 2016 8:36 pm
by MegumiSawada
Hi Tony,

I have tried it but the created jpg file is actually png format.

#Com_Owner.Set_Image method with Annotate_Mergewthimg(True) Newimage_Format(jpg)
and
#COM_OWNER.Save_Image Name(IMAGE_1_ELEMENT) Filename(#uImageFile)

I have used data format inspecter like "WinExChange".
http://www.vector.co.jp/download/file/w ... 24676.html

Is there any way to save signature in real jpg format?

Best Regards,
Megumi Sawada

Re: Save a signature as jpg format

Posted: Fri Oct 07, 2016 11:39 am
by tsupartono
Hi Megumi,
We need to verify that this is indeed the case.
Can you please log a support call with LANSA Support and provide your RDMLX source code?
Thanks.