Skip to content

Commit

Permalink
remove redundant lines from pngquanting function
Browse files Browse the repository at this point in the history
  • Loading branch information
Reettaphant committed May 24, 2016
1 parent 8310814 commit e1771c3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,11 @@ object ImageOperations {
mediaType.name match {
case "image/png" => {
val fileName: String = resizedFile.getAbsolutePath()
val split = fileName.split('.')

val optimisedImageName: String = fileName.split('.')(0) + "optimised.png"
Seq("pngquant", "--quality", "1-85", fileName, "--output", optimisedImageName).!

val file = new File(optimisedImageName)

file
new File(optimisedImageName)

}
case "image/jpeg" => resizedFile
Expand Down

0 comments on commit e1771c3

Please sign in to comment.