Explain Difference between Tinea curies ,incognito, vulgaris with images. A poster showing images and in handwritten font

Reading File
Finding Sources
Searching Images

tinea cruris groin ringworm clinical

Reading File
Searching Images

tinea incognito steroid modified dermatophyte

Finding Sources
Finding Sources
Searching Images

tinea versicolor pityriasis versicolor hypopigmented patches

Reading File
Reading File
Running Command

ls /home/daytona/workspace/ 2>/dev/null && node /home/daytona/skills/shared/scripts/fetch_images.js "https://cdn.orris.care/cdss_images/DermNetNZ_1760031403560_72365f46-a8b9-4f2b-ac71-30080f844b56.jpg" "https://cdn.orris.care/cdss_images/pmc_clinical_VQA_4fe96f386ec94c37910863da86d02f2240d1fdf998dc12ac4dae3cb8855f5fe5.jpg" "https://cdn.orris.care/cdss_images/DermNetNZ_1760034292852_87fc2230-22b9-44ed-a0b3-1ae5917b024c.jpg" 2>&1 | head -5

Running Command

ls /home/daytona/workspace/

Running Command

mkdir -p /home/daytona/workspace/tinea-poster && ls /home/daytona/skills/shared/scripts/

Running Command

node /home/daytona/skills/shared/scripts/fetch_images.js "https://cdn.orris.care/cdss_images/DermNetNZ_1760031403560_72365f46-a8b9-4f2b-ac71-30080f844b56.jpg" "https://cdn.orris.care/cdss_images/pmc_clinical_VQA_4fe96f386ec94c37910863da86d02f2240d1fdf998dc12ac4dae3cb8855f5fe5.jpg" "https://cdn.orris.care/cdss_images/DermNetNZ_1760034292852_87fc2230-22b9-44ed-a0b3-1ae5917b024c.jpg" 2>&1 | head -3

Writing File

~/tinea-poster/poster.js

const pptxgen = require("pptxgenjs");
const { execSync } = require("child_process");

// Fetch images
const urls = [
  "https://cdn.orris.care/cdss_images/DermNetNZ_1760031403560_72365f46-a8b9-4f2b-ac71-30080f844b56.jpg",
  "https://cdn.orris.care/cdss_images/pmc_clinical_VQA_4fe96f386ec94c37910863da86d02f2240d1fdf998dc12ac4dae3cb8855f5fe5.jpg",
  "https://cdn.orris.care/cdss_images/DermNetNZ_1760034292852_87fc2230-22b9-44ed-a0b3-1ae5917b024c.jpg"
];

const images = JSON.parse(
  execSync(`node /home/daytona/skills/shared/scripts/fetch_images.js ${urls.map(u => `"${u}"`).join(" ")}`).toString()
);

const pres = new pptxgen();
pres.layout = "LAYOUT_WIDE"; // 13.3" x 7.5"

const slide = pres.addSlide();

// === BACKGROUND ===
slide.addShape(pres.ShapeType.rect, {
  x: 0, y: 0, w: 13.3, h: 7.5,
  fill: { color: "FDF6EC" }
});

// === DECORATIVE TOP BANNER ===
slide.addShape(pres.ShapeType.rect, {
  x: 0, y: 0, w: 13.3, h: 0.85,
  fill: { color: "8B1A1A" }
});

// === TITLE ===
slide.addText("Tinea Infections: Know the Difference", {
  x: 0.2, y: 0.08, w: 12.9, h: 0.7,
  fontSize: 30,
  bold: true,
  color: "FFFFFF",
  fontFace: "Caveat",
  align: "center",
  valign: "middle",
  margin: 0
});

// === SUBTITLE ===
slide.addText("A Visual Clinical Guide  •  Dermatology", {
  x: 0.2, y: 0.78, w: 12.9, h: 0.28,
  fontSize: 13,
  color: "F0C080",
  fontFace: "Caveat",
  align: "center",
  italic: true
});

// === COLUMN POSITIONS ===
const cols = [
  { x: 0.25, title: "Tinea Cruris", subtitle: '"Jock Itch"', color: "C0392B", bg: "FDEDEC" },
  { x: 4.6,  title: "Tinea Incognito", subtitle: "Steroid-Modified", color: "1A5276", bg: "EBF5FB" },
  { x: 8.95, title: "Tinea Versicolor", subtitle: "Pityriasis Versicolor", color: "1E8449", bg: "E9F7EF" }
];

const colW = 4.1;

cols.forEach((col, i) => {
  // Card background
  slide.addShape(pres.ShapeType.rect, {
    x: col.x, y: 1.1, w: colW, h: 6.25,
    fill: { color: col.bg },
    line: { color: col.color, width: 2.5, dashType: "solid" },
    shadow: { type: "outer", color: "888888", blur: 5, offset: 3, angle: 45 }
  });

  // Colored header bar
  slide.addShape(pres.ShapeType.rect, {
    x: col.x, y: 1.1, w: colW, h: 0.55,
    fill: { color: col.color }
  });

  // Title
  slide.addText(col.title, {
    x: col.x + 0.05, y: 1.12, w: colW - 0.1, h: 0.45,
    fontSize: 22,
    bold: true,
    color: "FFFFFF",
    fontFace: "Caveat",
    align: "center",
    valign: "middle",
    margin: 0
  });

  // Subtitle tag
  slide.addText(col.subtitle, {
    x: col.x + 0.2, y: 1.68, w: colW - 0.4, h: 0.3,
    fontSize: 14,
    italic: true,
    color: col.color,
    fontFace: "Caveat",
    align: "center"
  });

  // Image
  if (images[i] && images[i].base64) {
    slide.addImage({
      data: images[i].base64,
      x: col.x + 0.25,
      y: 1.98,
      w: colW - 0.5,
      h: 1.85,
      rounding: true
    });
  }

  // Divider
  slide.addShape(pres.ShapeType.line, {
    x: col.x + 0.3, y: 3.88, w: colW - 0.6, h: 0,
    line: { color: col.color, width: 1.5, dashType: "dash" }
  });
});

