diff --git a/src/main/kotlin/com/nuculabs/dev/imagetagger/ui/controls/ImageTagsEntryControl.kt b/src/main/kotlin/com/nuculabs/dev/imagetagger/ui/controls/ImageTagsEntryControl.kt
index f6bd608..8670a37 100644
--- a/src/main/kotlin/com/nuculabs/dev/imagetagger/ui/controls/ImageTagsEntryControl.kt
+++ b/src/main/kotlin/com/nuculabs/dev/imagetagger/ui/controls/ImageTagsEntryControl.kt
@@ -58,11 +58,7 @@ class ImageTagsEntryControl
*/
fun setImage(imagePath: String) {
File(imagePath).inputStream().use {
- imageView.image = Image(it)
- imageView.resize(244.0, 244.0)
- imageView.fitHeight = 244.0
- imageView.fitWidth = 244.0
- imageView.isSmooth = true
+ imageView.image = Image(it, 244.0, 244.0, true, true)
imageView.isCache = true
}
}
diff --git a/src/main/resources/com/nuculabs/dev/imagetagger/ui/controls/image-tags-entry.fxml b/src/main/resources/com/nuculabs/dev/imagetagger/ui/controls/image-tags-entry.fxml
index 96e20fd..56d950e 100644
--- a/src/main/resources/com/nuculabs/dev/imagetagger/ui/controls/image-tags-entry.fxml
+++ b/src/main/resources/com/nuculabs/dev/imagetagger/ui/controls/image-tags-entry.fxml
@@ -10,7 +10,9 @@
-
+
+
+