默认的分辨率是400*400,如何改变jpg、png等图片格式的分辨率?
官方论坛提供的解释:
first sorry for the delay. You can edit the process.xml in the “conf” folder. Just open the file and search for the pipeline (name=“jpeg”) there you can change the “width” and “height” property to your values (px,mm,pt). You can add the property “dpi”
to get the right result.
If you use Kabeja in Java you have to use the setProperty(Map) method, your values you have to setup in the Map.
如果您在Java中使用Kabeja,则必须使用setProperty(Map)方法,您必须在Map中设置您的值。
代码实例:
SAXSerializer out =new SAXPNGSerializer();
Map m=new HashMap();
m.put("width", "1500");
m.put("height", "1500");
out.setProperties(m);
如果有其他问题的话可以访问SourceForge,https://sourceforge.net/p/kabeja/discussion/510352/