CGImageSource.ClearProperties
-----------------------------

Clears all properties.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CGImageSource](component_CGImageSource.md) | [9.4](newinversion94.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "CGImageSource.ClearProperties"; Ref ) 

**MBS**( **"CGImageSource.ClearProperties";** /\* Clears all properties. \*/  
**$Ref**) /\* The image source reference number returned by [CGImageSource.CreateWithData](CGImageSourceCreateWithData.md), [CGImageSource.CreateWithPath](CGImageSourceCreateWithPath.md) or [CGImageSource.CreateWithURL](CGImageSourceCreateWithURL.md) \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Ref | The image source reference number returned by [CGImageSource.CreateWithData](CGImageSourceCreateWithData.md), [CGImageSource.CreateWithPath](CGImageSourceCreateWithPath.md) or [CGImageSource.CreateWithURL](CGImageSourceCreateWithURL.md) | $ref |

### Result

Returns OK or error.

### Description

Clears all properties.  
Allows you to save image with empty properties, so no EXIF/IPTC data is stored.  
### See also

- [CGImageSource.CreateWithData](CGImageSourceCreateWithData.md)
- [CGImageSource.CreateWithPath](CGImageSourceCreateWithPath.md)
- [CGImageSource.CreateWithURL](CGImageSourceCreateWithURL.md)
- [CGImageSource.HasProperty](CGImageSourceHasProperty.md)
- [CGImageSource.Properties](CGImageSourceProperties.md)
- [CGImageSource.SetProperty](CGImageSourceSetProperty.md)

### Release notes

- **Version 9.4**
    - Added [CGImageSource.ClearProperties](http://www.mbsplugins.eu/CGImageSourceClearProperties.shtml) function.

### Blog Entries

- [Neue Funktionen des MBS FileMaker Plugin 9.4](https://www.mbsplugins.de/archive/2019-10-05/Neue_Funktionen_des_MBS_FileMa/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.4pr6](https://www.mbsplugins.de/archive/2019-09-09/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 5th September 2019 , last changed 5th September 2019

  
[CFunction.SetTag](CFunctionSetTag.md) - [CGImageSource.Count](CGImageSourceCount.md)

[HTML Version](CGImageSourceClearProperties.shtml)