class documentation
ZMS image blob class for managing image files with metadata.
MyImage extends MyBlob with image-specific functionality including:
Image Features:
- Width and height metadata tracking
- Automatic dimension detection from SVG and raster images
- Image resizing and thumbnail generation
- Configurable default dimensions (width, height)
Data Management:
- Inherits blob storage from
MyBlob(ZODB or MediaDB) - XML serialization with width/height attributes
- Content-type handling (image/png, image/jpeg, image/svg+xml, etc.)
Uses OFS.Image.Image as the underlying Zope file storage mechanism.
| Method | get |
Get height of this image. |
| Method | get |
Get width of this image. |
| Method | to |
Serialize this file to xml-string. |
| Class Variable | __obj |
Undocumented |
| Class Variable | __roles__ |
Undocumented |
| Class Variable | __version__ |
Undocumented |
| Class Variable | __xml |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Instance Variable | height |
Undocumented |
| Instance Variable | width |
Undocumented |
| Method | _get |
Get copy of this blob. |
Inherited from MyBlob:
| Method | __bobo |
Undocumented |
| Method | __call__ |
Handle HTTP request for blob object (file/image). |
| Method | __str__ |
Undocumented |
| Method | equals |
Indicates whether some other MyBlob-object is "equal to" this one. |
| Method | get |
Returns real size in ZODB. |
| Method | get |
Returns MIME-type (e.g. image/gif, text/xml). |
| Method | get |
Returns data. |
| Method | get |
Returns display string for file-size (kB). Deprecated: Use standard.getDataSizeStr(len) instead! |
| Method | get |
Undocumented |
| Method | get |
Returns filename. |
| Method | get |
Returns absolute url. |
| Method | get |
Returns mediadb-filename. |
| Method | get |
Returns the absolute-url of an icon representing the MIME-type of this MyBlob-object. Deprecated: Use zmscontext.getMimeTypeIconSrc(mt) instead! |
| Method | get |
Undocumented |
| Method | on |
Undocumented |
| Class Variable | __call |
Undocumented |
| Class Variable | __class |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
MyBlob.get_real_size: |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | index |
MyBlob.getObjAttrs: |
| Instance Variable | aq |
Undocumented |
| Instance Variable | data |
Undocumented |
| Instance Variable | filename |
Undocumented |
| Instance Variable | mediadbfile |
Undocumented |
| Method | _create |
Undocumented |
| Method | _if |
Undocumented |
| Method | _range |
Undocumented |