« GraphicsMagick in Fil… | Home | Unblock menus while t… »

GraphicsMagick in FileMaker, part 12

12 of 24

Welcome to the 12th door of our advent calendar. In this advent calendar I would like to take you on a journey through the GraphicsMagick component in December. Every day I will introduce you to one or more functions from this component. In this component you will find functions with which you can analyze images, convert them, change them with filters, draw them and much much more. In the end, you too can take the magic of GraphicsMagick to your images. I wish you a lot of fun in the process.

The GraphicsMagick also provides many effects that we can apply to our images. In the Advent calendar we would like to present a few of these effects. Today I will show you the effect that turns your image into an oil painting. For this we use the function GMImage.OilPaint. Here we have the original image that we want to change.

If we pass only the image reference to the GMImage.OilPaint function,

 Set Variable [ $r ; Value: MBS( "GMImage.OilPaint";$GM) ] 
our image will look like this.

Small circles are drawn around the pixels. This creates this oil dab effect. But you can choose the brush thickness, that is the radii of the circles, yourself.

 Set Variable [ $r ; Value: MBS( "GMImage.OilPaint";$GM; 30 ) ] 

Here you can see the effect in the different strengths 5, 10 and 30.

The effect is of course also very dependent on the image size due to the radius. The image with double side length with a value of 10 looks different like value 10 in a smaller image and is more similar to the small image with a radius of 5.

So, for example, make a pretty big oil painting from a photo of you and give it as a gift to your family. I wish you a lot of fun with it.

Previous day   Next day

12 12 22 - 07:55

Start Chat