2
我正在使用im4java库进行ImageMagick的图像处理操作。如何使用im4java提高图像质量?
的代码我使用看起来像:
ImageCommand imageCommand = new ConvertCmd();
imageCommand.setSearchPath(getImageMagickPath());
operation = new IMOperation();
operation.quality(100d);
operation.addImage();
operation.resize(getWidth());
operation.addImage();
imageCommand.run(operation, sourceImage, extention);
但得到的图像质量差。使用命令行执行相同的操作可将质量提高4倍。使用im4java时是否应该设置其他设置?文件格式为jpg。在此先感谢...