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

Added python program to resize an image. #129

Closed

Conversation

Priysha-Aggarwal
Copy link

This is a python3 program to read and resize an image to half its original size.
Hacktoberfest issue (#66)

Description

Please include a small description of your algorithm/data structure and add reference to the Hacktoberfest issue (#66)

This is a python3 program to read and resize an image to half its original size.
Added a python program to calculate mean of an array. 
The code currently takes an example array to test the code. One can change it as per need.
@dnery dnery self-assigned this Oct 13, 2019
@@ -0,0 +1,13 @@
import numpy as np
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this file should be a part of your contribution?

If so, how about moving it to misc/calc_mean.py?

Another tip: make it so that the array to be sorted can be passed in as an argument or input to your program! 😃


files = os.listdir()
for i in files :
if i[-5:] == ".jpeg":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like I'm reading a programming marathon code snippet! 😆

Suggested change
if i[-5:] == ".jpeg":
if i.endswith('.jpeg'):

Jokes aside, how about moving this to digital_image_processing/manipulation/resize_image.py?

Copy link
Member

@dnery dnery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misclicked above... 😅

Refer to #129 (review)

@dnery
Copy link
Member

dnery commented Oct 19, 2019

Marking this as stale.

If you'd still like to follow up on the review, just post a comment right here and we'll reopen the PR! 😄

@dnery dnery closed this Oct 19, 2019
@dnery dnery added the stale request Review requests had no follow up response label Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale request Review requests had no follow up response
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants