Skip to content

Conversation

@seekuehe
Copy link

Description
This PR takes the shape shadow implementation and adapts it to images.
Related to Issue #986

Usage

let pptx = new PptxGenJS();
let slide = pptx.addSlide();

slide.addImage({
  x: 1,
  y: 1,
  path: "https://images.unsplash.com/photo-1506744038136-46273834b3fb?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyMTIyMnwwfDF8c2VhcmNofDJ8fGxhbmRzY2FwZXxlbnwwfHx8fDE2NTg5MzE0MDM&ixlib=rb-1.2.1&q=80&w=1080",
  shadow: {
    type: "outer",
    angle: 90,
    blur: 10,
    color: "000000",
    offset: 4,
    opacity: 0.5
  }
});

pptx.writeFile({ fileName: "PptxGenJS-Sandbox.pptx" });

Sample PPT file: PptxGenJS-Sandbox.pptx

@seekuehe seekuehe self-assigned this Aug 10, 2022
@tjinauyeung
Copy link

tjinauyeung commented Aug 10, 2022

Screenshot 2022-08-10 at 17 01 46

This view is still missing a description of the newly added slide.

@seekuehe seekuehe force-pushed the image-shadow-props branch from 03d2898 to d3c211d Compare August 11, 2022 09:16
@seekuehe seekuehe requested a review from tjinauyeung August 11, 2022 09:18
@seekuehe seekuehe closed this Aug 11, 2022
@seekuehe
Copy link
Author

PR to upstream repo: gitbrent#1147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants