Skip to content

Commit 8b23008

Browse files
authored
Merge pull request #67 from Seven-Sun/master
Fix save file path issue!
2 parents bb22212 + c9d4f62 commit 8b23008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compressor/src/main/java/id/zelory/compressor/Compressor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public File compressToFile(File imageFile) throws IOException {
5858

5959
public File compressToFile(File imageFile, String compressedFileName) throws IOException {
6060
return ImageUtil.compressImage(imageFile, maxWidth, maxHeight, compressFormat, quality,
61-
destinationDirectoryPath + File.pathSeparator + compressedFileName);
61+
destinationDirectoryPath + File.separator + compressedFileName);
6262
}
6363

6464
public Bitmap compressToBitmap(File imageFile) {

0 commit comments

Comments
 (0)