MBS FileMaker Plugin Example Databases

GraphicsMagick Sample

All examples are included with download of MBS FileMaker Plugin.

GraphicsMagick Sample.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts23
Value Lists0
Custom Functions0
Custom Menus32
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
GraphicsMagick
2 fields defined, 1 record
GraphicsMagick

Fields

Table Name: GraphicsMagick - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
imageNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      imagtextNormal, TextAuto-Enter: Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German

            Layout Objects: GraphicsMagick

            Regular Fields

            Field Name: GraphicsMagick::image
            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
            • Top: 38 pt
            • Left: 6 pt
            • Bottom: 397 pt
            • Right: 553 pt
            • Anchoring: Left, Top
            Field Format:
            • Edit Box
            Field Behavior:
            • Allow field to be entered: In Find mode, In Browse mode
            • Touch keyboard type: System Default
            • Go to next field using: Tab key
            No

            Field Name: GraphicsMagick::imagtext
            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
            • Top: 404 pt
            • Left: 6 pt
            • Bottom: 425 pt
            • Right: 553 pt
            • Anchoring: Left, Top
            Field Format:
            • Edit Box
            Field Behavior:
            • Allow field to be entered: In Find mode, In Browse mode
            • Touch keyboard type: System Default
            • Go to next field using: Tab key
            Yes

            Button Bars

            Button Bar PropertiesCoordinates
              Orientation:
            • vertical
            • Top: 51 pt
            • Left: 573 pt
            • Bottom: 384 pt
            • Right: 718 pt
            • Anchoring: Left, Top
            Button Segments
            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Show Width and Hight"
            • Top: 51 pt
            • Left: 573 pt
            • Bottom: 79 pt
            • Right: 718 pt
            Perform Script [ “ShowWidth and Height” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Rotation right"
            • Top: 79 pt
            • Left: 573 pt
            • Bottom: 107 pt
            • Right: 718 pt
            Perform Script [ “Rotate right” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Blur"
            • Top: 107 pt
            • Left: 573 pt
            • Bottom: 135 pt
            • Right: 718 pt
            Perform Script [ “Blur” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Charcoal"
            • Top: 135 pt
            • Left: 573 pt
            • Bottom: 162 pt
            • Right: 718 pt
            Perform Script [ “Charcoal” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Emboss"
            • Top: 162 pt
            • Left: 573 pt
            • Bottom: 190 pt
            • Right: 718 pt
            Perform Script [ “Emboss” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Mirror Vertical"
            • Top: 190 pt
            • Left: 573 pt
            • Bottom: 218 pt
            • Right: 718 pt
            Perform Script [ “Flip” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Mirror Horizontal"
            • Top: 218 pt
            • Left: 573 pt
            • Bottom: 246 pt
            • Right: 718 pt
            Perform Script [ “Flop” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Gray Scale"
            • Top: 246 pt
            • Left: 573 pt
            • Bottom: 273 pt
            • Right: 718 pt
            Perform Script [ “Grayscale” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Enhance"
            • Top: 273 pt
            • Left: 573 pt
            • Bottom: 301 pt
            • Right: 718 pt
            Perform Script [ “Enhance” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Equailize"
            • Top: 301 pt
            • Left: 573 pt
            • Bottom: 329 pt
            • Right: 718 pt
            Perform Script [ “Equalize” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Make Low Quality JPEG"
            • Top: 329 pt
            • Left: 573 pt
            • Bottom: 357 pt
            • Right: 718 pt
            Perform Script [ “Make Low Quality JPEG” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Solarize"
            • Top: 357 pt
            • Left: 573 pt
            • Bottom: 384 pt
            • Right: 718 pt
            Perform Script [ “Solarize” ]

            Scripts:


            Button Bar PropertiesCoordinates
              Orientation:
            • vertical
            • Top: 51 pt
            • Left: 732 pt
            • Bottom: 384 pt
            • Right: 877 pt
            • Anchoring: Left, Top
            Button Segments
            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Scale 50%"
            • Top: 51 pt
            • Left: 732 pt
            • Bottom: 79 pt
            • Right: 877 pt
            Perform Script [ “Scale” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Crop to left top quarter"
            • Top: 79 pt
            • Left: 732 pt
            • Bottom: 107 pt
            • Right: 877 pt
            Perform Script [ “Crop to left top quarter” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Raise"
            • Top: 107 pt
            • Left: 732 pt
            • Bottom: 135 pt
            • Right: 877 pt
            Perform Script [ “Raise” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Sharpen"
            • Top: 135 pt
            • Left: 732 pt
            • Bottom: 162 pt
            • Right: 877 pt
            Perform Script [ “Sharpen” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Frame"
            • Top: 162 pt
            • Left: 732 pt
            • Bottom: 190 pt
            • Right: 877 pt
            Perform Script [ “Frame” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Shave"
            • Top: 190 pt
            • Left: 732 pt
            • Bottom: 218 pt
            • Right: 877 pt
            Perform Script [ “Shave” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Extract Red Channel"
            • Top: 218 pt
            • Left: 732 pt
            • Bottom: 246 pt
            • Right: 877 pt
            Perform Script [ “Extract Red Channel” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Implode"
            • Top: 246 pt
            • Left: 732 pt
            • Bottom: 273 pt
            • Right: 877 pt
            Perform Script [ “Implode” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Negate"
            • Top: 273 pt
            • Left: 732 pt
            • Bottom: 301 pt
            • Right: 877 pt
            Perform Script [ “Negate” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Threshold"
            • Top: 301 pt
            • Left: 732 pt
            • Bottom: 329 pt
            • Right: 877 pt
            Perform Script [ “Threshold” ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Swirl 20"
            • Top: 329 pt
            • Left: 732 pt
            • Bottom: 357 pt
            • Right: 877 pt
            Perform Script [ “Swirl 20”; Parameter: 20 ]

            Scripts:

            Button PropertiesCoordinatesScript/Script Step
              Type:
            • Text:
              Label Calculations:
            • "Swirl 90"
            • Top: 357 pt
            • Left: 732 pt
            • Bottom: 384 pt
            • Right: 877 pt
            Perform Script [ “Swirl 20”; Parameter: 90 ]

            Scripts:


            Script Hierarchy

            ShowWidth and Height
            Scale
            Blur
            Rotate right
            Crop to left top quarter
            Charcoal
            Raise
            Emboss
            Sharpen
            Flip
            Frame
            Flop
            Shave
            Grayscale
            Enhance
            Extract Red Channel
            Implode
            Equalize
            Negate
            Make Low Quality JPEG
            Threshold
            Solarize
            Swirl 20

            Next Script: [Scale]
            Script NameShowWidth and Height
            Run script with full access privilegesOff
            Include In MenuYes
            Layouts that use this script
            Scripts that use this script
              Script Definition
              Script Steps
              • #Display Width and Height in the Custom Dialog
              • #Loade from container
              • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
              • #query width and height
              • Set Variable [ $Width; Value:MBS("GMImage.GetWidth";$Image) ]
              • Set Variable [ $Height; Value:MBS("GMImage.GetHeight";$Image) ]
              • #Release image
              • Set Variable [ $r; Value:MBS("GMImage.Free";$Image) ]
              • #Show Dialog
              • Show Custom Dialog [ Title: "Width and Height"; Message: $Width&" x "&$Height; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
              Fields used in this script
              Scripts used in this script
                Layouts used in this script
                  Tables used in this script
                  Table occurrences used by this script
                  Custom Functions used by this script
                    Custom menu set used by this script

                      Previous Script: [ShowWidth and Height]Next Script: [Blur]
                      Script NameScale
                      Run script with full access privilegesOff
                      Include In MenuYes
                      Layouts that use this script
                      Scripts that use this script
                        Script Definition
                        Script Steps
                        • #Scale the Image to 50%
                        • #Loade from container
                        • Set Variable [ $Image; Value: MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                        • #query width and height
                        • Set Variable [ $Width; Value:MBS("GMImage.GetWidth";$Image) ]
                        • Set Variable [ $Height; Value:MBS("GMImage.GetHeight";$Image) ]
                        • #Reduce size
                        • Set Variable [ $Width; Value:Round ( $width/2;0 ) ]
                        • Set Variable [ $Height; Value:Round ( $Height/2;0 ) ]
                        • Set Variable [ $Scale; Value:MBS("GMImage.Scale";$Image; $Width & "x" & $Height) ]
                        • #write to container
                        • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer"; $Image) ]
                        • Set Field [ GraphicsMagick::image; $result ]
                        • #Release image
                        • Set Variable [ $r; Value:MBS("GMImage.Free";$Image) ]
                        Fields used in this script
                        Scripts used in this script
                          Layouts used in this script
                            Tables used in this script
                            Table occurrences used by this script
                            Custom Functions used by this script
                              Custom menu set used by this script

                                Previous Script: [Scale]Next Script: [Rotate right]
                                Script NameBlur
                                Run script with full access privilegesOff
                                Include In MenuYes
                                Layouts that use this script
                                Scripts that use this script
                                  Script Definition
                                  Script Steps
                                  • #Apply the blur effect to the image
                                  • #Loade from container
                                  • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                  • #Apply blur effect
                                  • Set Variable [ $result; Value:MBS("GMImage.Blur";$Image;10;5) ]
                                  • #Write to container
                                  • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                  • Set Field [ GraphicsMagick::image; $result ]
                                  • #Release image
                                  • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                  Fields used in this script
                                  Scripts used in this script
                                    Layouts used in this script
                                      Tables used in this script
                                      Table occurrences used by this script
                                      Custom Functions used by this script
                                        Custom menu set used by this script

                                          Previous Script: [Blur]Next Script: [Crop to left top quarter]
                                          Script NameRotate right
                                          Run script with full access privilegesOff
                                          Include In MenuYes
                                          Layouts that use this script
                                          Scripts that use this script
                                            Script Definition
                                            Script Steps
                                            • #Rotates the image 90 degrees
                                            • #Loade from container
                                            • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                            • #Rotate 90 degrees
                                            • Set Variable [ $r; Value:MBS("GMImage.Rotate"; $Image;90) ]
                                            • #write to container
                                            • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer"; $Image) ]
                                            • Set Field [ GraphicsMagick::image; $result ]
                                            • #Release image
                                            • Set Variable [ $r; Value:MBS("GMImage.Free";$Image) ]
                                            Fields used in this script
                                            Scripts used in this script
                                              Layouts used in this script
                                                Tables used in this script
                                                Table occurrences used by this script
                                                Custom Functions used by this script
                                                  Custom menu set used by this script

                                                    Previous Script: [Rotate right]Next Script: [Charcoal]
                                                    Script NameCrop to left top quarter
                                                    Run script with full access privilegesOff
                                                    Include In MenuYes
                                                    Layouts that use this script
                                                    Scripts that use this script
                                                      Script Definition
                                                      Script Steps
                                                      • #Crop to left top quarter
                                                      • #Loade from container
                                                      • Set Variable [ $Image; Value: MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                      • #query width and height
                                                      • Set Variable [ $Width; Value:MBS("GMImage.GetWidth";$Image) ]
                                                      • Set Variable [ $Height; Value:MBS("GMImage.GetHeight";$Image) ]
                                                      • #Reduce size
                                                      • Set Variable [ $Width; Value:$width/2 ]
                                                      • Set Variable [ $Height; Value: $Height/2 ]
                                                      • #Crop
                                                      • Set Variable [ $Scale; Value:MBS("GMImage.Crop";$Image; $Width & "x" & $Height) ]
                                                      • #write to container
                                                      • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer"; $Image) ]
                                                      • Set Field [ GraphicsMagick::image; $result ]
                                                      • #Release image
                                                      • Set Variable [ $r; Value:MBS("GMImage.Free";$Image) ]
                                                      Fields used in this script
                                                      Scripts used in this script
                                                        Layouts used in this script
                                                          Tables used in this script
                                                          Table occurrences used by this script
                                                          Custom Functions used by this script
                                                            Custom menu set used by this script

                                                              Previous Script: [Crop to left top quarter]Next Script: [Raise]
                                                              Script NameCharcoal
                                                              Run script with full access privilegesOff
                                                              Include In MenuYes
                                                              Layouts that use this script
                                                              Scripts that use this script
                                                                Script Definition
                                                                Script Steps
                                                                • #Apply the charcoal effect to the image
                                                                • #Loade from container
                                                                • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                • #Apply blur effect
                                                                • Set Variable [ $result; Value:MBS("GMImage.Charcoal";$Image;10;5) ]
                                                                • #Write to container
                                                                • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                • Set Field [ GraphicsMagick::image; $result ]
                                                                • #Release image
                                                                • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                Fields used in this script
                                                                Scripts used in this script
                                                                  Layouts used in this script
                                                                    Tables used in this script
                                                                    Table occurrences used by this script
                                                                    Custom Functions used by this script
                                                                      Custom menu set used by this script

                                                                        Previous Script: [Charcoal]Next Script: [Emboss]
                                                                        Script NameRaise
                                                                        Run script with full access privilegesOff
                                                                        Include In MenuYes
                                                                        Layouts that use this script
                                                                        Scripts that use this script
                                                                          Script Definition
                                                                          Script Steps
                                                                          • #Apply the raise effect to the image (lighten or darken the edges of an image to give a 3-D raised or lowered effect)
                                                                          • #Loade from container
                                                                          • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                          • #Apply raise effect
                                                                          • Set Variable [ $result; Value:MBS("GMImage.Raise";$Image) ]
                                                                          • #Write to container
                                                                          • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                          • Set Field [ GraphicsMagick::image; $result ]
                                                                          • #Release image
                                                                          • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                          Fields used in this script
                                                                          Scripts used in this script
                                                                            Layouts used in this script
                                                                              Tables used in this script
                                                                              Table occurrences used by this script
                                                                              Custom Functions used by this script
                                                                                Custom menu set used by this script

                                                                                  Previous Script: [Raise]Next Script: [Sharpen]
                                                                                  Script NameEmboss
                                                                                  Run script with full access privilegesOff
                                                                                  Include In MenuYes
                                                                                  Layouts that use this script
                                                                                  Scripts that use this script
                                                                                    Script Definition
                                                                                    Script Steps
                                                                                    • #Apply the emboss effect to the image
                                                                                    • #Loade from container
                                                                                    • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                    • #Apply emboss effect
                                                                                    • Set Variable [ $result; Value:MBS("GMImage.Emboss";$Image;10;5) ]
                                                                                    • #Write to container
                                                                                    • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                    • Set Field [ GraphicsMagick::image; $result ]
                                                                                    • #Release image
                                                                                    • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                    Fields used in this script
                                                                                    Scripts used in this script
                                                                                      Layouts used in this script
                                                                                        Tables used in this script
                                                                                        Table occurrences used by this script
                                                                                        Custom Functions used by this script
                                                                                          Custom menu set used by this script

                                                                                            Previous Script: [Emboss]Next Script: [Flip]
                                                                                            Script NameSharpen
                                                                                            Run script with full access privilegesOff
                                                                                            Include In MenuYes
                                                                                            Layouts that use this script
                                                                                            Scripts that use this script
                                                                                              Script Definition
                                                                                              Script Steps
                                                                                              • #Sharpen pixels in image
                                                                                              • #Loade from container
                                                                                              • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                              • #Sharpen pixels in image
                                                                                              • Set Variable [ $result; Value:MBS("GMImage.Sharpen";$Image;10;5) ]
                                                                                              • #Write to container
                                                                                              • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                              • Set Field [ GraphicsMagick::image; $result ]
                                                                                              • #Release image
                                                                                              • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                              Fields used in this script
                                                                                              Scripts used in this script
                                                                                                Layouts used in this script
                                                                                                  Tables used in this script
                                                                                                  Table occurrences used by this script
                                                                                                  Custom Functions used by this script
                                                                                                    Custom menu set used by this script

                                                                                                      Previous Script: [Sharpen]Next Script: [Frame]
                                                                                                      Script NameFlip
                                                                                                      Run script with full access privilegesOff
                                                                                                      Include In MenuYes
                                                                                                      Layouts that use this script
                                                                                                      Scripts that use this script
                                                                                                        Script Definition
                                                                                                        Script Steps
                                                                                                        • #Mirror the image vertical
                                                                                                        • #Loade from container
                                                                                                        • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                        • #Flip image
                                                                                                        • Set Variable [ $result; Value:MBS("GMImage.Flip";$Image) ]
                                                                                                        • #Write to container
                                                                                                        • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                        • Set Field [ GraphicsMagick::image; $result ]
                                                                                                        • #Release image
                                                                                                        • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                        Fields used in this script
                                                                                                        Scripts used in this script
                                                                                                          Layouts used in this script
                                                                                                            Tables used in this script
                                                                                                            Table occurrences used by this script
                                                                                                            Custom Functions used by this script
                                                                                                              Custom menu set used by this script

                                                                                                                Previous Script: [Flip]Next Script: [Flop]
                                                                                                                Script NameFrame
                                                                                                                Run script with full access privilegesOff
                                                                                                                Include In MenuYes
                                                                                                                Layouts that use this script
                                                                                                                Scripts that use this script
                                                                                                                  Script Definition
                                                                                                                  Script Steps
                                                                                                                  • #Adds a frame to the image
                                                                                                                  • #Loade from container
                                                                                                                  • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                  • #Adds a frame to the image
                                                                                                                  • Set Variable [ $result; Value:MBS("GMImage.Frame";$Image) ]
                                                                                                                  • #Write to container
                                                                                                                  • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                  • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                  • #Release image
                                                                                                                  • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                  Fields used in this script
                                                                                                                  Scripts used in this script
                                                                                                                    Layouts used in this script
                                                                                                                      Tables used in this script
                                                                                                                      Table occurrences used by this script
                                                                                                                      Custom Functions used by this script
                                                                                                                        Custom menu set used by this script

                                                                                                                          Previous Script: [Frame]Next Script: [Shave]
                                                                                                                          Script NameFlop
                                                                                                                          Run script with full access privilegesOff
                                                                                                                          Include In MenuYes
                                                                                                                          Layouts that use this script
                                                                                                                          Scripts that use this script
                                                                                                                            Script Definition
                                                                                                                            Script Steps
                                                                                                                            • #Mirror the image horizontal
                                                                                                                            • #Loade from container
                                                                                                                            • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                            • #Flop image
                                                                                                                            • Set Variable [ $result; Value:MBS("GMImage.Flop";$Image) ]
                                                                                                                            • #Write to container
                                                                                                                            • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                            • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                            • #Release image
                                                                                                                            • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                            Fields used in this script
                                                                                                                            Scripts used in this script
                                                                                                                              Layouts used in this script
                                                                                                                                Tables used in this script
                                                                                                                                Table occurrences used by this script
                                                                                                                                Custom Functions used by this script
                                                                                                                                  Custom menu set used by this script

                                                                                                                                    Previous Script: [Flop]Next Script: [Grayscale]
                                                                                                                                    Script NameShave
                                                                                                                                    Run script with full access privilegesOff
                                                                                                                                    Include In MenuYes
                                                                                                                                    Layouts that use this script
                                                                                                                                    Scripts that use this script
                                                                                                                                      Script Definition
                                                                                                                                      Script Steps
                                                                                                                                      • #Shave pixels from image edges
                                                                                                                                      • #Loade from container
                                                                                                                                      • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                                      • #Shaves an image
                                                                                                                                      • Set Variable [ $result; Value:MBS("GMImage.Shave";$Image; "10x10") ]
                                                                                                                                      • #Write to container
                                                                                                                                      • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                                      • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                                      • #Release image
                                                                                                                                      • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                                      Fields used in this script
                                                                                                                                      Scripts used in this script
                                                                                                                                        Layouts used in this script
                                                                                                                                          Tables used in this script
                                                                                                                                          Table occurrences used by this script
                                                                                                                                          Custom Functions used by this script
                                                                                                                                            Custom menu set used by this script

                                                                                                                                              Previous Script: [Shave]Next Script: [Enhance]
                                                                                                                                              Script NameGrayscale
                                                                                                                                              Run script with full access privilegesOff
                                                                                                                                              Include In MenuYes
                                                                                                                                              Layouts that use this script
                                                                                                                                              Scripts that use this script
                                                                                                                                                Script Definition
                                                                                                                                                Script Steps
                                                                                                                                                • #Convert to grayscale
                                                                                                                                                • #Loade from container
                                                                                                                                                • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                                                • #Grayscale
                                                                                                                                                • Set Variable [ $result; Value:MBS("GMImage.SetType";$Image; 2) ]
                                                                                                                                                • #Write to container
                                                                                                                                                • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                                                • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                                                • #Release image
                                                                                                                                                • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                                                Fields used in this script
                                                                                                                                                Scripts used in this script
                                                                                                                                                  Layouts used in this script
                                                                                                                                                    Tables used in this script
                                                                                                                                                    Table occurrences used by this script
                                                                                                                                                    Custom Functions used by this script
                                                                                                                                                      Custom menu set used by this script

                                                                                                                                                        Previous Script: [Grayscale]Next Script: [Extract Red Channel]
                                                                                                                                                        Script NameEnhance
                                                                                                                                                        Run script with full access privilegesOff
                                                                                                                                                        Include In MenuYes
                                                                                                                                                        Layouts that use this script
                                                                                                                                                        Scripts that use this script
                                                                                                                                                          Script Definition
                                                                                                                                                          Script Steps
                                                                                                                                                          • #minimize noise of the image
                                                                                                                                                          • #Loade from container
                                                                                                                                                          • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                                                          • #minimize noise
                                                                                                                                                          • Set Variable [ $result; Value:MBS("GMImage.Enhance";$Image) ]
                                                                                                                                                          • #Write to container
                                                                                                                                                          • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                                                          • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                                                          • #Release image
                                                                                                                                                          • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                                                          Fields used in this script
                                                                                                                                                          Scripts used in this script
                                                                                                                                                            Layouts used in this script
                                                                                                                                                              Tables used in this script
                                                                                                                                                              Table occurrences used by this script
                                                                                                                                                              Custom Functions used by this script
                                                                                                                                                                Custom menu set used by this script

                                                                                                                                                                  Previous Script: [Enhance]Next Script: [Implode]
                                                                                                                                                                  Script NameExtract Red Channel
                                                                                                                                                                  Run script with full access privilegesOff
                                                                                                                                                                  Include In MenuYes
                                                                                                                                                                  Layouts that use this script
                                                                                                                                                                  Scripts that use this script
                                                                                                                                                                    Script Definition
                                                                                                                                                                    Script Steps
                                                                                                                                                                    • #Extract red from image.
                                                                                                                                                                    • #Loade from container
                                                                                                                                                                    • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                                                                    • #Extract red from image
                                                                                                                                                                    • Set Variable [ $result; Value:MBS("GMImage.Channel";$Image; 1) ]
                                                                                                                                                                    • #Write to container
                                                                                                                                                                    • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                                                                    • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                                                                    • #Release image
                                                                                                                                                                    • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                                                                    Fields used in this script
                                                                                                                                                                    Scripts used in this script
                                                                                                                                                                      Layouts used in this script
                                                                                                                                                                        Tables used in this script
                                                                                                                                                                        Table occurrences used by this script
                                                                                                                                                                        Custom Functions used by this script
                                                                                                                                                                          Custom menu set used by this script

                                                                                                                                                                            Previous Script: [Extract Red Channel]Next Script: [Equalize]
                                                                                                                                                                            Script NameImplode
                                                                                                                                                                            Run script with full access privilegesOff
                                                                                                                                                                            Include In MenuYes
                                                                                                                                                                            Layouts that use this script
                                                                                                                                                                            Scripts that use this script
                                                                                                                                                                              Script Definition
                                                                                                                                                                              Script Steps
                                                                                                                                                                              • #Apply the implode effect to the image
                                                                                                                                                                              • #Loade from container
                                                                                                                                                                              • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                                                                              • #Apply the implode effect
                                                                                                                                                                              • Set Variable [ $result; Value:MBS("GMImage.Implode";$Image; 5) ]
                                                                                                                                                                              • #Write to container
                                                                                                                                                                              • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                                                                              • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                                                                              • #Release image
                                                                                                                                                                              • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                                                                              Fields used in this script
                                                                                                                                                                              Scripts used in this script
                                                                                                                                                                                Layouts used in this script
                                                                                                                                                                                  Tables used in this script
                                                                                                                                                                                  Table occurrences used by this script
                                                                                                                                                                                  Custom Functions used by this script
                                                                                                                                                                                    Custom menu set used by this script

                                                                                                                                                                                      Previous Script: [Implode]Next Script: [Negate]
                                                                                                                                                                                      Script NameEqualize
                                                                                                                                                                                      Run script with full access privilegesOff
                                                                                                                                                                                      Include In MenuYes
                                                                                                                                                                                      Layouts that use this script
                                                                                                                                                                                      Scripts that use this script
                                                                                                                                                                                        Script Definition
                                                                                                                                                                                        Script Steps
                                                                                                                                                                                        • #Apply equalize effect to an image
                                                                                                                                                                                        • #Loade from container
                                                                                                                                                                                        • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                                                                                        • #histogram equalization
                                                                                                                                                                                        • Set Variable [ $result; Value:MBS("GMImage.Equalize";$Image) ]
                                                                                                                                                                                        • #Write to container
                                                                                                                                                                                        • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                                                                                        • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                                                                                        • #Release image
                                                                                                                                                                                        • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                                                                                        Fields used in this script
                                                                                                                                                                                        Scripts used in this script
                                                                                                                                                                                          Layouts used in this script
                                                                                                                                                                                            Tables used in this script
                                                                                                                                                                                            Table occurrences used by this script
                                                                                                                                                                                            Custom Functions used by this script
                                                                                                                                                                                              Custom menu set used by this script

                                                                                                                                                                                                Previous Script: [Equalize]Next Script: [Make Low Quality JPEG]
                                                                                                                                                                                                Script NameNegate
                                                                                                                                                                                                Run script with full access privilegesOff
                                                                                                                                                                                                Include In MenuYes
                                                                                                                                                                                                Layouts that use this script
                                                                                                                                                                                                Scripts that use this script
                                                                                                                                                                                                  Script Definition
                                                                                                                                                                                                  Script Steps
                                                                                                                                                                                                  • #Apply negating effect to an image
                                                                                                                                                                                                  • #Loade from container
                                                                                                                                                                                                  • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                                                                                                  • #negate the image
                                                                                                                                                                                                  • Set Variable [ $result; Value:MBS("GMImage.Negate";$Image) ]
                                                                                                                                                                                                  • #Write to container
                                                                                                                                                                                                  • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                                                                                                  • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                                                                                                  • #Release image
                                                                                                                                                                                                  • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                                                                                                  Fields used in this script
                                                                                                                                                                                                  Scripts used in this script
                                                                                                                                                                                                    Layouts used in this script
                                                                                                                                                                                                      Tables used in this script
                                                                                                                                                                                                      Table occurrences used by this script
                                                                                                                                                                                                      Custom Functions used by this script
                                                                                                                                                                                                        Custom menu set used by this script

                                                                                                                                                                                                          Previous Script: [Negate]Next Script: [Threshold]
                                                                                                                                                                                                          Script NameMake Low Quality JPEG
                                                                                                                                                                                                          Run script with full access privilegesOff
                                                                                                                                                                                                          Include In MenuYes
                                                                                                                                                                                                          Layouts that use this script
                                                                                                                                                                                                          Scripts that use this script
                                                                                                                                                                                                            Script Definition
                                                                                                                                                                                                            Script Steps
                                                                                                                                                                                                            • #Sets the JPEG/MIFF/PNG compression level
                                                                                                                                                                                                            • #Loade from container
                                                                                                                                                                                                            • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                                                                                                            • #Sets compression level
                                                                                                                                                                                                            • Set Variable [ $result; Value:MBS("GMImage.SetQuality";$Image; 5) ]
                                                                                                                                                                                                            • #Write to container
                                                                                                                                                                                                            • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                                                                                                            • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                                                                                                            • #Release image
                                                                                                                                                                                                            • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                                                                                                            Fields used in this script
                                                                                                                                                                                                            Scripts used in this script
                                                                                                                                                                                                              Layouts used in this script
                                                                                                                                                                                                                Tables used in this script
                                                                                                                                                                                                                Table occurrences used by this script
                                                                                                                                                                                                                Custom Functions used by this script
                                                                                                                                                                                                                  Custom menu set used by this script

                                                                                                                                                                                                                    Previous Script: [Make Low Quality JPEG]Next Script: [Solarize]
                                                                                                                                                                                                                    Script NameThreshold
                                                                                                                                                                                                                    Run script with full access privilegesOff
                                                                                                                                                                                                                    Include In MenuYes
                                                                                                                                                                                                                    Layouts that use this script
                                                                                                                                                                                                                    Scripts that use this script
                                                                                                                                                                                                                      Script Definition
                                                                                                                                                                                                                      Script Steps
                                                                                                                                                                                                                      • #Applies a threshold on the image (below threshold becomes black, above threshold becomes white)
                                                                                                                                                                                                                      • #Loade from container
                                                                                                                                                                                                                      • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                                                                                                                      • #Applies Threshold image channels
                                                                                                                                                                                                                      • Set Variable [ $result; Value:MBS("GMImage.Threshold";$Image) ]
                                                                                                                                                                                                                      • #Write to container
                                                                                                                                                                                                                      • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                                                                                                                      • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                                                                                                                      • #Release image
                                                                                                                                                                                                                      • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                                                                                                                      Fields used in this script
                                                                                                                                                                                                                      Scripts used in this script
                                                                                                                                                                                                                        Layouts used in this script
                                                                                                                                                                                                                          Tables used in this script
                                                                                                                                                                                                                          Table occurrences used by this script
                                                                                                                                                                                                                          Custom Functions used by this script
                                                                                                                                                                                                                            Custom menu set used by this script

                                                                                                                                                                                                                              Previous Script: [Threshold]Next Script: [Swirl 20]
                                                                                                                                                                                                                              Script NameSolarize
                                                                                                                                                                                                                              Run script with full access privilegesOff
                                                                                                                                                                                                                              Include In MenuYes
                                                                                                                                                                                                                              Layouts that use this script
                                                                                                                                                                                                                              Scripts that use this script
                                                                                                                                                                                                                                Script Definition
                                                                                                                                                                                                                                Script Steps
                                                                                                                                                                                                                                • #Apply the solarize effect to an image(similar to effect seen when exposing a photographic film to light during the development process)
                                                                                                                                                                                                                                • #Loade from container
                                                                                                                                                                                                                                • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                                                                                                                                • #Apply solarize effect
                                                                                                                                                                                                                                • Set Variable [ $result; Value:MBS("GMImage.Solarize";$Image) ]
                                                                                                                                                                                                                                • #Write to container
                                                                                                                                                                                                                                • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                                                                                                                                • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                                                                                                                                • #Release image
                                                                                                                                                                                                                                • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                                                                                                                                Fields used in this script
                                                                                                                                                                                                                                Scripts used in this script
                                                                                                                                                                                                                                  Layouts used in this script
                                                                                                                                                                                                                                    Tables used in this script
                                                                                                                                                                                                                                    Table occurrences used by this script
                                                                                                                                                                                                                                    Custom Functions used by this script
                                                                                                                                                                                                                                      Custom menu set used by this script

                                                                                                                                                                                                                                        Previous Script: [Solarize]
                                                                                                                                                                                                                                        Script NameSwirl 20
                                                                                                                                                                                                                                        Run script with full access privilegesOff
                                                                                                                                                                                                                                        Include In MenuYes
                                                                                                                                                                                                                                        Layouts that use this script
                                                                                                                                                                                                                                        Scripts that use this script
                                                                                                                                                                                                                                          Script Definition
                                                                                                                                                                                                                                          Script Steps
                                                                                                                                                                                                                                          • #Apply the swirl effect(image pixels are rotated by degrees)
                                                                                                                                                                                                                                          • #Loade from container
                                                                                                                                                                                                                                          • Set Variable [ $Image; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick::image) ]
                                                                                                                                                                                                                                          • #Apply swirl effect
                                                                                                                                                                                                                                          • Set Variable [ $result; Value:MBS("GMImage.Swirl"; $Image; Get(ScriptParameter)) ]
                                                                                                                                                                                                                                          • #Write to container
                                                                                                                                                                                                                                          • Set Variable [ $result; Value:MBS("GMImage.WriteToPNGContainer";$Image) ]
                                                                                                                                                                                                                                          • Set Field [ GraphicsMagick::image; $result ]
                                                                                                                                                                                                                                          • #Release image
                                                                                                                                                                                                                                          • Set Variable [ $r; Value:MBS("GMImage.Free"; $Image) ]
                                                                                                                                                                                                                                          Fields used in this script
                                                                                                                                                                                                                                          Scripts used in this script
                                                                                                                                                                                                                                            Layouts used in this script
                                                                                                                                                                                                                                              Tables used in this script
                                                                                                                                                                                                                                              Table occurrences used by this script
                                                                                                                                                                                                                                              Custom Functions used by this script
                                                                                                                                                                                                                                                Custom menu set used by this script

                                                                                                                                                                                                                                                  Download example: GraphicsMagick Sample

                                                                                                                                                                                                                                                  Used functions:




                                                                                                                                                                                                                                                  Links
                                                                                                                                                                                                                                                  MBS Xojo Plugins