Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISlideShapes.AddPicture() doesn't add picture #649

Closed
ashahabov opened this issue Apr 3, 2024 Discussed in #480 · 2 comments
Closed

ISlideShapes.AddPicture() doesn't add picture #649

ashahabov opened this issue Apr 3, 2024 Discussed in #480 · 2 comments
Assignees
Labels
🐛 bug Something isn't working good first issue Good for newcomers

Comments

@ashahabov
Copy link
Member

ISlideShapes.AddPicture() method doesn't add picture on slide.

Client Code to Reproduce

var pres = new Presentation("picture-adding.pptx");
using var image = new FileStream("picture.png", FileMode.Open, FileAccess.Read);

pres.Slides[0].Shapes.AddPicture(image);

pres.Save();

picture-adding.pptx
picture.png

Actual Result

The slide is empty.

Expected Result

The slide should display a picture shape containing the image from the file picture.png.

Discussed in #480

Originally posted by Stravit
oMike
March 23, 2023

Hi,

I'd like to add a slide with an image, is it possible to e.g. add a new slide last in the presentation and then insert an image ?

@ashahabov ashahabov added 🐛 bug Something isn't working good first issue Good for newcomers labels Apr 3, 2024
@Luigicube
Copy link

I think the picture is added but either at a non-visible location or with a non-relevant size.
Changing size and location works.

@jcoliz
Copy link
Contributor

jcoliz commented May 13, 2024

Do you folks want to try this again? I cannot repro this on latest. This works just fine for me on latest master (0e5d22d). It's possible that this was fixed by fixing #671.

Actually now that I think about it, this is almost surely a duplicate of #671.

@ashahabov ashahabov self-assigned this May 13, 2024
ashahabov added a commit that referenced this issue Jun 4, 2024
A bug fix, specifically the "No Outline" issue (#649), has been added to the CHANGELOG.md under the Unreleased section. This update provides users with an understanding of recent changes in the application.
ashahabov added a commit that referenced this issue Jun 20, 2024
A typo in the word "applying" in both CHANGELOG.md and README.md was corrected. This change was made in the description of issue [#649](#649) under the release notes for Version 0.53.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants