Skip to content

Commit

Permalink
Chanhe default image size in user interface
Browse files Browse the repository at this point in the history
  • Loading branch information
AMairesse committed Jan 20, 2019
1 parent fad08ac commit c912a80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Osmose.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ def osmose_one_node(node):
images = save_workspace(images, node)
print(images)

images = add_info_to_images(images, node)
node["images"]=images
images = add_info_to_images(images, node)
node["images"]=images

with open(path+"/"+str(node["id"])+'/data.json', 'w') as foo:
json.dump(node, foo)
with open(path+"/"+str(node["id"])+'/data.json', 'w') as foo:
json.dump(node, foo)
2 changes: 1 addition & 1 deletion UserInterface/NodeDetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def saveImages(self):
for i, image in enumerate(self.images):
imageWidget = QLabel()
imagePixmap = QPixmap(image["path"])
imagePixmap = imagePixmap.scaledToHeight(390)
imagePixmap = imagePixmap.scaledToHeight(224)
imageWidget.setPixmap(imagePixmap)

self.imagesLayout.addWidget(imageWidget, 0, i)
Expand Down

0 comments on commit c912a80

Please sign in to comment.