MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / thumbnail

Method thumbnail

mongoengine/fields.py:2021–2028  ·  view source on GitHub ↗

return a gridfs.grid_file.GridOut representing a thumbnail of Image

(self)

Source from the content-addressed store, hash-verified

2019
2020 @property
2021 def thumbnail(self):
2022 """
2023 return a gridfs.grid_file.GridOut
2024 representing a thumbnail of Image
2025 """
2026 out = self.get()
2027 if out and out.thumbnail_id:
2028 return self.fs.get(out.thumbnail_id)
2029
2030 def write(self, *args, **kwargs):
2031 raise RuntimeError('Please use "put" method instead')

Callers 1

putMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected