Skip to content

Commit

Permalink
Saving fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Apr 27, 2023
1 parent dfc2c7d commit 697329e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
run: brew install ninja

- name: Install openssl
run: sudo brew install openssl
run: brew install openssl

- name: Install automake
run: brew install automake
Expand Down
14 changes: 14 additions & 0 deletions mrv2/lib/mrvFl/mrvSaving.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ namespace mrv
X = (viewportSize.w - renderSize.w) / 2;
Y = (viewportSize.h - renderSize.h) / 2;

view->setFrameView(false);
view->setViewZoom(1.0);
view->centerView();
}
Expand All @@ -135,6 +136,15 @@ namespace mrv
LOG_WARNING(_("Image too big. "
"Will save the viewport size."));
}
std::string msg = tl::string::Format(
_("Viewport Size: {0} Render Size: {1} "
"viewZoom: {2} X: {3} Y: {4}"))
.arg(viewportSize)
.arg(renderSize)
.arg(view->viewZoom())
.arg(X)
.arg(Y);
LOG_INFO(msg);
}

imaging::Info outputInfo;
Expand All @@ -146,6 +156,10 @@ namespace mrv
{
outputInfo.pixelType = imaging::PixelType::RGB_U8;
}
std::string msg = tl::string::Format(_("Output info: {0} {1}"))
.arg(outputInfo.size)
.arg(outputInfo.pixelType);
LOG_INFO(msg);

auto outputImage = imaging::Image::create(outputInfo);

Expand Down
6 changes: 3 additions & 3 deletions mrv2/lib/mrvWidgets/SaveOptionsUI.fl
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ snap {
current_suite FLTK
current_preset 0
}
decl {\#include <string>} {public global
decl {\#include <string>} {selected public global
}

decl {\#include "mrvCore/mrvSequence.h"} {selected public global
decl {\#include "mrvCore/mrvSequence.h"} {public global
}

class SaveOptionsUI {open
Expand All @@ -24,7 +24,7 @@ class SaveOptionsUI {open
} {
Fl_Window uiMain {
label {Saving Options}
xywh {285 453 508 402} type Double align 5 visible
xywh {285 453 508 402} type Double align 5 modal visible
} {
Fl_Group {} {
label {Common Settings}
Expand Down
2 changes: 1 addition & 1 deletion tlRender
Submodule tlRender updated 123 files

0 comments on commit 697329e

Please sign in to comment.