GIF图片不压缩
This commit is contained in:
parent
49b69fa464
commit
3d48b26f2e
@ -635,12 +635,15 @@ public class FileServiceImpl extends AbstractService implements IFileService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否是图片文件
|
||||
* 是否是图片文件, GIF图片不压缩
|
||||
*
|
||||
* @param fileType
|
||||
* @return
|
||||
*/
|
||||
private boolean isImageFile(String fileType) {
|
||||
if (StringUtils.equalsIgnoreCase("gif", fileType)) {
|
||||
return false;
|
||||
}
|
||||
String imageTypes = fileProperties.getImageTypes();
|
||||
for (String imageType : imageTypes.split(",")) {
|
||||
if (StringUtils.equalsIgnoreCase(fileType, imageType)) {
|
||||
|
Loading…
Reference in New Issue
Block a user