Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a class to hold image data #158

Closed
lars-reimann opened this issue Apr 4, 2023 · 1 comment · Fixed by #159
Closed

Create a class to hold image data #158

lars-reimann opened this issue Apr 4, 2023 · 1 comment · Fixed by #159
Assignees
Labels
enhancement 💡 New feature or request released Included in a release

Comments

@lars-reimann
Copy link
Member

Is your feature request related to a problem?

Plotting methods currently do not produce a result but instead use the show method of matplotlib to display the result in a notebook environment (or PyCharm) as a side effect. More generally, we can currently only work with tabular data in safe-ds.

Desired solution

  • Create a new class Image in safeds.data.image.containers
  • The constructor should accept a buffer of type io.BytesIO
  • Internally we can use pillow to handle the image

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

@lars-reimann lars-reimann added the enhancement 💡 New feature or request label Apr 4, 2023
@lars-reimann lars-reimann self-assigned this Apr 4, 2023
@lars-reimann lars-reimann linked a pull request Apr 4, 2023 that will close this issue
lars-reimann added a commit that referenced this issue Apr 4, 2023
Closes #158.

### Summary of Changes

* New class `safeds.data.image.containers.Image` to store images
* An `Image` can be created from and saved to JPEG and PNG files
* Methods that create a plot for `Table` and `Column` now return an
`Image` instead of plotting them directly in an interactive environment
* An `Image` can be displayed in an interactive environment

---------

Co-authored-by: megalinter-bot <[email protected]>
lars-reimann pushed a commit that referenced this issue Apr 4, 2023
## [0.9.0](v0.8.0...v0.9.0) (2023-04-04)

### Features

* container for images ([#159](#159)) ([ed7ae34](ed7ae34)), closes [#158](#158)
* improve error handling for `predict` ([#145](#145)) ([a5ff11c](a5ff11c)), closes [#9](#9)
* move `ImputerStrategy` to `safeds.data.tabular.typing` ([#174](#174)) ([205c8e2](205c8e2))
* rename `n_neighbors` to `number_of_neighbors` ([#162](#162)) ([526b96e](526b96e))

### Bug Fixes

* export `TableTransformer` and `InvertibleTableTransformer` ([#135](#135)) ([81c3695](81c3695))
@lars-reimann
Copy link
Member Author

🎉 This issue has been resolved in version 0.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 💡 New feature or request released Included in a release
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant