blob: 192217fea307bad11eda764bb2e42df2d43aa072 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package com.juick.service;
import com.juick.Message;
import java.io.IOException;
public interface ImagesService {
void setAttachmentMetadata(String imgDir, String baseUrl, Message msg) throws Exception;
/**
* Move attached image from temp folder to image folder.
* Create preview images in corresponding folders.
*
* @param tempFilename Name of the image file in the temp folder.
* @param outputFilename Name that will be used in the image folder.
*/
void saveImageWithPreviews(String tempFilename, String outputFilename) throws IOException;
/**
* Save new avatar in all required sizes.
*
* @param tempFilename Name of the image file in the temp folder.
* @param uid User id that is used to build image file names.
*/
void saveAvatar(String tempFilename, int uid) throws IOException;
}
|