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 | __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 |
Return the blob itself during traversal. |
| Method | __call__ |
Handle HTTP request for blob object (file/image). |
| Method | __str__ |
Undocumented |
| Method | equals |
Indicate whether another blob 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 |
Return the blob payload as a data URI. |
| Method | get |
Returns filename. |
| Method | get |
Return the absolute URL for this blob. |
| 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 |
Return object attribute definitions for this blob. |
| Method | on |
Persist blob data to MediaDB and detach acquisition wrappers when needed. |
| Class Variable | __call |
Undocumented |
| Class Variable | __class |
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 | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | index |
Undocumented |
| Instance Variable | aq |
Undocumented |
| Instance Variable | data |
Undocumented |
| Instance Variable | filename |
Undocumented |
| Instance Variable | mediadbfile |
Undocumented |
| Method | _create |
Create a copy of the blob bound to a new acquisition parent. |
| Method | _if |
Undocumented |
| Method | _range |
Undocumented |