From ccae016878547ee5a5f5a1b010f8fa403463f82d Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 23 Oct 2018 15:03:38 -0300 Subject: [PATCH] Add options to load/save/convert/assign color profiles correctly (#1576) --- data/strings/en.ini | 5 ++ data/widgets/ask_for_color_profile.xml | 15 ++++ src/app/cmd/convert_color_profile.cpp | 64 ++++++++++++++++++ src/app/cmd/convert_color_profile.h | 4 ++ src/app/color_spaces.cpp | 18 +++++ src/app/color_spaces.h | 7 ++ src/app/file/ase_format.cpp | 11 ++- src/app/file/file.cpp | 94 ++++++++++++++++++++++++++ src/app/file/file.h | 12 ++++ src/app/file/jpeg_format.cpp | 8 ++- src/app/file/png_format.cpp | 13 ++-- 11 files changed, 244 insertions(+), 7 deletions(-) create mode 100644 data/widgets/ask_for_color_profile.xml diff --git a/data/strings/en.ini b/data/strings/en.ini index 515f77461..3d1209aa7 100644 --- a/data/strings/en.ini +++ b/data/strings/en.ini @@ -6,6 +6,11 @@ title = Warning - Important description = You are going to enter in "Advanced Mode". +[ask_for_color_profile] +title = Color Profile +sprite_with_profile = The sprite contains a color profile. +sprite_without_profile = The sprite doesn't contain a color profile. + [statusbar_tips] all_layers_are_locked = All selected layers are locked diff --git a/data/widgets/ask_for_color_profile.xml b/data/widgets/ask_for_color_profile.xml new file mode 100644 index 000000000..3389d9db9 --- /dev/null +++ b/data/widgets/ask_for_color_profile.xml @@ -0,0 +1,15 @@ + + + + + +