Return |ImagePart| instance newly created from `image` and appended to the collection.
(self, image: Image)
| 78 | return self._add_image_part(image) |
| 79 | |
| 80 | def _add_image_part(self, image: Image): |
| 81 | """Return |ImagePart| instance newly created from `image` and appended to the collection.""" |
| 82 | partname = self._next_image_partname(image.ext) |
| 83 | image_part = ImagePart.from_image(image, partname) |
| 84 | self.append(image_part) |
| 85 | return image_part |
| 86 | |
| 87 | def _get_by_sha1(self, sha1: str) -> ImagePart | None: |
| 88 | """Return the image part in this collection having a SHA1 hash matching `sha1`, |