Skip to content

Commit

Permalink
SVG Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Peters committed Jun 5, 2024
1 parent 2b4ef2e commit f74191e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/PhpPresentation/Writer/PowerPoint2007/ContentTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ public function render(): ZipInterface
// XML
$this->writeDefaultContentType($objWriter, 'xml', 'application/xml');

// SVG
$this->writeDefaultContentType($objWriter, 'svg', 'image/svg+xml');

// Presentation
$this->writeOverrideContentType($objWriter, '/ppt/presentation.xml', 'application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml');

Expand Down Expand Up @@ -110,6 +107,7 @@ public function render(): ZipInterface
$aMediaContentTypes['jpg'] = 'image/jpeg';
$aMediaContentTypes['jpeg'] = 'image/jpeg';
$aMediaContentTypes['png'] = 'image/png';
$aMediaContentTypes['svg'] = 'image/svg+xml';
foreach ($aMediaContentTypes as $key => $value) {
$this->writeDefaultContentType($objWriter, $key, $value);
}
Expand Down

0 comments on commit f74191e

Please sign in to comment.