# Working with Images Enumerate, filter, and save images extracted with GroupDocs.Parser for Python via .NET. Use image areas to inspect page coordinates, image types, and to save embedded resources in the desired format. ## Save images to streams {{< tabs "example-1" >}} {{< tab "Python" >}} ```python from groupdocs.parser import Parser with Parser("brochure.pdf") as parser: images = parser.get_images() if images is None: print("Image extraction isn't supported for this format.") elif not images: print("No images found") else: for image_area in images: # The image stream is a .NET MemoryStream; to_array() returns its bytes with image_area.get_image_stream() as stream: data = stream.to_array() print(f"Read {len(data)} bytes from page {image_area.page.index + 1}") ``` {{< /tab >}} {{< tab "brochure.pdf" >}} {{< tab-text >}} The following sample file is used in this example: [brochure.pdf](https://docs.groupdocs.com/parser/python-net/_sample_files/developer-guide/advanced-usage/working-with-images/working-with-images/brochure.pdf) {{< /tab-text >}} {{< /tab >}} {{< tab "save-images-to-streams.txt" >}} ```text Read 16247 bytes from page 1 Read 125180 bytes from page 1 Read 69728 bytes from page 1 Read 94989 bytes from page 1 Read 96241 bytes from page 1 Read 163435 bytes from page 2 Read 96241 bytes from page 2 ``` [Download full output](https://docs.groupdocs.com/parser/python-net/_output_files/developer-guide/advanced-usage/working-with-images/working-with-images/example-1/save-images-to-streams.txt) {{< /tab >}} {{< /tabs >}} ### Tips - `PageImageArea` exposes `rectangle`, `page`, and `file_type` so you can filter by size or format. - Use `save(path)` for convenience or `get_image_stream()` when you need to process bytes in memory. - For large documents, stop iterating once you have saved the images you need to minimize memory usage.