forked from j62/ctbrec
Scale down images to 360px to prevent OutOfMemoryErrors
This commit is contained in:
parent
abef15a5f7
commit
25fc51521a
|
@ -363,7 +363,7 @@ public class ThumbCell extends StackPane {
|
|||
.build();
|
||||
try (Response resp = CamrecApplication.httpClient.execute(req)) {
|
||||
if (resp.isSuccessful()) {
|
||||
Image img = new Image(resp.body().byteStream());
|
||||
Image img = new Image(resp.body().byteStream(), 0, 360, true, true);
|
||||
if (img.progressProperty().get() == 1.0) {
|
||||
Platform.runLater(() -> {
|
||||
iv.setImage(img);
|
||||
|
|
Loading…
Reference in New Issue