Platforms to show: All Mac Windows Linux Cross-Platform
JPEGImporterMBS.AllowDamaged as boolean
Function:
whether you want damaged pictures to be returned.
Notes:
If AllowDamaged is false, nil will be returned if the picture is damaged.
Default value is false.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
If AllowDamaged is false, nil will be returned if the picture is damaged.
Default value is false.
(Read and Write property)
JPEGImporterMBS.BlockSmoothing as Boolean
Function:
Whether to do interblock smoothing.
Notes:
Default value is true.
This setting is relevant only when decoding a progressive JPEG image. During the first DC-only scan, block smoothing provides a very "fuzzy" look instead of the very "blocky" look seen without it; which is better seems a matter of personal taste. But block smoothing is nearly always a win during later stages, especially when decoding a successive-approximation image: smoothing helps to hide the slight blockiness that otherwise shows up on smooth gradients until the lowest coefficient bits are sent.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 12.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Default value is true.
This setting is relevant only when decoding a progressive JPEG image. During the first DC-only scan, block smoothing provides a very "fuzzy" look instead of the very "blocky" look seen without it; which is better seems a matter of personal taste. But block smoothing is nearly always a win during later stages, especially when decoding a successive-approximation image: smoothing helps to hide the slight blockiness that otherwise shows up on smooth gradients until the lowest coefficient bits are sent.
(Read and Write property)
JPEGImporterMBS.CMYK as Boolean
Function:
Whether the decompressor has imported the picture as a CMYK image into a memoryblock.
Example:
Notes:
This property sets the Mode property to ModeCMYK.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim g as FolderItem
dim ji as JPEGImporterMBS
g=getFolderItem("a_auf")
ji=new JPEGImporterMBS
ji.File=g
if ji.InitJPEG then
if ji.CMYK then
MsgBox "CMYK"
else
MsgBox "not"
end if
end if
This property sets the Mode property to ModeCMYK.
(Read and Write property)
JPEGImporterMBS.ColorComponentCount as Integer
Function:
The number of color components.
Notes:
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
1 | Grayscale |
3 | RGB |
4 | CMYK |
JPEGImporterMBS.ColorSpace as Integer
Function:
The color space of the image.
Example:
Notes:
See also the Colorspace constants.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 13.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim j as new JPEGImporterMBS
j.File = SpecialFolder.Desktop.Child("cmyk.jpg")
if j.InitJPEG then
Select case j.ColorSpace
case j.ColorSpaceCMYK, j.ColorSpaceYCCK
MsgBox "CMYK"
case j.ColorSpaceRGB, j.ColorSpaceYCbCr
MsgBox "RGB"
case j.ColorSpaceGrayScale
MsgBox "Gray"
else
MsgBox "unknown? "+str(j.ColorSpace)
end Select
j.FinishJPEG
end if
See also the Colorspace constants.
(Read and Write property)
JPEGImporterMBS.CurrentDepth as Integer
Function:
The depth of the picture property.
Notes:
In the current implementation always 32bit.
0 if the loading of the picture failed.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
In the current implementation always 32bit.
0 if the loading of the picture failed.
(Read and Write property)
JPEGImporterMBS.data as string
Function:
The source string.
Notes:
If file is nil, the compressed data is taken from this property.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
If file is nil, the compressed data is taken from this property.
(Read and Write property)
JPEGImporterMBS.ErrorMessage as string
Function:
The last error message reported.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: (Read and Write property)
JPEGImporterMBS.ExifData as String
Function:
The exif data stored in the file.
Example:
Notes:
Only used when ReadExifData is set to true before you import the image.
The string contains the binary content of a exif data on disc.
Value is "" if no data was found.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim j as JPEGImporterMBS
dim f as FolderItem
f=SpecialFolder.Desktop.Child("test.jpg")
j=new JPEGImporterMBS
j.ReadExifData=true // needed to fill ExifData property
// do the import
dim data as string = j.ExifData
// work with data
Only used when ReadExifData is set to true before you import the image.
The string contains the binary content of a exif data on disc.
Value is "" if no data was found.
(Read and Write property)
JPEGImporterMBS.ExifOrientation as Integer
Function:
Queries orientation from EXIF data.
Notes:
ReadExifData property must be set earlier to have the import process load EXIF data.
Returns -1 in case of error.
Valid values are in range of 1 to 8. See kOrientation* constants.
For new development, please use ExifTagsMBS class instead.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
ReadExifData property must be set earlier to have the import process load EXIF data.
Returns -1 in case of error.
Valid values are in range of 1 to 8. See kOrientation* constants.
For new development, please use ExifTagsMBS class instead.
(Read only property)
JPEGImporterMBS.ExifThumbnail as String
Function:
Extracts an embedded thumbnail in EXIF data.
Example:
Notes:
ReadExifData property must be set earlier to have the import process load EXIF data.
Returns string containing JPEG compressed image data.
For new development, please use ExifTagsMBS class instead.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim g As New JPEGImporterMBS
g.File = SpecialFolder.Desktop.Child("test.jpg")
g.ReadExifData = True
// not load, but just read header & metadata
If g.ReadHeader Then
// get thumbnail
Dim Thumbnail As String = g.ExifThumbnail
// show it
window1.Backdrop = picture.FromData(Thumbnail)
// if nil, use ScaleFactor and read scaled down version
End If
ReadExifData property must be set earlier to have the import process load EXIF data.
Returns string containing JPEG compressed image data.
For new development, please use ExifTagsMBS class instead.
(Read only property)
JPEGImporterMBS.FancyUpsampling as Boolean
Function:
Whether to do fancy upsampling.
Notes:
Default value is true.
If true, use direct DCT scaling with DCT size > 8 for downsampling of chroma components. If false, use only DCT size <= 8 and simple separate downsampling. Default is true. For better image stability in multiple generation compression cycles it is preferable that this value matches the corresponding FancyUpsampling value in decompression.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 12.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Default value is true.
If true, use direct DCT scaling with DCT size > 8 for downsampling of chroma components. If false, use only DCT size <= 8 and simple separate downsampling. Default is true. For better image stability in multiple generation compression cycles it is preferable that this value matches the corresponding FancyUpsampling value in decompression.
(Read and Write property)
JPEGImporterMBS.file as folderitem
Function:
The source file.
Example:
Notes:
If file is nil and path is "", the source is taken from the data property.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim ji As New JPEGImporterMBS
ji.file = SpecialFolder.Desktop.Child("test.jpg")
ji.Import
Backdrop = ji.Picture
If file is nil and path is "", the source is taken from the data property.
(Read and Write property)
JPEGImporterMBS.FileOffset as Integer
Function:
The offset inside the file.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: (Read and Write property)
JPEGImporterMBS.Height as Integer
Function:
The height of the picture.
Notes:
0 if the loading of the picture failed.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
0 if the loading of the picture failed.
(Read and Write property)
JPEGImporterMBS.HorizontalResolution as Integer
Function:
The horizontal resolution.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 3.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: (Read and Write property)
JPEGImporterMBS.Mode as Integer
Function:
The operation mode.
Notes:
Can be either ModePicture (Default), ModeRGB or ModeCMYK.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 8.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Can be either ModePicture (Default), ModeRGB or ModeCMYK.
(Read and Write property)
JPEGImporterMBS.OriginalDepth as Integer
Function:
The original depth of the picture.
Notes:
Value maybe 8 for grayscale pictures and 24 or 32 for colored pictures.
0 if the loading of the picture failed.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Value maybe 8 for grayscale pictures and 24 or 32 for colored pictures.
0 if the loading of the picture failed.
(Read and Write property)
JPEGImporterMBS.Path as String
Function:
The source file.
Example:
Notes:
If file is nil and path is "", the source is taken from the data property.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim ji As New JPEGImporterMBS
// try with path
Dim f As FolderItem = SpecialFolder.Desktop.Child("test.jpg")
ji.path = f.NativePath
ji.Import
Backdrop = ji.Picture
If file is nil and path is "", the source is taken from the data property.
(Read and Write property)
JPEGImporterMBS.Picture as Picture
Function:
The picture as the result.
Notes:
Set to nil on any error.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Set to nil on any error.
(Read and Write property)
JPEGImporterMBS.PictureData as MemoryBlock
Function:
The cmyk picture data after importing.
Example:
Notes:
Basicly a memoryblock with one byte for each channel.
For ReadByRow methods this property contains memoryblock for a row of the image.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 3.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim g as FolderItem
dim ji as JPEGImporterMBS
dim je as JPEGExporterMBS
dim f as FolderItem
dim m as MemoryBlock
// import it
g=getFolderItem("CMYK Example.jpg")
ji=new JPEGImporterMBS
ji.File=g
ji.AllowDamaged=true
ji.ImportCMYK
m=ji.PictureData
msgBox g.name
// export it
f=SpecialFolder.Desktop.child("CMYK Example2.jpg")
je=new JPEGExporterMBS
je.File=f
je.Quality=75
je.ExportCMYK m, ji.Width, ji.Height, ji.Width*4
Basicly a memoryblock with one byte for each channel.
For ReadByRow methods this property contains memoryblock for a row of the image.
(Read and Write property)
JPEGImporterMBS.ProfileData as String
Function:
The ICC profile stored in the file.
Example:
Notes:
Only used when ReadProfileData is set to true before you import the image.
The string contains the binary content of a profile file on disc. So you can pass it to the CMOpenProfileFromDataMBS function or write it to a file using the binarystream class.
Value is "" if no profile was found.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 7.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim f as FolderItem
dim j as JPEGImporterMBS
dim p as LCMS2ProfileMBS
f=SpecialFolder.Desktop.Child("test2.jpg")
j=new JPEGImporterMBS
j.ReadMarkers=true // else no metadata is read at all
j.ReadProfileData=true // needed to fill ProfileData property
j.file=f
j.Import
if j.ProfileData="" then
MsgBox "no profile"
Return
end if
p=LCMS2ProfileMBS.OpenProfileFromString(j.ProfileData)
MsgBox p.Name
Only used when ReadProfileData is set to true before you import the image.
The string contains the binary content of a profile file on disc. So you can pass it to the CMOpenProfileFromDataMBS function or write it to a file using the binarystream class.
Value is "" if no profile was found.
(Read and Write property)
JPEGImporterMBS.ProgressiveMode as Boolean
Function:
Whether this is a progressive jpeg file.
Notes:
Loading progressive files needs more memory.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 18.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Loading progressive files needs more memory.
(Read and Write property)
JPEGImporterMBS.ReadExifData as Boolean
Function:
Whether the plugin should read in the exif data.
Example:
Notes:
If there is exif data, it will be stored in the ExifData property.
Setting this value to true will set ReadMarkers to true, too.
The data is stored in one or more markers, so it is needed to read them before extracting the data.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim j as JPEGImporterMBS
dim f as FolderItem
f=SpecialFolder.Desktop.Child("test.jpg")
j=new JPEGImporterMBS
j.ReadExifData=true // needed to fill ExifData property
// do the import
dim data as string = j.ExifData
// work with data
If there is exif data, it will be stored in the ExifData property.
Setting this value to true will set ReadMarkers to true, too.
The data is stored in one or more markers, so it is needed to read them before extracting the data.
(Read and Write property)
JPEGImporterMBS.ReadMarkers as Boolean
Function:
Whether importer should read markers.
Example:
Notes:
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 6.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim j as JPEGImporterMBS
dim f as FolderItem
f=SpecialFolder.Desktop.Child("test.jpg")
j=new JPEGImporterMBS
j.ReadMarkers=true // else no metadata is read at all
// do the import
MsgBox str(j.MarkerCount)
JPEGImporterMBS.ReadProfileData as Boolean
Function:
Whether the plugin should read in the icc profile.
Example:
Notes:
If there is a profile, it will be stored in the ProfileData property.
Setting this value to true will set ReadMarkers to true, too.
A profile is stored in one or more markers, so it is needed to read them before extracting the profile.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 7.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim j as JPEGImporterMBS
dim f as FolderItem
f=SpecialFolder.Desktop.Child("test.jpg")
j=new JPEGImporterMBS
j.ReadProfileData=true // needed to fill ProfileData property
// do the import
dim Profile as string = j.ProfileData
// work with profile data
If there is a profile, it will be stored in the ProfileData property.
Setting this value to true will set ReadMarkers to true, too.
A profile is stored in one or more markers, so it is needed to read them before extracting the profile.
(Read and Write property)
JPEGImporterMBS.ReadXMPData as Boolean
Function:
Whether the plugin should read in the xmp data.
Notes:
If there is xmp data, it will be stored in the XMPData property.
Setting this value to true will set ReadMarkers to true, too.
The data is stored in one or more markers, so it is needed to read them before extracting the data.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
If there is xmp data, it will be stored in the XMPData property.
Setting this value to true will set ReadMarkers to true, too.
The data is stored in one or more markers, so it is needed to read them before extracting the data.
(Read and Write property)
JPEGImporterMBS.ResolutionUnit as Integer
Function:
The unit of the resolution properties.
Notes:
Values:
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 3.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Values:
0 | unknown |
1 | dots per inch |
2 | dots per cm |
JPEGImporterMBS.ScaleFactor as Integer
Function:
The JPEG Library can scale down the picture on the fly.
Notes:
Allowed values: 0, 1, 2, 4, 8
0 and 1 disable scaling.
Default valus is 0 for no scaling.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | JPEG | MBS Images Plugin | 10.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Allowed values: 0, 1, 2, 4, 8
0 and 1 disable scaling.
Default valus is 0 for no scaling.
(Read and Write property)
The items on this page are in the following plugins: MBS Images Plugin.

Links
MBS Xojo Plugins