Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Here is a snippet we showed on the FMTraining live stream yesterday and it may be interesting for everyone here:

 

Set Variable [ $image ; Value: MBS( "GMImage.NewFromContainer"; $input) ] 
If [ MBS("IsError") = 0 ] 
	# limit size to maximum 1000 pixels in width
	Set Variable [ $scale ; Value: MBS("GMImage.Scale";$Image; "1000>") ] 
	# remove metadata
	Set Variable [ $r ; Value: MBS( "GMImage.SetProfile"; $image; "IPTC"; "" ) ] 
	Set Variable [ $r ; Value: MBS( "GMImage.SetProfile"; $image; "EXIF"; "" ) ] 
	Set Variable [ $r ; Value: MBS( "GMImage.SetProfile"; $image; "XMP"; "" ) ] 
	# save
	Set Variable [ $NewImage ; Value: MBS("GMImage.WriteToJPEGContainer"; $Image) ] 
	If [ MBS("IsError") = 0 ] 
		Set Field [ Get Preview::Preview ; $NewImage ] 
		Set Field [ Get Preview::Made using ; "GraphicsMagick" ] 
		Set Variable [ $r ; Value: MBS("GMimage.Release";$Image) ] 
		Exit Script [ Text Result:    ] 
	End If
	Set Variable [ $r ; Value: MBS("GMimage.Release";$Image) ] 
End If

 

As you see we load an image from a container field or a variable with a container value. Then we scale it to a maximum width of 1000 pixels. We remvoe metadata and then write out a JPEG image.

We could add a call to GMImage.SetDensity in order to change resolution metadata if needed.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.