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

Rotation #176

Closed
sadrasabouri opened this issue Jan 24, 2023 · 0 comments · Fixed by #187
Closed

Rotation #176

sadrasabouri opened this issue Jan 24, 2023 · 0 comments · Fixed by #187
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sadrasabouri
Copy link
Collaborator

Description

In some cases, we need to rotate pictures yielding more exciting images.

Steps/Code to Reproduce

g = GenerativeImage()
g.generate()
g.plot(rotation=45)

Expected Behavior

Return a rotated version of the picture, something like the below:
rotated

Actual Behavior

Since we do not have rotation parameter it will raise an error, anyway, we should have something like the below image as our original image:
original

Samila Version (Use : samila.__version__)

1.0

@sadrasabouri sadrasabouri added the enhancement New feature or request label Jan 24, 2023
@sadrasabouri sadrasabouri added this to the samila v1.1 milestone Jan 24, 2023
@sadrasabouri sadrasabouri self-assigned this Jan 24, 2023
sadrasabouri added a commit that referenced this issue Feb 9, 2023
sepandhaghighi added a commit that referenced this issue Mar 26, 2023
* rotate : [INIT]

* edit : docstring edited.

* add : `rotate` function added.

* edit : docstring edited.

* add : `rotate` added to config and data files.

* log : changes logged.

* update : document updated.

* test : tests added (#176)

* add : `PIL` added to dependecies.

* fix : typo fixed in `requirements.txt`.

* remove : extra import in `genimage.py` removed.

* add : version for Pillow.

---------

Co-authored-by: sepandhaghighi <[email protected]>
@sepandhaghighi sepandhaghighi linked a pull request Apr 3, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants