Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rydgel/Fake-images-please
/ functions
Functions
36 in github.com/Rydgel/Fake-images-please
⨍
Functions
36
◇
Types & classes
5
↳
Endpoints
5
↓ 13 callers
Method
_open_image
(image_data)
app/tests.py:14
↓ 3 callers
Method
_hex_to_int
(hex_string)
app/helpers/fakeimg.py:102
↓ 2 callers
Method
__init__
(self, url_map)
app/helpers/converters.py:6
↓ 2 callers
Method
_hex_alpha_to_rgba
Convert hexadecimal + alpha value to a rgba tuple
app/helpers/fakeimg.py:105
↓ 1 callers
Method
_calculate_font_size
(self)
app/helpers/fakeimg.py:87
↓ 1 callers
Method
_choose_font
Choosing a font, the fallback is Yanone
app/helpers/fakeimg.py:91
↓ 1 callers
Method
_draw
Image creation using Pillow (PIL fork)
app/helpers/fakeimg.py:134
↓ 1 callers
Method
_font_path_from_name
(self)
app/helpers/fakeimg.py:117
Method
__init__
(self, url_map)
app/helpers/converters.py:13
Method
__init__
(self, url_map)
app/helpers/converters.py:19
Method
__init__
Init FakeImg with parameters. Args: width (int): The width of the image. height (int): The height of the image.
app/helpers/fakeimg.py:16
Function
add_header
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 hours. Should be served by Va
app/main.py:146
Function
favicon
()
app/main.py:160
Function
handle_cache
if resource is the same, return 304
app/main.py:133
Function
healthcheck
()
app/main.py:175
Function
index
Home page
app/main.py:24
Method
mimetype
(self)
app/helpers/fakeimg.py:84
Function
page_not_found
(e)
app/main.py:171
Function
placeholder
This endpoint generates the placeholder itself, based on arguments. If the height is missing, just make the image square. Query parameter
app/main.py:71
Method
raw
Create the image on memory and return it
app/helpers/fakeimg.py:76
Function
send_text_file
Send your static text file.
app/main.py:165
Method
setUp
(self)
app/tests.py:9
Method
test404
(self)
app/tests.py:26
Method
testCORSHeaders
(self)
app/tests.py:194
Method
testFavicon
(self)
app/tests.py:36
Method
testFontsize
(self)
app/tests.py:167
Method
testHeaders
(self)
app/tests.py:30
Method
testHumansTxt
(self)
app/tests.py:45
Method
testIndex
(self)
app/tests.py:22
Method
testPlaceholder1
(self)
app/tests.py:55
Method
testPlaceholder2
(self)
app/tests.py:67
Method
testPlaceholder3
(self)
app/tests.py:82
Method
testPlaceholder4
(self)
app/tests.py:105
Method
testRetina
(self)
app/tests.py:150
Method
testRobotsTxt
(self)
app/tests.py:40
Method
testTrailingSlash
(self)
app/tests.py:50