001 package railo.runtime.img; 002 003 004 import java.io.PrintWriter; 005 006 import railo.commons.io.res.Resource; 007 import railo.commons.lang.SystemOut; 008 import railo.runtime.engine.ThreadLocalPageContext; 009 import railo.runtime.type.Struct; 010 011 public class ImageMeta { 012 013 /** 014 */ 015 /** 016 * adds information about a image to the given struct 017 * @param format 018 * @param res 019 * @param info 020 */ 021 public static void addInfo(String format, Resource res, Struct info) { 022 try{ 023 ImageMetaDrew.test(); 024 } 025 catch(Throwable t) { 026 PrintWriter pw = ThreadLocalPageContext.getConfig().getErrWriter(); 027 SystemOut.printDate(pw, "cannot load addional pic info, library metadata-extractor.jar is missed"); 028 } 029 try{ 030 ImageMetaDrew.addInfo(format, res, info); 031 } 032 catch(Throwable t) {} 033 } 034 035 036 037 }