@@ -0,0 +1,757 @@
+import com.icafe4j.image.jpeg.JPEGTweaker;%0Aimport com.icafe4j.image.meta.iptc.IPTCDataSet;%0A%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.FileOutputStream;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Apublic class Tagfai %7B%0A%0A%09public static void main(String%5B%5D args) throws Exception %7B%0A%0A%09%09File image = new File(args%5B0%5D);%0A%0A%09%09// create collection to store all keywords found in an image%0A%09%09Set%3CIPTCDataSet%3E keywords = new HashSet%3C%3E();%0A%0A%09%09IPTCDataSet keyword = new IPTCDataSet(25, %22kurtlee%22);%0A%09%09keywords.add(keyword);%0A%0A%0A%09%09// create new image  holding tags information%0A%09%09FileInputStream is = new FileInputStream(image);%0A%09%09FileOutputStream os = new FileOutputStream(%22taggified.jpg%22);%0A%09%09JPEGTweaker.insertIPTC(is, os, keywords, false);%0A%0A%09%7D%0A%7D

Add Tagfai, Manual insertion of tags