-
Notifications
You must be signed in to change notification settings - Fork 490
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
[Feature Added]: Image Request Feature #1303
base: master
Are you sure you want to change the base?
Conversation
CodeSee Review Map:Review in an interactive map View more CodeSee Maps Legend |
import requests | ||
from PIL import Image | ||
def img_requests(txt): | ||
response=requests.get("https://source.unsplash.com/random/{0}".format(txt)) |
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.
Can we add more image sources, if that's possible?
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.
Yeah i think some I can add but , those will need an email id for api key and most of them are paid. I choose unsplash because it is free and requires no api key or authentication as such and the most imp point it is very user friendly.
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 add a GSSOC Level in this PR
Python/Image Requests/img.py
Outdated
from PIL import Image | ||
def img_requests(txt): | ||
response=requests.get("https://source.unsplash.com/random/{0}".format(txt)) | ||
file=open('sample_image.jpg','wb') |
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.
Avoid using ambiguous filenames.
Description
This feature will fetch Images with user-defined tags from the public image library (hence usable for creative purposes ) , it will also provide the user with image quality control such as HD,FHD,2K,4K..etc
Fixes #1294
Replace
issue_no
with the issue number which is fixed in this PRType of change
This script asks the user about the choice of selection from the avaliable catalogue of images. After providing the respective choices , it will send request to the Photo API system for fetching the images and in case of desired user keywords ,again asks the user about the keywords seperated by commas ( the commas will be cleared out using replace function)
and then fetch the images having similar keywords. The image will be displayed in default photo viewer of that OS.
Checklist:
README.md
Screenshots-
Random Image Generation
Topic based Image Generation