ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Annotation block too large
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

graph_man

226 Posts

Posted - Mar 10 2020 :  11:36:14  Show Profile  Reply
I see this error message at inserting of image annotation with any size of image.

ps
Latest version of ImageEn

xequte

5219 Posts

Posted - Mar 10 2020 :  14:39:23  Show Profile  Reply
Hi

Please give me the steps to reproduce this.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

graph_man

226 Posts

Posted - Mar 10 2020 :  15:40:08  Show Profile  Reply
if (OpenImageEnDialog1->Execute())
{
ImageEnView1->SetObjBitmapFromFile(-1,OpenImageEnDialog1->FileName);

ImageEnView1->ObjWidth[-1] = ImageEnView1->ObjBitmap[-1]->Width;
ImageEnView1->ObjHeight[-1] = ImageEnView1->ObjBitmap[-1]->Height;

ImageEnView1->ShiftKeyLock = TIEShiftLock() << iessAlt_MaintainAR;

ImageEnView1->MouseInteractVt = ImageEnView1->MouseInteractVt << miPutBitmap;
}

ImageEnMView2->MIO->Params[SelectedImage]->ImageEnAnnot->CopyFromTImageEnVect(ImageEnView1);

ERROR

but if I use

ImageEnMView2->MIO->Params[SelectedImage]->ImagingAnnot->CopyFromTImageEnVect(ImageEnView1);

All is OK
Go to Top of Page

xequte

5219 Posts

Posted - Mar 11 2020 :  15:43:12  Show Profile  Reply
Hi

ImageEn annotations are saved to the EXIF meta data, which has a maximum total size of 65KB, so you need to keep your size below this.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

graph_man

226 Posts

Posted - Mar 11 2020 :  17:28:37  Show Profile  Reply
This problem appeared in one of the latest versions.
I used to be able to add image annotations without problems.
Go to Top of Page

graph_man

226 Posts

Posted - Mar 11 2020 :  17:35:09  Show Profile  Reply
Is there another way to save image annotations to a file without size restrictions?
Go to Top of Page

xequte

5219 Posts

Posted - Mar 12 2020 :  15:08:11  Show Profile  Reply
Hi

That code has not changed in a long time, so it is not a new issue.

You need to switch annotation saving to a different method, i.e. use ImagingAnnot or save to an annotation file (IEV) instead of JPEG.

Also, if this is new code, use ImageEn layers rather than IEVect objects:

https://www.imageen.com/help/ImageEn/TImageEnVect%20vs%20TIELayers.html

(Though it won't affect this issue, which is due to a limitation in EXIF).

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

graph_man

226 Posts

Posted - Mar 12 2020 :  15:40:16  Show Profile  Reply
> You need to switch annotation saving to a different method, i.e. use ImagingAnnot or save to an annotation file (IEV) instead of JPEG.

I save annotations to TIFF (not to JPEG).
Is there any difference?
Go to Top of Page

xequte

5219 Posts

Posted - Mar 15 2020 :  05:27:10  Show Profile  Reply
No difference. They both use EXIF storage.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: