mirror of
https://github.com/User0332/rewards-farmer.git
synced 2026-09-16 09:31:36 +00:00
added random image finding and downloading function
downloads a random image from Wikipedia, converts it to png, and renames it to random_image.png - will rewrite the image if one already exists. Filters images: | Filter | Current value | Meaning | | ------------------ | ----------------: | ------------------------------------ | | MIME type | JPEG / PNG / WebP | Rejects SVG, GIF, TIFF, etc. | | Width | ≥ 300 px | Rejects very narrow/small images | | Height | ≥ 300 px | Rejects very short/small images | | Original file size | ≤ 20 MB | Avoids huge files | | Thumbnail | 1280 px | Downloads a reasonably sized version |
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
*.png
|
||||
*.txt
|
||||
random_image.json
|
||||
Todo.md
|
||||
data-dir/
|
||||
__pycache__/
|
||||
Reference in New Issue
Block a user