1 package org.springbyexample.util.image;
2
3 import java.io.File;
4 import java.io.IOException;
5 import java.io.InputStream;
6 import java.io.OutputStream;
7
8
9
10
11
12
13 public interface ImageProcessor {
14
15
16
17
18 public int getImageScaleWidth();
19
20
21
22
23 public void setImageScaleWidth(int imageScaleWidth);
24
25
26
27
28 public void scaleImage(File imageFile, File newFile)
29 throws IOException;
30
31
32
33
34 public void scaleImage(InputStream in, OutputStream out, String formatName)
35 throws IOException;
36
37 }