Edit this PPT and Add more images from textbook of radiology
You need to edit an existing PowerPoint presentation about MRI of the Wrist by adding new slides with textbook images. Here is the complete task: ## Context The presentation is at: `/home/daytona/workspace/attachments/e146ac61-a885-418d-a2c6-0ac41a92bd24/mri wrist final.pptx` It has 88 slides covering MRI anatomy of the wrist (tendons, ligaments, carpal tunnel, TFC, Kienböck disease, TFCC lesions, SL ligament tears, etc.) ## Textbook Images Available From Grainger & Allison's Diagnostic Radiology textbook, the following wrist MRI images are available. You need to find ALL image URLs in the wrist section by reading the file: `/textbooks/9780323760751/9780323760751_block7.md` from line 3770 to about line 3950. Known images already found: 1. `https://cdn.orris.care/cdss_images/3de0f806d1e72be240d7f693f72e2c50b4ea15ca0fbf906c44d0e83c903a394b.png` - Fig 17.62: PA vs AP wrist X-ray views 2. `https://cdn.orris.care/cdss_images/7a757438d1c6fbf8e1f8d7796aa4bccc52c7128b47cf98f708fe4636977e8a3b.png` - Fig 39.26: Scaphoid Fracture Non-union on CT 3. `https://cdn.orris.care/cdss_images/66e3b3d0b44d5e0c90f0458d3cd4a9bf07585bbbe7c582251eba9b0529d211e1.png` - Fig 39.27: Non-union of Scaphoid Fracture (PA + MRI showing AVN) You need to READ the Grainger block7.md file from line 3780 to 3950 to find MORE image URLs (there should be images for ligaments, TFCC, carpal instability, etc.). Also read the Imaging Anatomy book at `/textbooks/9781626239845/9781626239845_block4.md` from line 1 to 100 to find the wrist pathology images. ## Task Steps 1. **Read the textbook files** to find all wrist-related image URLs and their captions (read `/textbooks/9780323760751/9780323760751_block7.md` at offset=3795, limit=200) 2. **Unpack the PPTX**: ```bash cd /home/daytona/workspace && mkdir -p mri-wrist-edit python /home/daytona/skills/pptx/scripts/office/unpack.py "/home/daytona/workspace/attachments/e146ac61-a885-418d-a2c6-0ac41a92bd24/mri wrist final.pptx" /home/daytona/workspace/mri-wrist-edit/unpacked/ ``` 3. **Download the textbook images** using the fetch_images helper: ```bash node /home/daytona/skills/shared/scripts/fetch_images.js "URL1" "URL2" ... ``` 4. **Add new slides** - Create 5-8 new slides at the END of the presentation (after slide 88). Each slide should: - Have a dark/blue background matching the existing style (#1a2744 or similar dark blue) - Show one textbook image (use `python /home/daytona/skills/pptx/scripts/add_slide.py unpacked/ slide23.xml` to duplicate a slide with blue background and image) - Have a title text like "Textbook: [Topic]" - Have caption text below or beside the image from the textbook figure caption - Include "Source: Grainger & Allison's Diagnostic Radiology" as source text 5. **Add slides to the presentation**: - After duplicating slides, add each new slide's `<p:sldId id="XXX" r:id="rIdXXX"/>` to the `<p:sldIdLst>` in `/home/daytona/workspace/mri-wrist-edit/unpacked/ppt/presentation.xml` 6. **Edit each new slide XML** to: - Embed the downloaded image as base64 - Set appropriate title and caption text 7. **Clean and repack**: ```bash python /home/daytona/skills/pptx/scripts/clean.py /home/daytona/workspace/mri-wrist-edit/unpacked/ python /home/daytona/skills/pptx/scripts/office/pack.py /home/daytona/workspace/mri-wrist-edit/unpacked/ /home/daytona/workspace/mri-wrist-edit/mri_wrist_with_textbook_images.pptx --original "/home/daytona/workspace/attachments/e146ac61-a885-418d-a2c6-0ac41a92bd24/mri wrist final.pptx" ``` ## Important Notes - Read the skill files first: `/home/daytona/skills/pptx/editing.md` and `/home/daytona/skills/pptx/scripts/` directory - Use the scripts as documented - don't reinvent them - Focus on adding slides with WRIST-SPECIFIC MRI images from the textbook - The images need to be about: scaphoid AVN/fractures, wrist ligament tears (SL/LT), TFCC, carpal instability, Kienböck disease - Make slides visually clean - one or two large images per slide with concise caption - The add_slide.py script prints the XML to add to presentation.xml sldIdLst - you must add it manually ## Output Return the path to the final output PPTX file and a list of the slides you added with their topics.
When will it be ready ?