Пример #1
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/EzWiHEX.png"

holdUpEarth = MemeTemplate(
    "hold up earth", IMAGE, {
        "earthText": {
            "location": [285, 90],
            "color": [255, 255, 255],
            "size": 65,
            "max": 20
        },
        "personText": {
            "location": [280, 365],
            "color": [255, 255, 255],
            "size": 65,
            "max": 20
        }
    })


def generateImage(earthText, personText):
    return holdUpEarth.generateImage(earthText=earthText,
                                     personText=personText)
Пример #2
0
from util.image.image import MemeTemplate

# IMAGE = "https://preview.redd.it/erpvm5m39gw11.jpg?width=640&crop=smart&auto=webp&s=5f06e60d8ce81befbc5d9005772f82e19d0514b1"
IMAGE = "https://tinyurl.com/surprisedDwight"

surprisedDwight = MemeTemplate(
    "surprised dwight", IMAGE, {
        "dwightText": {
            "location": [220, 300],
            "color": [255, 255, 255],
            "size": 60,
            "max": 15
        },
        "angelaText": {
            "location": [485, 300],
            "color": [255, 255, 255],
            "size": 60,
            "max": 10
        }
    })


def generateImage(dwightText, angelaText):
    return surprisedDwight.generateImage(dwightText=dwightText,
                                         angelaText=angelaText)
Пример #3
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/8GpQQun.png"
IMAGE_BOTTOM = "https://i.imgur.com/TmAPdcG.png"

didYouMean = MemeTemplate(
    "did you mean",
    IMAGE,
    {
        "searchText": {
            "location": [165, 40],
            "color": [0, 0, 0],
            "size": 25, "max": 30,
            "centered": [False, True]
        },
        "didYouMeanText": {
            "location": [285, 182],
            "color": [0, 0, 0],
            "size": 25, "max": 30,
            "centered": [False, True]
        }
    }
)