// === CONTENT ===

// --- TINEA CRURIS ---
const crurisContent = [
  { text: "ORGANISM", options: { bold: true, color: "C0392B", breakLine: true } },
  { text: "T. rubrum, E. floccosum\n", options: { color: "333333", breakLine: true } },
  { text: "LOCATION", options: { bold: true, color: "C0392B", breakLine: true } },
  { text: "Inguinal folds, inner thighs,\nperineal & perianal skin\n", options: { color: "333333", breakLine: true } },
  { text: "APPEARANCE", options: { bold: true, color: "C0392B", breakLine: true } },
  { text: "Well-marginated annular plaque,\nraised scaly border, central clearing\n", options: { color: "333333", breakLine: true } },
  { text: "KEY FACTS", options: { bold: true, color: "C0392B", breakLine: true } },
  { text: "3× more common in men\nKOH: branching hyphae\nRx: topical/oral antifungals", options: { color: "333333" } }
];

slide.addText(crurisContent, {
  x: cols[0].x + 0.18, y: 3.95, w: colW - 0.35, h: 3.3,
  fontSize: 11.5,
  fontFace: "Caveat",
  valign: "top"
});

// --- TINEA INCOGNITO ---
const incognitoContent = [
  { text: "ORGANISM", options: { bold: true, color: "1A5276", breakLine: true } },
  { text: "T. rubrum (most common)\n", options: { color: "333333", breakLine: true } },
  { text: "CAUSE", options: { bold: true, color: "1A5276", breakLine: true } },
  { text: "Misdiagnosed & treated with\ntopical corticosteroids\n", options: { color: "333333", breakLine: true } },
  { text: "APPEARANCE", options: { bold: true, color: "1A5276", breakLine: true } },
  { text: "Atypical morphology — blurred borders,\nmissing scale, may look like eczema.\nSteroids cause striae + wide spread\n", options: { color: "333333", breakLine: true } },
  { text: "KEY FACTS", options: { bold: true, color: "1A5276", breakLine: true } },
  { text: "KOH: numerous hyphae\nStop steroids immediately!\nRx: antifungal ± systemic therapy", options: { color: "333333" } }
];

slide.addText(incognitoContent, {
  x: cols[1].x + 0.18, y: 3.95, w: colW - 0.35, h: 3.3,
  fontSize: 11.5,
  fontFace: "Caveat",
  valign: "top"
});

// --- TINEA VERSICOLOR ---
const versicolorContent = [
  { text: "ORGANISM", options: { bold: true, color: "1E8449", breakLine: true } },
  { text: "Malassezia spp. (yeast)\n", options: { color: "333333", breakLine: true } },
  { text: "LOCATION", options: { bold: true, color: "1E8449", breakLine: true } },
  { text: "Trunk, upper back, shoulders,\narms; sun-exposed areas\n", options: { color: "333333", breakLine: true } },
  { text: "APPEARANCE", options: { bold: true, color: "1E8449", breakLine: true } },
  { text: "Hypo- or hyperpigmented patches,\nfine branny scale, well-demarcated.\nMore noticeable after sun exposure\n", options: { color: "333333", breakLine: true } },
  { text: "KEY FACTS", options: { bold: true, color: "1E8449", breakLine: true } },
  { text: "KOH: 'spaghetti & meatballs'\nWood's lamp: copper-orange glow\nRx: topical azoles / selenium sulfide", options: { color: "333333" } }
];

slide.addText(versicolorContent, {
  x: cols[2].x + 0.18, y: 3.95, w: colW - 0.35, h: 3.3,
  fontSize: 11.5,
  fontFace: "Caveat",
  valign: "top"
});

// === BOTTOM COMPARISON BAR ===
slide.addShape(pres.ShapeType.rect, {
  x: 0, y: 7.18, w: 13.3, h: 0.32,
  fill: { color: "4A235A" }
});

slide.addText("⚕  All confirmed by KOH preparation  •  Tinea Vulgaris is not a recognized clinical entity  •  Source: Fitzpatrick's Dermatology, Andrews' Diseases of the Skin", {
  x: 0.1, y: 7.19, w: 13.1, h: 0.28,
  fontSize: 10,
  color: "E8DAEF",
  fontFace: "Caveat",
  align: "center",
  italic: true
});

pres.writeFile({ fileName: "/home/daytona/workspace/tinea-poster/Tinea_Comparison_Poster.pptx" });
console.log("Poster created successfully!");
You've run out of free credits. Sign up for a free account to continue using Orris.
This is a shared conversation. Sign in to Orris to start your own chat.