try { exif=createObject("component","cfc.exif.writeEXIF"); const=exif.getEXIFConstants(); tags=arrayNew(1); tags[1]=const.EXIF_TAG_FLASH; tags[2]=const.EXIF_TAG_FOCAL_LENGTH; f=expandpath("images/driftTrack.jpg"); img=imageNew(f); beforeInfo=imageGetEXIFMetadata(img); imgFile=exif.dropEXIFTags(f,tags); writeoutput("#imgFile#
"); img=imageNew(imgFile); info=imageGetEXIFMetadata(img); } catch (Any err) { writeoutput("#err.errorcode# :: #err.message#"); }