return a gridfs.grid_file.GridOut representing a thumbnail of Image
(self)
| 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') |