Browse Source
Moved logging primarily over to the typesafe:config system which uses JSON style nested configs. Also fixed some logging issues.
master
Moved logging primarily over to the typesafe:config system which uses JSON style nested configs. Also fixed some logging issues.
master
Drew Short
11 years ago
9 changed files with 195 additions and 210 deletions
-
9pom.xml
-
2src/includes/logback.xml
-
1src/main/java/com/sothr/imagetools/AppCLI.java
-
6src/main/java/com/sothr/imagetools/AppConfig.java
-
75src/main/resources/application.conf
-
38src/main/scala/com/sothr/imagetools/util/PropertiesEnum.scala
-
143src/main/scala/com/sothr/imagetools/util/PropertiesService.scala
-
82src/test/resources/application.conf
-
15todo
@ -1,63 +1,55 @@ |
|||
//Default Properties File |
|||
//Image Tools version: ${project.version} |
|||
version = "${build-version}" |
|||
|
|||
|
|||
akka { |
|||
loggers = ["akka.event.slf4j.Slf4jLogger"] |
|||
loglevel = "DEBUG" |
|||
loglevel = "INFO" |
|||
} |
|||
|
|||
//Default App Settings |
|||
app { |
|||
version.current = "${build-version}" |
|||
timed = false |
|||
log { |
|||
debug = true |
|||
info = true |
|||
error = true |
|||
} |
|||
engine { |
|||
//Concurrency Settings |
|||
concurrent { |
|||
similarity.limit = 15 |
|||
processing.limit = 15 |
|||
similarity.limit = 2 |
|||
processing.limit = 2 |
|||
} |
|||
} |
|||
} |
|||
|
|||
#Default Image Settings |
|||
image { |
|||
//images must be 90% similar |
|||
differenceThreshold = 0.90 |
|||
//control generation of hashes for new images. |
|||
hash { |
|||
precision=64 |
|||
} |
|||
ahash { |
|||
use = true |
|||
weight = 0.70 |
|||
precision = 8 |
|||
tolerence = 8 |
|||
} |
|||
dhash { |
|||
use = true |
|||
weight = 0.85 |
|||
precision = 8 |
|||
tolerence = 8 |
|||
#Default Image Settings |
|||
image { |
|||
//images must be 90% similar |
|||
differenceThreshold = 0.90 |
|||
//control generation of hashes for new images. |
|||
hash { |
|||
precision=64 |
|||
} |
|||
ahash { |
|||
use = true |
|||
weight = 0.70 |
|||
precision = 8 |
|||
tolerence = 8 |
|||
} |
|||
dhash { |
|||
use = true |
|||
weight = 0.85 |
|||
precision = 8 |
|||
tolerence = 8 |
|||
} |
|||
phash { |
|||
//set to false if hashing images is taking too long |
|||
use = true |
|||
weight = 1.0 |
|||
precision = 32 |
|||
tolerence = 8 |
|||
} |
|||
} |
|||
phash { |
|||
//set to false if hashing images is taking too long |
|||
use = true |
|||
weight = 1.0 |
|||
precision = 32 |
|||
tolerence = 8 |
|||
//Default Thumbnail Settings |
|||
thumbnail { |
|||
//Directory where to store thumbnails |
|||
directory = ".cache/thumbnails/" |
|||
//Size of the thumbnail to generate and store |
|||
size = 128 |
|||
} |
|||
} |
|||
|
|||
//Default Thumbnail Settings |
|||
thumbnail { |
|||
//Directory where to store thumbnails |
|||
directory = ".cache/thumbnails/" |
|||
//Size of the thumbnail to generate and store |
|||
size = 128 |
|||
} |
@ -1,18 +1,9 @@ |
|||
Move over to Logback for the backend |
|||
-Convert the configuration file |
|||
-Convert the AppConfig to configure basic logging |
|||
Profile and improve performance for the ConcurrentEngine when looking for similarities. |
|||
-SynchronousEngine is about 2.5x faster currently for finding similarities |
|||
-ConcurrentEngine actors for finding similarities are not CPU constrained and need to be |
|||
Convert app configuration format from a java properties to a typesafehub:config |
|||
-Rewrite properties in new format (JSON) |
|||
-Rewrite PropertiesLoader to use the new format |
|||
Add functionality to both engines |
|||
-Recursive directory scanning |
|||
-Determine how to handle similarites there... All images or just per folder |
|||
-Move files to new locations |
|||
-Rename new files based on their MD5 |
|||
Add functionality to ImageService |
|||
-Cache thumbnails |
|||
-Generate thumbnails |
|||
-Move caching of images into the ImageService |
|||
Improve functionality of the PropertiesService |
|||
-Getters and Setters for sepcific values with proper cascading and type awareness |
|||
-Nicer debugging? |
Write
Preview
Loading…
Cancel
Save
Reference in new issue