-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New Entry: Term Entry #6385
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
New Entry: Term Entry #6385
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ColinTimberlake, thank you for contributing to Codecademy Docs, the entry is nicely written! 😄
I've suggested a few changes, could you please review and modify those at your earliest convenience? Thank you! 😃
Title: '.save()' | ||
Description: 'Saves an Image to be used.' | ||
Subjects: | ||
- 'Code Foundations' | ||
- 'Computer Science' | ||
|
||
Tags: | ||
- 'Images' | ||
- 'Libraries' | ||
- 'Pillow' | ||
CatalogContent: | ||
- 'learn Git and GitHub' | ||
- 'paths/Python' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Title: '.save()' | |
Description: 'Saves an Image to be used.' | |
Subjects: | |
- 'Code Foundations' | |
- 'Computer Science' | |
Tags: | |
- 'Images' | |
- 'Libraries' | |
- 'Pillow' | |
CatalogContent: | |
- 'learn Git and GitHub' | |
- 'paths/Python' | |
Title: '.save()' | |
Description: 'saves an image to a specified file.' | |
Subjects: | |
- 'Code Foundations' | |
- 'Computer Science' | |
Tags: | |
- 'Images' | |
- 'Libraries' | |
- 'Pillow' | |
CatalogContent: | |
- 'learn-python-3' | |
- 'paths/data-science' |
|
||
In the Pillow library, The **.save()** method is used to save an image under the given filename. This allows for the image to be saved in a recognizable way to the writer of the code. The given filename is written by the writer of the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the Pillow library, The **.save()** method is used to save an image under the given filename. This allows for the image to be saved in a recognizable way to the writer of the code. The given filename is written by the writer of the code. | |
In the Pillow library, the **`.save()`** method saves an image to a specified filename. The filename, provided by the user or the code writer, determines the format in which the image is saved. |
|
||
## Syntax | ||
|
||
Image.save(filename) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Image.save(filename) | |
```pseudo | |
image.save(fp, format=None, **params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#### Parameters: | ||
-**Image**: The Image object to be saved. | ||
-**filename**: filename to the file to be saved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the parameters to the above listed syntax:
fp
:format
:**params
:
|
||
 | ||
|
||
``` | ||
newImage = Image.open(r"C:\Users\Codecademy\Desktop\bird.jpg") | ||
|
||
newImage = newImage.save("fluffy.jpg") | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please:
- describe the example in one-two lines
- the image used in the example, needs to be placed in the media folder in docs. External links are not allowed
- the code is missing the import statement, please fix that
Hello @mamtawardhani, I will be happy to make these changes. I also wanted to clarify a couple of things:
Just wanted to make sure that I am reading it correctly. |
Hey @ColinTimberlake, yes that is absolutely correct. 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The entry looks good for a second round of review! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, @ColinTimberlake!
👋 @ColinTimberlake 🎉 Your contribution(s) can be seen here: https://www.codecademy.com/resources/docs/pillow/image/save Please note it may take a little while for changes to become visible. |
Description
Created a new term entry for .save function in the pillow library of python
Issue
Closes #6370
Type of Change
Checklist
main
branch.Issues Solved
section.