[gimp] Bug 156858 - Add option menu of standard aspect ratios to ratio-using tools
- From: Alexandre Prokoudine <aprokoudine src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 156858 - Add option menu of standard aspect ratios to ratio-using tools
- Date: Sun, 11 Jun 2017 23:06:31 +0000 (UTC)
commit 36316e20b911b427065f4ef622d215ad700ca09f
Author: Alexandre Prokoudine <alexandre prokoudine gmail com>
Date: Mon Jun 12 02:04:34 2017 +0300
Bug 156858 - Add option menu of standard aspect ratios to ratio-using tools
Add 4x3 Landscape/Portrait, 3x2 Landscape/Portrait, 16x10, 16x9, and Square presets
data/tool-presets/Crop/16_10.gtp | 24 ++++++++++++++++++++++++
data/tool-presets/Crop/16_9.gtp | 24 ++++++++++++++++++++++++
data/tool-presets/Crop/3_2-Landscape.gtp | 24 ++++++++++++++++++++++++
data/tool-presets/Crop/3_2-Portrait.gtp | 24 ++++++++++++++++++++++++
data/tool-presets/Crop/4_3-Landscape.gtp | 24 ++++++++++++++++++++++++
data/tool-presets/Crop/4_3-Portrait.gtp | 24 ++++++++++++++++++++++++
data/tool-presets/Crop/Makefile.am | 14 ++++++++++++++
data/tool-presets/Crop/Square.gtp | 22 ++++++++++++++++++++++
data/tool-presets/Makefile.am | 1 +
9 files changed, 181 insertions(+), 0 deletions(-)
---
diff --git a/data/tool-presets/Crop/16_10.gtp b/data/tool-presets/Crop/16_10.gtp
new file mode 100644
index 0000000..d0f73a2
--- /dev/null
+++ b/data/tool-presets/Crop/16_10.gtp
@@ -0,0 +1,24 @@
+# GIMP tool preset file
+
+(icon-name "gimp-tool-crop")
+(name "16×10")
+(tool-options "GimpCropOptions"
+ (aspect-denominator 10.000000)
+ (aspect-numerator 16.000000)
+ (desired-fixed-size-height 1280.000000)
+ (desired-fixed-size-width 800.000000)
+ (desired-fixed-width 1280.000000)
+ (fixed-rule-active yes)
+ (overridden-fixed-aspect yes)
+ (overridden-fixed-size yes)
+ (tool "gimp-crop-tool"))
+(use-fg-bg no)
+(use-brush no)
+(use-dynamics no)
+(use-mypaint-brush no)
+(use-gradient no)
+(use-pattern no)
+(use-palette no)
+(use-font no)
+
+# end of GIMP tool preset file
diff --git a/data/tool-presets/Crop/16_9.gtp b/data/tool-presets/Crop/16_9.gtp
new file mode 100644
index 0000000..53b397b
--- /dev/null
+++ b/data/tool-presets/Crop/16_9.gtp
@@ -0,0 +1,24 @@
+# GIMP tool preset file
+
+(icon-name "gimp-tool-crop")
+(name "16×9")
+(tool-options "GimpCropOptions"
+ (aspect-denominator 9.000000)
+ (aspect-numerator 16.000000)
+ (desired-fixed-size-height 1280.000000)
+ (desired-fixed-size-width 720.000000)
+ (desired-fixed-width 1290.000000)
+ (fixed-rule-active yes)
+ (overridden-fixed-aspect yes)
+ (overridden-fixed-size yes)
+ (tool "gimp-crop-tool"))
+(use-fg-bg no)
+(use-brush no)
+(use-dynamics no)
+(use-mypaint-brush no)
+(use-gradient no)
+(use-pattern no)
+(use-palette no)
+(use-font no)
+
+# end of GIMP tool preset file
diff --git a/data/tool-presets/Crop/3_2-Landscape.gtp b/data/tool-presets/Crop/3_2-Landscape.gtp
new file mode 100644
index 0000000..ef21999
--- /dev/null
+++ b/data/tool-presets/Crop/3_2-Landscape.gtp
@@ -0,0 +1,24 @@
+# GIMP tool preset file
+
+(icon-name "gimp-tool-crop")
+(name "3×2 Landscape")
+(tool-options "GimpCropOptions"
+ (aspect-denominator 2.000000)
+ (aspect-numerator 3.000000)
+ (desired-fixed-size-height 200.000000)
+ (desired-fixed-size-width 300.000000)
+ (desired-fixed-width 300.000000)
+ (fixed-rule-active yes)
+ (overridden-fixed-aspect yes)
+ (overridden-fixed-size yes)
+ (tool "gimp-crop-tool"))
+(use-fg-bg no)
+(use-brush no)
+(use-dynamics no)
+(use-mypaint-brush no)
+(use-gradient no)
+(use-pattern no)
+(use-palette no)
+(use-font no)
+
+# end of GIMP tool preset file
diff --git a/data/tool-presets/Crop/3_2-Portrait.gtp b/data/tool-presets/Crop/3_2-Portrait.gtp
new file mode 100644
index 0000000..a729899
--- /dev/null
+++ b/data/tool-presets/Crop/3_2-Portrait.gtp
@@ -0,0 +1,24 @@
+# GIMP tool preset file
+
+(icon-name "gimp-tool-crop")
+(name "3×2 Portrait")
+(tool-options "GimpCropOptions"
+ (aspect-denominator 3.000000)
+ (aspect-numerator 2.000000)
+ (desired-fixed-size-height 300.000000)
+ (desired-fixed-size-width 200.000000)
+ (desired-fixed-width 200.000000)
+ (fixed-rule-active yes)
+ (overridden-fixed-aspect yes)
+ (overridden-fixed-size yes)
+ (tool "gimp-crop-tool"))
+(use-fg-bg no)
+(use-brush no)
+(use-dynamics no)
+(use-mypaint-brush no)
+(use-gradient no)
+(use-pattern no)
+(use-palette no)
+(use-font no)
+
+# end of GIMP tool preset file
diff --git a/data/tool-presets/Crop/4_3-Landscape.gtp b/data/tool-presets/Crop/4_3-Landscape.gtp
new file mode 100644
index 0000000..7ca7799
--- /dev/null
+++ b/data/tool-presets/Crop/4_3-Landscape.gtp
@@ -0,0 +1,24 @@
+# GIMP tool preset file
+
+(icon-name "gimp-tool-crop")
+(name "4×3 Landscape")
+(tool-options "GimpCropOptions"
+ (aspect-denominator 3.000000)
+ (aspect-numerator 4.000000)
+ (desired-fixed-size-height 300.000000)
+ (desired-fixed-size-width 400.000000)
+ (desired-fixed-width 400.000000)
+ (fixed-rule-active yes)
+ (overridden-fixed-aspect yes)
+ (overridden-fixed-size yes)
+ (tool "gimp-crop-tool"))
+(use-fg-bg no)
+(use-brush no)
+(use-dynamics no)
+(use-mypaint-brush no)
+(use-gradient no)
+(use-pattern no)
+(use-palette no)
+(use-font no)
+
+# end of GIMP tool preset file
diff --git a/data/tool-presets/Crop/4_3-Portrait.gtp b/data/tool-presets/Crop/4_3-Portrait.gtp
new file mode 100644
index 0000000..d2a68a9
--- /dev/null
+++ b/data/tool-presets/Crop/4_3-Portrait.gtp
@@ -0,0 +1,24 @@
+# GIMP tool preset file
+
+(icon-name "gimp-tool-crop")
+(name "4×3 Portrait")
+(tool-options "GimpCropOptions"
+ (aspect-denominator 4.000000)
+ (aspect-numerator 3.000000)
+ (desired-fixed-size-height 400.000000)
+ (desired-fixed-size-width 300.000000)
+ (desired-fixed-width 300.000000)
+ (fixed-rule-active yes)
+ (overridden-fixed-aspect yes)
+ (overridden-fixed-size yes)
+ (tool "gimp-crop-tool"))
+(use-fg-bg no)
+(use-brush no)
+(use-dynamics no)
+(use-mypaint-brush no)
+(use-gradient no)
+(use-pattern no)
+(use-palette no)
+(use-font no)
+
+# end of GIMP tool preset file
diff --git a/data/tool-presets/Crop/Makefile.am b/data/tool-presets/Crop/Makefile.am
new file mode 100644
index 0000000..cbb0298
--- /dev/null
+++ b/data/tool-presets/Crop/Makefile.am
@@ -0,0 +1,14 @@
+## Makefile.am for gimp/data/tool-presets/Crop
+
+toolpresetspaintdatadir = $(gimpdatadir)/tool-presets/Crop
+
+toolpresetspaintdata_DATA = \
+ 16_10.gtp \
+ 16_9.gtp \
+ 3_2-Landscape.gtp \
+ 3_2-Portrait.gtp \
+ 4_3-Landscape.gtp \
+ 4_3-Portrait.gtp \
+ Square.gtp
+
+EXTRA_DIST = $(toolpresetspaintdata_DATA)
diff --git a/data/tool-presets/Crop/Square.gtp b/data/tool-presets/Crop/Square.gtp
new file mode 100644
index 0000000..251278e
--- /dev/null
+++ b/data/tool-presets/Crop/Square.gtp
@@ -0,0 +1,22 @@
+# GIMP tool preset file
+
+(icon-name "gimp-tool-crop")
+(name "Square")
+(tool-options "GimpCropOptions"
+ (desired-fixed-size-height 400.000000)
+ (desired-fixed-size-width 400.000000)
+ (desired-fixed-width 400.000000)
+ (fixed-rule-active yes)
+ (overridden-fixed-aspect yes)
+ (overridden-fixed-size yes)
+ (tool "gimp-crop-tool"))
+(use-fg-bg no)
+(use-brush no)
+(use-dynamics no)
+(use-mypaint-brush no)
+(use-gradient no)
+(use-pattern no)
+(use-palette no)
+(use-font no)
+
+# end of GIMP tool preset file
diff --git a/data/tool-presets/Makefile.am b/data/tool-presets/Makefile.am
index 7a5fd31..2bf04b2 100644
--- a/data/tool-presets/Makefile.am
+++ b/data/tool-presets/Makefile.am
@@ -1,6 +1,7 @@
## Makefile.am for gimp/data/tool-presets
SUBDIRS = \
+ Crop \
FX \
Paint \
Selection \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]