didYouMeanBottom = MemeTemplate(
    "did you mean bottom",
    IMAGE_BOTTOM,
    {
        "didYouMeanText": {
            "location": [125, 62],
            "color": [0, 0, 0],
Пример #4
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/Npr993s.jpg"

deerAboveWater = MemeTemplate(
    "deer above water", IMAGE, {
        "deerText": {
            "location": [410, 225],
            "color": [255, 255, 255],
            "size": 75,
            "max": 15
        },
        "handText": {
            "location": [385, 575],
            "size": 75,
            "max": 15
        }
    })


def generateImage(deerText, handText):
    return deerAboveWater.generateImage(deerText=deerText, handText=handText)
Пример #5
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/uQ9GZUS.png"

rewindTime = MemeTemplate(
    "rewind time", IMAGE, {
        "text": {
            "location": [35, 40],
            "size": 45,
            "max": 40,
            "centered": [False, False]
        }
    })


def generateImage(text):
    return rewindTime.generateImage(text=text)
Пример #6
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/Tuh9AqB.png"

kevinHitDwight = MemeTemplate(
    "kevin hit dwight", IMAGE, {
        "kevinText": {
            "location": [435, 190],
            "color": [255, 255, 255],
            "size": 65,
            "max": 20
        },
        "dwightText": {
            "location": [645, 320],
            "color": [255, 255, 255],
            "size": 65,
            "max": 20
        }
    })


def generateImage(kevinText, dwightText):
    return kevinHitDwight.generateImage(kevinText=kevinText,
                                        dwightText=dwightText)
Пример #7
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/Tmasvyy.jpg"

areYouAwake = MemeTemplate(
    "are you awake", IMAGE, {
        "text": {
            "location": [25, 270],
            "size": 25,
            "max": 30,
            "centered": [False, False]
        }
    })


def generateImage(text):
    return areYouAwake.generateImage(text=text)
Пример #8
0
    "https://i.imgur.com/De5Je3s.png",
    "https://i.imgur.com/tP7q95P.png",
    "https://i.imgur.com/RkEtUzd.png",
    "https://i.imgur.com/L42CAtY.png",
    "https://i.imgur.com/jPmy1S0.png"
]

IMAGE = IMAGES[2]

EXPANDING_BRAINS = [
    MemeTemplate(
        "expanding brain one",
        IMAGES[0],
        {
            "firstText": {
                "location": [25, 25],
                "size": 30, "max": 30,
                "centered": [False, False]
            }
        }
    ),
    MemeTemplate(
        "expanding brain two",
        IMAGES[1],
        {
            "firstText": {
                "location": [25, 25],
                "size": 30, "max": 30,
                "centered": [False, False]
            },
            "secondText": {
Пример #9
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/Y6p8GZw.jpg"

bikeCrash = MemeTemplate(
    "bike crash", IMAGE, {
        "firstText": {
            "location": [280, 500],
            "size": 50,
            "max": 30,
            "centered": [False, False]
        },
        "crashText": {
            "location": [640, 1185],
            "size": 50,
            "max": 30,
        }
    })


def generateImage(firstText, crashText):
    return bikeCrash.generateImage(firstText=firstText, crashText=crashText)
Пример #10
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/MSaTVD2.jpg"

icarlyStopSign = MemeTemplate(
    "icarly stop sign", IMAGE, {
        "spencerText": {
            "location": [135, 250],
            "color": [255, 255, 255],
            "size": 30,
            "max": 15
        },
        "stopText": {
            "location": [140, 80],
            "angle": 37,
            "size": 25,
            "max": 15
        },
        "gibbyText": {
            "location": [260, 155],
            "color": [255, 255, 255],
            "size": 30,
            "max": 10
        }
    })


def generateImage(spencerText, stopText, gibbyText):
    return icarlyStopSign.generateImage(spencerText=spencerText,
                                        stopText=stopText,
                                        gibbyText=gibbyText)
Пример #11
0
IMAGE_TWO = "https://i.imgur.com/vZhv4Hh.png"

playstationFour = MemeTemplate(
    "playstation four", IMAGE, {
        "triangleText": {
            "location": [145, 55],
            "size": 35,
            "max": 35,
            "centered": [False, True]
        },
        "squareText": {
            "location": [145, 160],
            "size": 35,
            "max": 35,
            "centered": [False, True]
        },
        "xText": {
            "location": [145, 260],
            "size": 35,
            "max": 35,
            "centered": [False, True]
        },
        "circleText": {
            "location": [145, 370],
            "size": 35,
            "max": 35,
            "centered": [False, True]
        }
    })

playstationThree = MemeTemplate(
Пример #12
0
whoKilledHannibal = MemeTemplate(
    "who killed hannibal",
    IMAGE,
    {
        "ericAndreText": {
            "location": [865, 475],
            "color": [255, 255, 255],
            "size": 80, "max": 10
        },
        "gunText": {
            "location": [610, 290],
            "color": [255, 255, 255],
            "size": 80, "max": 10
        },
        "actionText": {
            "location": [600, 670],
            "color": [200, 200, 0],
            "size": 80, "max": 30
        },
        "hannibalText": {
            "location": [300, 435],
            "color": [255, 255, 255],
            "size": 80, "max": 10
        },
        "questionText": {
            "location": [600, 1385],
            "color": [200, 200, 0],
            "size": 80, "max": 30
        }
    }
)
Пример #13
0
IMAGE_TWO = "https://i.imgur.com/dgM8Q2e.png"
IMAGE_THREE = "https://i.imgur.com/cvOHlbT.png"
IMAGE_FOUR = "https://i.imgur.com/8RBpM2J.png"
IMAGE_FIVE = "https://i.imgur.com/f2msD48.png"

startLearningOne = MemeTemplate(
    "start learning", IMAGE_ONE, {
        "topText": {
            "location": [15, 15],
            "size": 55,
            "max": 40,
            "centered": [False, False]
        },
        "insteadOfOne": {
            "location": [15, 140],
            "size": 55,
            "max": 20,
            "centered": [False, False]
        },
        "sayOne": {
            "location": [340, 140],
            "size": 55,
            "max": 20,
            "centered": [False, False]
        }
    })

startLearningTwo = MemeTemplate(
    "start learning", IMAGE_TWO, {
        "topText": {
            "location": [15, 15],
Пример #14
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/U2cudpx.png"

trump = MemeTemplate(
    "trump",
    IMAGE,
    {
        "tweetText": {
            "location": [40, 165],
            "size": 65, "max": 50,
            "centered": [False, False]
        }
    }
)

def generateImage(tweetText):
    return trump.generateImage(
        tweetText = tweetText
    )
Пример #15
0
from util.image.image import MemeTemplate

IMAGE = "https://tinyurl.com/puppetMeme"

puppetMeme = MemeTemplate(
    "puppet meme", IMAGE, {
        "handText": {
            "location": [80, 50],
            "size": 35,
            "max": 10
        },
        "puppetText": {
            "location": [105, 230],
            "color": [160, 160, 0],
            "size": 35,
            "max": 10
        }
    })


def generateImage(handText, puppetText):
    return puppetMeme.generateImage(handText=handText, puppetText=puppetText)
Пример #16
0
from util.image.image import MemeTemplate

# IMAGE = "https://lh3.googleusercontent.com/A8DL1PjutxJYJHiqXtWSB6mZ9OEpvF_1l-U7sGUwRSt7vBopZT_N3uRMPUYxYilpYfzOCYLGOXStWkXqEYqVId_AeugUdZGrHFHPYprQBtLs9N_Vx5e4wlolkIpdLcZFQeQB4GCwrIPYbidAx3vSeqcSCb7amO-KoKogZMwlOnrzTclmEoZUCfHmO5m6z4fABTfCjOGdciImzxgRIVUmU0wpwO5jYPqhsIZ5TPqJE-KUAKNss2CQrJP9vcEKQj6uWyO8hss1j0DRp7kSiZsk1mIBVrlnNN3AiP_cYSuKsPtUp68YEvl8BWHlelIO6BgErS5uzQYRKErJYMOfxdFZxSbyA0t8AFBPry2LCL8FSE1yxmaKx42TgawRpYm9hHp-ToQifyhj2yCiokUy_1hu8fNcrsvM042mSCEZK44aSy4W3asYyObNnm06d6HRlu4d40en7Sx5ZWH1g3BTodV1d9-AwfzphZyZa_fdPRWZz7ajpBIvtUrO7xRRfuID_F6t1_7zK7RtnfrQSrbVenWsBEm3GknE8ErnXgxQdv9S0ZAbfzkxFsU1pOiPzga8kq1ORnRhtx20UGedqDtBtJzhBDmLMHKo-u-IylZ4AfoTit7ZVb7eIHy08YoQH_EZlKKc05qvYBz4Hw8eW-rXU24t0rsBdzzyQtgk4oDb8ocU6zlpbpnzHp9uP3zy0i9csN3pRhtK2XXF5WdDn4_XZK--N634r6KIgj-FV1kKiLk=w1013-h889-no"
IMAGE = "https://tinyurl.com/saveOneMeme"

saveOne = MemeTemplate(
    "save one", IMAGE, {
        "personText": {
            "location": [240, 250],
            "size": 80,
            "max": 15
        },
        "leftBehindText": {
            "location": [600, 235],
            "size": 60,
            "max": 10
        },
        "saveText": {
            "location": [900, 210],
            "size": 60,
            "max": 10
        }
    })


def generateImage(personText, leftBehindText, saveText):
    return saveOne.generateImage(personText=personText,
                                 leftBehindText=leftBehindText,
                                 saveText=saveText)
Пример #17
0
from util.image.image import MemeTemplate

IMAGE = "https://i.kym-cdn.com/photos/images/original/001/374/087/be2.png"

pigeon = MemeTemplate(
    "is this a pigeon", IMAGE, {
        "pigeonText": {
            "location": [425, 90],
            "color": [0, 0, 0],
            "size": 25,
            "max": 15
        },
        "personText": {
            "location": [165, 230],
            "color": [255, 255, 255],
            "size": 25,
            "max": 10
        },
        "questionText": {
            "location": [285, 390],
            "color": [255, 255, 255],
            "size": 35,
            "max": 30,
            "centered": [False, True]
        }
    })


def generateImage(pigeonText, personText, questionText):
    return pigeon.generateImage(pigeonText=pigeonText,
                                personText=personText,
Пример #18
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/lIatply.jpg"

brainOf = MemeTemplate(
    "brain of", IMAGE, {
        "brainText": {
            "location": [60, 495],
            "size": 40,
            "max": 55,
            "centered": [False, True]
        }
    })


def generateImage(brainText):
    return brainOf.generateImage(brainText=brainText)
Пример #19
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/AWl1ktB.jpg"

headacheTypes = MemeTemplate(
    "headache types",
    IMAGE,
    {
        "headacheText": {
            "location": [465, 515],
            "size": 65, "max": 20,
        }
    }
)

def generateImage(headacheText):
    return headacheTypes.generateImage(
        headacheText = headacheText
    )
Пример #20
0
IMAGE = "https://i.imgur.com/rmUyMnP.jpg"

grusPlan = MemeTemplate(
    "grus plan", IMAGE, {
        "firstPanelText": {
            "location": [295, 80],
            "size": 35,
            "max": 18,
            "centered": [False, False],
        },
        "secondPanelText": {
            "location": [815, 90],
            "size": 35,
            "max": 20,
            "centered": [False, False],
        },
        "lastPanelTextLeft": {
            "location": [300, 415],
            "size": 35,
            "max": 20,
            "centered": [False, False],
        },
        "lastPanelTextRight": {
            "location": [815, 415],
            "size": 35,
            "max": 20,
            "centered": [False, False],
        }
    })

Пример #21
0
from util.image.image import MemeTemplate

IMAGE = "https://tinyurl.com/burnLetter"

burnLetter = MemeTemplate(
    "burn letter", IMAGE, {
        "letterText": {
            "location": [25, 35],
            "size": 15,
            "max": 15,
            "centered": [False, False]
        },
        "spongebobText": {
            "location": [180, 55],
            "size": 15,
            "max": 10
        }
    })


def generateImage(letterText, spongebobText):
    return burnLetter.generateImage(letterText=letterText,
                                    spongebobText=spongebobText)
Пример #22
0
IMAGE_TWO = "https://tinyurl.com/twoArmHandshake"
IMAGE_THREE = "https://tinyurl.com/threeArmHandshake"
IMAGE_FOUR = "https://tinyurl.com/fourArmHandshake"

twoArmHandshake = MemeTemplate(
    "two arm handshake", IMAGE_TWO, {
        "handsText": {
            "location": [370, 140],
            "color": [255, 255, 255],
            "size": 65,
            "max": 15
        },
        "firstArm": {
            "location": [275, 475],
            "color": [255, 255, 255],
            "size": 65,
            "max": 10
        },
        "secondArm": {
            "location": [650, 375],
            "color": [255, 255, 255],
            "size": 65,
            "max": 10
        }
    })

threeArmHandshake = MemeTemplate(
    "three arm handshake", IMAGE_THREE, {
        "handsText": {
            "location": [320, 90],
Пример #23
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/3QVQ2V5.jpg"

classroomStares = MemeTemplate(
    "classroom stares", IMAGE, {
        "bubbleText": {
            "location": [350, 250],
            "color": [255, 255, 255],
            "size": 80,
            "max": 10
        }
    })


def generateImage(bubbleText):
    return classroomStares.generateImage(bubbleText=bubbleText)
Пример #24
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/91Orpkg.jpg"

soccerTongue = MemeTemplate(
    "soccer tongue", IMAGE, {
        "tongueText": {
            "location": [330, 95],
            "color": [255, 255, 255],
            "size": 65,
            "max": 20
        },
        "personText": {
            "location": [555, 185],
            "color": [255, 255, 255],
            "size": 65,
            "max": 15
        }
    })


def generateImage(tongueText, personText):
    return soccerTongue.generateImage(tongueText=tongueText,
                                      personText=personText)
Пример #25
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/fAsM4Vb.jpg"

iCantRead = MemeTemplate(
    "i cant read", IMAGE, {
        "signText": {
            "location": [45, 110],
            "size": 45,
            "max": 20,
            "centered": [False, False],
        },
        "personText": {
            "location": [330, 625],
            "size": 65,
            "max": 20
        }
    })


def generateImage(signText, personText):
    return iCantRead.generateImage(signText=signText, personText=personText)
Пример #26
0
IMAGE = "https://i.imgur.com/pNR2At1.jpg"

trojanHorse = MemeTemplate(
    "trojan horse", IMAGE, {
        "hidersText": {
            "location": [240, 415],
            "color": [255, 255, 255],
            "size": 80,
            "max": 10
        },
        "horseText": {
            "location": [360, 225],
            "size": 80,
            "max": 10
        },
        "castleText": {
            "location": [520, 35],
            "size": 80,
            "max": 10,
            "centered": [True, False]
        },
        "welcomersText": {
            "location": [560, 550],
            "color": [255, 255, 255],
            "size": 80,
            "max": 10
        }
    })


def generateImage(hidersText, horseText, castleText, welcomersText):
Пример #27
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/lmZASmG.jpg"

executiveOrder = MemeTemplate(
    "executive order", IMAGE, {
        "text": {
            "location": [755, 575],
            "size": 60,
            "max": 20,
            "centered": [False, False]
        }
    })


def generateImage(text):
    return executiveOrder.generateImage(text=text)
Пример #28
0
# IMAGE = "https://lh3.googleusercontent.com/70CdRIbwtm_58qoxp5MgpplMnDC8BDwoS89HNxohXKpY8kks-L6Tj0e2eKNFssUvmloaFCUppnpyGEeh3CjLVEKVxmwZsxZmCMrFExcxIpPHlnOWaC2XrES8qeQw8FhZzOeCN7_KqutzjOkh6Q2jtAVR2VJON5aqb8btX2gUWW6IjkGBw9oVqdzcIqAj-RP8GYNZGoG3FIEZIgq1XWnCFnXO9YGHF_CSsR_mTPxHZs3KORNBN2UGaxYWJOSXczWUHTW_jwd3qgxwhFnUj5dn1O8rqgKHCG3FoKzFPO77f7dSLd9RiTbFD7oRYJ2QmkuEgr7G3r-8ujQEimoLesJLLhVDiiC-JOWdP0ZfXR96KI4dpme35v01jCbA3rLlMFqQKUjpLKG6yaCe855BQ0dyMR5kjM10cuiGGFDaABhMQ0PksdumZF4GO1UVav9CfUHA99CTPlq9MxrO094YpuYQ_ElSXDMATjFjORbA3Hv194DZ5BGZQZh8qxRguzCpJhO52yXZEElaHPiiyXPvyVomhDWcF6CaDLXztnZF6teMxVrkiIlDRZEU133TOV2u9wbqUdI-a7nEsib5GfU6-PeleDVQAI5TOpv1SsACBd3_N76ZmypoQk4j-J_rcexa--U-M1HQuQg9DTIoj53fl9EtQDiXlY4OGmAA4Urgrj9CIz6ZGclWL6RsBzVC84OIkGhyAm0n2h2vd95RI5RFwZLQPh_sgcgv9d_Re2P11w=w940-h889-no"
IMAGE = "https://tinyurl.com/carSkidding"

carSkidding = MemeTemplate(
    "car skidding", IMAGE, {
        "carText": {
            "location": [450, 660],
            "angle": 0,
            "color": [255, 255, 255],
            "size": 60,
            "max": 10
        },
        "straightText": {
            "location": [285, 210],
            "angle": 0,
            "color": [255, 255, 255],
            "size": 60,
            "max": 10
        },
        "exitText": {
            "location": [570, 210],
            "angle": 0,
            "color": [255, 255, 255],
            "size": 60,
            "max": 10
        }
    })


def generateImage(carText, straightText, exitText):
    return carSkidding.generateImage(carText=carText,
Пример #29
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/rv80SIU.jpg"

threeDoors = MemeTemplate(
    "three doors", IMAGE, {
        "firstDoorText": {
            "location": [75, 65],
            "size": 65,
            "max": 10
        },
        "secondDoorText": {
            "location": [280, 65],
            "size": 65,
            "max": 10
        },
        "thirdDoorText": {
            "location": [565, 65],
            "size": 65,
            "max": 10
        },
        "personText": {
            "location": [285, 755],
            "size": 45,
            "max": 10
        }
    })


def generateImage(firstDoorText, secondDoorText, thirdDoorText, personText):
    return threeDoors.generateImage(firstDoorText=firstDoorText,
Пример #30
0
from util.image.image import MemeTemplate

IMAGE = "https://i.imgur.com/cGLvumT.jpg"

flexSeal = MemeTemplate(
    "flex seal",
    IMAGE,
    {
        "holderText": {
            "location": [145, 135],
            "color": [255, 255, 255],
            "size": 65, "max": 15
        },
        "boxText": {
            "location": [205, 360],
            "size": 65, "max": 15
        },
        "receiverText": {
            "location": [320, 735],
            "size": 65, "max": 15
        }
    }
)

def generateImage(holderText, boxText, receiverText):
    return flexSeal.generateImage(
        holderText = holderText,
        boxText = boxText,
        receiverText = receiverText
    )