Combines an existing JPEG with the current IPTC information.

 

   
Syntax
 
     

[VBScript]
outDst = GraphicIPTC.Embed(inSrc)

 

   
Params
 
     
Name   Type   Description
inSrc Variant The existing JPEG.
outDst Variant The new JPEG.

 

   
Notes
 
     

Use this method to add the current IPTC information to an existing JPEG. You can specify your JPEG using either a file path or using raw data - an array of bytes.

If you pass this function a path to your JPEG it will return the same path. If you pass this function raw data it will return an array of data representing the new JPEG image.

 

   
See Also
 
     

None.

 

   
Example
 
     

[VBScript]
Set gr = Server.CreateObject("ImageGlue7.Graphic")
theFile = Server.MapPath("images/iptc.jpg")
gr.ReadIPTC = True
gr.SetFile theFile
gr.IPTC.Add("Headline", True).Text = "Oxford University Ball"
gr.IPTC.Add("Caption", True).Text = "What a laugh!"
gr.IPTC.Embed theFile

The code reads the IPTC information from a JPEG file. It then changes the headline and caption and embeds the changed information into the original file.