image.proto

syntax = "proto3";

package pub.odf.image.v1;

/**
 * An image file.
 */
message ImageFile {
  string name = 1;
  string mime_type = 2;
  uint32 height_px = 3;
  uint32 width_px = 4;
  uint32 size_in_bytes = 5;

  oneof file {
    string url = 6;
    bytes data = 7;
  }
}