0

What is the fastest way to modify an image file (apply filters, change resolution, etc..) in java.

I tried to open a file with ImageIO and modify with java.awt.image

ColorConvertOp op = new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY), null);
op.filter(bufferedImage, bufferedImage);

It took a lot of time, do you have any faster method to do it?

Idan Str
  • 614
  • 1
  • 11
  • 33
  • 2
    "to modify" is probably too broad. I wrote a [somewhat extensive answer](https://stackoverflow.com/a/32278737/3182664) a while ago where I (only!) investigated the performance for **scaling** an image, and this already has many degrees of freedom, and the performance varies wildly with them... – Marco13 Nov 11 '18 at 18:48
  • not really "in java", but quite fast... https://imagemagick.org/script/api.php – Marc Stroebel Nov 11 '18 at 19:41
  • Do you consider a SVG file an image file? – MC Emperor Feb 11 '19 at 13:47

0 Answers0