public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* PowerPoint output - SVG image aspect ratio - BOM issue?
@ 2023-04-07 14:07 Thomas Redelberger
       [not found] ` <cf86aee2-1704-0bbf-102c-2be2c02be7c5-Mmb7MZpHnFY@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Redelberger @ 2023-04-07 14:07 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 968 bytes --]

Hi,

Regards PowerPoint output:

When linking SVG images, pandoc scales to the available space on a slide, while preserving the aspect ratio.

The aspect ratio seems to change a bit, when the SVG file starts with an UTF-8 BOM (=3 special bytes at the beginning of the file), which IMHO should not happen.

Command line (pandoc 3.1 for Windows):

> pandoc -t pptx -o testbom.pptx testbom.txt

I attach here a testbom.txt markdown input file plus two test SVG files, one with BOM, the other without.

I had started with org-mode input rather than markdown. Same result.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/cf86aee2-1704-0bbf-102c-2be2c02be7c5%40gmx.de.

[-- Attachment #2: blind_400x300.svg --]
[-- Type: image/svg+xml, Size: 639 bytes --]

[-- Attachment #3: blind_400x300_UTF-8-BOM.svg --]
[-- Type: image/svg+xml, Size: 642 bytes --]

[-- Attachment #4: testbom.txt --]
[-- Type: text/plain, Size: 184 bytes --]

% Test Title
% Test Author
% 2023-04-07

# Test Heading 1

![test image w. BOM](./blind_400x300_UTF-8-BOM.svg)

# Test Heading 2

![test image wo. BOM](./blind_400x300.svg)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PowerPoint output - SVG image aspect ratio - BOM issue?
       [not found] ` <cf86aee2-1704-0bbf-102c-2be2c02be7c5-Mmb7MZpHnFY@public.gmane.org>
@ 2023-04-07 16:03   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2023-04-07 16:03 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

I'll add code to drop the BOM before checking image size.


> On Apr 7, 2023, at 7:07 AM, Thomas Redelberger <redetho-Mmb7MZpHnFY@public.gmane.org> wrote:
> 
> <blind_400x300.svg>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-07 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-07 14:07 PowerPoint output - SVG image aspect ratio - BOM issue? Thomas Redelberger
     [not found] ` <cf86aee2-1704-0bbf-102c-2be2c02be7c5-Mmb7MZpHnFY@public.gmane.org>
2023-04-07 16:03   ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).