So my topic is colostrum
A medical awareness poster titled "Colostrum - Baby's First Vaccine" for World Breastfeeding Week. The poster shows a mother breastfeeding a newborn baby in a warm, nurturing scene. Key facts displayed: golden-yellow colostrum drop labeled "Liquid Gold", icons showing immunoglobulins/antibodies, growth factors, and white blood cells. Text highlights: "Rich in IgA Antibodies", "Protects Against Infections", "Seals the Gut", "First 72 Hours are Golden", "Every Drop Counts". A comparison section shows colostrum vs mature milk. The color scheme uses warm golden-yellow and deep green tones. Professional medical poster style with the tagline "Nature's First Immunization" at the bottom. Clean, educational, suitable for a college competition.
Create poster with the help of above information and paste matoshri ayurved college logo on left side
mkdir -p /tmp/workspace/colostrum-poster && python /tmp/skills/shared/scripts/fetch_images.py "https://d361swluvexzqs.cloudfront.net/chats-attachments/IMG-20260727-WA0009-1785756712420-016pvw.jpg" 2>/dev/null | python3 -c " import json, sys, base64 data = json.load(sys.stdin) if data[0]['base64']: raw = base64.b64decode(data[0]['base64'].split(',')[1]) with open('/tmp/workspace/colostrum-poster/competition_flyer.jpg', 'wb') as f: f.write(raw) print('Saved', len(raw), 'bytes') else: print('Error:', data[0]['error']) "
python3 -c " from PIL import Image img = Image.open('/tmp/workspace/colostrum-poster/competition_flyer.jpg') print('Size:', img.size) # Crop the logo region - top left circle area # Logo appears to be roughly in top-left area of the flyer logo_crop = img.crop((0, 0, 230, 230)) logo_crop.save('/tmp/workspace/colostrum-poster/logo_raw.png') print('Logo cropped and saved') "
python3 << 'EOF' from PIL import Image, ImageDraw, ImageFont, ImageFilter, ImageEnhance import math, os # ββ Canvas ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ W, H = 2480, 3508 # A4 @ 300 dpi portrait poster = Image.new("RGB", (W, H), "#FFF8F0") draw = ImageDraw.Draw(poster) # ββ Colour palette βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ DARK_GREEN = "#1B4332" MED_GREEN = "#2D6A4F" LIGHT_GREEN = "#52B788" GOLD = "#D4A017" DEEP_GOLD = "#A67C00" CREAM = "#FFF8F0" WHITE = "#FFFFFF" DARK_RED = "#8B0000" LIGHT_GOLD = "#FFF0B3" ACCENT_PINK = "#C9184A" # ββ Fonts βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ def load_font(size, bold=False): candidates = [ f"/usr/share/fonts/truetype/dejavu/DejaVuSans{'Bold' if bold else ''}.ttf", f"/usr/share/fonts/truetype/liberation/LiberationSans-{'Bold' if bold else 'Regular'}.ttf", "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", ] for p in candidates: if os.path.exists(p): return ImageFont.truetype(p, size) return ImageFont.load_default() f_huge = load_font(130, bold=True) f_large = load_font(90, bold=True) f_med = load_font(68, bold=True) f_body = load_font(54) f_body_b = load_font(54, bold=True) f_small = load_font(44) f_small_b = load_font(44, bold=True) f_tiny = load_font(38) f_tagline = load_font(62, bold=True) # ββ Helper: rounded rectangle βββββββββββββββββββββββββββββββββββββββββββββββββ def rounded_rect(draw, xy, radius, fill, outline=None, width=4): x1,y1,x2,y2 = xy draw.rounded_rectangle([x1,y1,x2,y2], radius=radius, fill=fill, outline=outline, width=width) # ββ Helper: centered text ββββββββββββββββββββββββββββββββββββββββββββββββββββββ def cx(draw, y, text, font, color): bb = draw.textbbox((0,0), text, font=font) tw = bb[2]-bb[0] draw.text(((W-tw)//2, y), text, font=font, fill=color) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # BACKGROUND gradient strips # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ for y in range(H): r = int(255 - (y/H)*30) g = int(248 - (y/H)*40) b = int(240 - (y/H)*50) draw.line([(0,y),(W,y)], fill=(r,g,b)) # ββ Top dark-green banner ββββββββββββββββββββββββββββββββββββββββββββββββββββββ rounded_rect(draw, [0, 0, W, 320], radius=0, fill=DARK_GREEN) # ββ Decorative gold line under banner βββββββββββββββββββββββββββββββββββββββββ draw.rectangle([0, 318, W, 336], fill=GOLD) # ββ Bottom footer ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ rounded_rect(draw, [0, H-200, W, H], radius=0, fill=DARK_GREEN) draw.rectangle([0, H-202, W, H-200], fill=GOLD) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # LOGO (top-left of banner) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ logo_path = '/tmp/workspace/colostrum-poster/logo_raw.png' logo = Image.open(logo_path).convert("RGBA") logo = logo.resize((250, 250), Image.LANCZOS) # White circle background for logo logo_bg = Image.new("RGBA", (270, 270), (255,255,255,0)) lgdraw = ImageDraw.Draw(logo_bg) lgdraw.ellipse([0,0,269,269], fill=(255,255,255,220)) logo_bg.paste(logo, (10, 10), logo) poster.paste(logo_bg, (50, 30), logo_bg) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # HEADER TEXT (right of logo in banner) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ draw.text((350, 40), "MATOSHRI AYURVED COLLEGE", font=f_large, fill=WHITE) draw.text((350, 145), "Eklahare, Nashik", font=f_body, fill=GOLD) draw.text((350, 210), "World Breastfeeding Week 2026", font=f_small_b, fill=LIGHT_GREEN) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # MAIN TITLE BLOCK # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # Gold gradient title box rounded_rect(draw, [80, 360, W-80, 590], radius=30, fill=GOLD, outline=DARK_GREEN, width=6) cx(draw, 380, "COLOSTRUM", f_huge, DARK_GREEN) cx(draw, 510, "Baby's First Vaccine", f_med, DARK_RED) # Subtitle ribbon rounded_rect(draw, [200, 608, W-200, 670], radius=20, fill=MED_GREEN) cx(draw, 618, "\"Liquid Gold β Nature's First Immunization\"", f_small_b, WHITE) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # WHAT IS COLOSTRUM section # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ rounded_rect(draw, [60, 700, W-60, 900], radius=20, fill=LIGHT_GOLD, outline=GOLD, width=4) draw.text((120, 715), "WHAT IS COLOSTRUM?", font=f_med, fill=DARK_GREEN) draw.text((120, 800), "A thick, golden-yellow fluid produced in the first 2β3 days after delivery.", font=f_body, fill="#333333") draw.text((120, 858), "It is the FIRST milk β dense with immunity, nutrition and growth factors.", font=f_body, fill="#333333") # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # WHY IT IS BABY'S FIRST VACCINE (2-column table) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ rounded_rect(draw, [60, 930, W-60, 980], radius=10, fill=DARK_GREEN) cx(draw, 938, "WHY IS IT CALLED BABY'S FIRST VACCINE?", f_small_b, WHITE) components = [ ("π‘ Secretory IgA (sIgA)", "Antibodies against bacteria & viruses; lines gut to block infection"), ("π¬ Macrophages", "White blood cells that directly destroy pathogens"), ("π Lactoferrin", "Binds iron, starves bacteria; also has antiviral action"), ("β Lysozyme", "Enzyme that breaks down bacterial cell walls"), ("π Complement", "Kills bacteria by puncturing their membranes"), ("π‘ Cytokines & Interleukins", "Immunomodulating agents that regulate the immune response"), ] row_h = 110 col_x = [80, 1260] for i, (comp, action) in enumerate(components): row = i // 2 col = i % 2 x = col_x[col] y = 1000 + row * row_h bg = LIGHT_GOLD if row % 2 == 0 else "#E8F5E9" rounded_rect(draw, [x, y, x+1140, y+row_h-6], radius=12, fill=bg, outline=LIGHT_GREEN, width=2) draw.text((x+14, y+8), comp, font=f_small_b, fill=DARK_GREEN) draw.text((x+14, y+54), action, font=f_small, fill="#333333") # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # KEY FACTS (3 columns) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ facts_y = 1340 rounded_rect(draw, [60, facts_y, W-60, facts_y+50], radius=10, fill=MED_GREEN) cx(draw, facts_y+6, "KEY FACTS EVERY MOTHER MUST KNOW", f_small_b, WHITE) facts = [ ("β± First 1 Hour", "Initiate breastfeeding\nwithin 1 hour of birth\n(WHO Recommendation)"), ("π Liquid Gold", "Just a few teaspoons\ncontain everything\na newborn needs"), ("π§± Gut Seal", "IgA coats the intestinal\nlining β preventing\npathogen entry"), ("πΌ Low Volume,\n High Value", "Small quantity, but\nmaximum immune\nprotection"), ("π± Good Bacteria", "Promotes Lactobacilli;\nprotects against\nharmful E. coli"), ("β Never Discard", "Colostrum should\nNEVER be thrown\naway β it is medicine"), ] fbox_w = (W - 160) // 3 - 20 for i, (title, text) in enumerate(facts): col = i % 3 row = i // 3 bx = 80 + col * (fbox_w + 30) by = facts_y + 70 + row * 270 rounded_rect(draw, [bx, by, bx+fbox_w, by+250], radius=18, fill=WHITE, outline=GOLD, width=4) draw.text((bx+20, by+14), title, font=f_small_b, fill=DARK_GREEN) lines = text.split('\n') for li, ln in enumerate(lines): draw.text((bx+20, by+80+li*52), ln, font=f_small, fill="#444444") # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # 3 STAGES OF MILK timeline # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ tl_y = 1940 rounded_rect(draw, [60, tl_y, W-60, tl_y+48], radius=10, fill=DARK_GREEN) cx(draw, tl_y+6, "THE THREE STAGES OF BREAST MILK", f_small_b, WHITE) stages = [ (GOLD, "COLOSTRUM", "Days 1β3", "High IgA Β· Low volume\nDense immunity\nGolden yellow"), (LIGHT_GREEN, "TRANSITIONAL", "Days 4β14","Increasing fat\n& lactose\nIgA decreasing"), (MED_GREEN, "MATURE MILK", "Day 14+", "Full nutrition\nMaintained\nimmunity"), ] sw = (W - 200) // 3 for i,(col,name,days,desc) in enumerate(stages): sx = 100 + i * sw sy = tl_y + 65 # Arrow connector (except last) if i < 2: draw.polygon([(sx+sw-30, sy+60),(sx+sw+30, sy+90),(sx+sw-30, sy+120)], fill=GOLD) rounded_rect(draw, [sx, sy, sx+sw-50, sy+230], radius=18, fill=col, outline=DARK_GREEN, width=3) draw.text((sx+20, sy+10), name, font=f_small_b, fill=WHITE) draw.text((sx+20, sy+60), days, font=f_small, fill=WHITE) for li,ln in enumerate(desc.split('\n')): draw.text((sx+20, sy+108+li*44), ln, font=f_tiny, fill=WHITE) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # AYURVEDIC PERSPECTIVE # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ay_y = 2230 rounded_rect(draw, [60, ay_y, W-60, ay_y+280], radius=20, fill="#1B4332", outline=GOLD, width=5) draw.text((120, ay_y+20), "πΏ AYURVEDIC PERSPECTIVE", font=f_med, fill=GOLD) draw.text((120, ay_y+110), "In Ayurveda, colostrum is known as PRATHAMA DUGDHA (first milk).", font=f_body, fill=WHITE) draw.text((120, ay_y+170), "It carries RASAYAN (rejuvenating) properties, conferring:", font=f_body, fill=WHITE) draw.text((120, ay_y+228), "BALA (strength) Β· VYADHIKSHAMATVA (disease resistance) Β· OJAS (vitality)", font=f_small_b, fill=GOLD) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # STATISTICS BAND # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ stat_y = 2540 rounded_rect(draw, [60, stat_y, W-60, stat_y+220], radius=18, fill=LIGHT_GOLD, outline=DEEP_GOLD, width=4) draw.text((120, stat_y+10), "π DID YOU KNOW?", font=f_med, fill=DARK_RED) stats = [ "β Colostrum contains up to 10Γ more protein than mature milk", "β IgA in colostrum coats 400 sq cm of intestinal surface in the newborn", "β Breastfed babies have 6Γ fewer ear infections & lower risk of SIDS", "β WHO: Early initiation of breastfeeding could save 800,000 infant lives yearly", ] for i, s in enumerate(stats): draw.text((120, stat_y+90+i*32), s, font=f_small, fill="#333333") # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # TAGLINE BANNER # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ tag_y = 2790 rounded_rect(draw, [60, tag_y, W-60, tag_y+110], radius=24, fill=ACCENT_PINK) cx(draw, tag_y+8, "\" Every Drop Counts... Every Feed Matters \"", f_tagline, WHITE) cx(draw, tag_y+72, "Don't discard the gold β Give Colostrum First!", f_small_b, LIGHT_GOLD) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # SLOGANS (2-up) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ sl_y = 2930 slogans = [ ("First Feed = First Shield", DARK_GREEN), ("Nature's Immunization Before Any Needle", MED_GREEN), ] sw2 = (W - 200) // 2 for i,(sl,col) in enumerate(slogans): bx = 80 + i*(sw2+40) rounded_rect(draw, [bx, sl_y, bx+sw2, sl_y+100], radius=16, fill=col) bb = draw.textbbox((0,0), sl, font=f_small_b) tw = bb[2]-bb[0] draw.text((bx+(sw2-tw)//2, sl_y+20), sl, font=f_small_b, fill=WHITE) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # FOOTER # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ draw.text((80, H-160), "Dept. of Kaumarbhritya, Prastuti Tantra & Streerog", font=f_small_b, fill=WHITE) draw.text((80, H-110), "Matoshri Ayurved College, Eklahare, Nashik", font=f_small, fill=GOLD) cx(draw, H-70, "Healthy Mothers. Healthy Generations.", f_small_b, LIGHT_GREEN) # ββ Paste logo again bottom-left for branding ββββββββββββββββββββββββββββββββββ logo_sm = logo.resize((120, 120), Image.LANCZOS) logo_sm_bg = Image.new("RGBA", (130,130), (255,255,255,0)) lgd2 = ImageDraw.Draw(logo_sm_bg) lgd2.ellipse([0,0,129,129], fill=(255,255,255,180)) logo_sm_bg.paste(logo_sm, (5,5), logo_sm) poster.paste(logo_sm_bg, (W-160, H-160), logo_sm_bg) # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ # SAVE # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ out = "/tmp/workspace/colostrum-poster/Colostrum_Poster_Matoshri.png" poster.save(out, dpi=(300,300)) print("Saved:", out, " Size:", poster.size) EOF
Colostrum Poster Matoshri
Image Β· PNG