I'm currently running a script that inserts a 1Mb image into a data table using the following simple script ( where :link to image is a network drive where the jpg is stored)
Formula( Open( :Link to Image, "jpg" ) ),
Due to the size of the image the data table is getting large ( I have ~1500 images) and have tried the crop function but cannot get the syntax correct
one of the various ways I have tried is the following ( and probably all combinations of this apart from the correct one!).
Formula( Open( :Link to Image, "jpg" ) ) << crop( Left( 190 ), top( 0 ), bottom( 1690 ), Right( 700 ) ),
I feel I'm close but not quite there.
Ideally it would do the following
- Open the image ( one at a time to save computer memory?)
- crop the image, then save the crop into a central folder. This would then allow for additional image analysis if required.
- Insert the crop into the data table
- Close the original image.
Regards
David