public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Pandoc docx to HTML include height and width on <img> tag
@ 2015-11-18 11:52 Jackson Delahunt
       [not found] ` <6d44e180-73ee-4b09-9a63-f9c2567caa3b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Jackson Delahunt @ 2015-11-18 11:52 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1338 bytes --]

I'm converting Microsoft .docx files to HTML using Pandoc. Currently using 
the --extract-media option generates <img> tags of the form <img 
src='pandoc.image.png'> but it doesn't add the height and width attributes 
of the image to the <img> tag. How do I get pandoc to add the height and 
width properties of the image as attributes to the <img> tag?

I'm only able to use the command line to do the conversion, no scripting. 
The command I'm running is pandoc --from docx --to html input.docx 
--extract-media=/tmp/pandoc.

I have also posted this question on stackoverflow, but this seems like the 
best place to get answers. Link included here for reference: 
http://stackoverflow.com/questions/33773735/pandoc-docx-to-html-include-height-and-width-on-img-tag

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6d44e180-73ee-4b09-9a63-f9c2567caa3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1842 bytes --]

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

* Re: Pandoc docx to HTML include height and width on <img> tag
       [not found] ` <6d44e180-73ee-4b09-9a63-f9c2567caa3b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-11-21 16:56   ` John MacFarlane
  2015-11-21 16:58   ` John MacFarlane
  1 sibling, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2015-11-21 16:56 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Only the most recent dev version of pandoc has the
ability to specify image sizes in the document model.
Now that we have that, we should be able to modify the
docx reader so that it preserves this information.
But it's not possible in released versions of pandoc.

+++ Jackson Delahunt [Nov 18 15 03:52 ]:
>   I'm converting Microsoft .docx files to HTML using Pandoc. Currently
>   using the --extract-media option generates <img> tags of the form <img
>   src='pandoc.image.png'> but it doesn't add the height and width
>   attributes of the image to the <img> tag. How do I get pandoc to add
>   the height and width properties of the image as attributes to the <img>
>   tag?
>   I'm only able to use the command line to do the conversion, no
>   scripting. The command I'm running is pandoc --from docx --to html
>   input.docx --extract-media=/tmp/pandoc.
>   I have also posted this question on stackoverflow, but this seems like
>   the best place to get answers. Link included here for reference:
>   http://stackoverflow.com/questions/33773735/pandoc-docx-to-html-include
>   -height-and-width-on-img-tag
>
>   --
>   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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/6d44e180-73ee-4b09-
>   9a63-f9c2567caa3b%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   3. https://groups.google.com/d/msgid/pandoc-discuss/6d44e180-73ee-4b09-9a63-f9c2567caa3b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout


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

* Re: Pandoc docx to HTML include height and width on <img> tag
       [not found] ` <6d44e180-73ee-4b09-9a63-f9c2567caa3b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2015-11-21 16:56   ` John MacFarlane
@ 2015-11-21 16:58   ` John MacFarlane
  1 sibling, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2015-11-21 16:58 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

PS. If you submit a bug report on jgm/pandoc's tracker, it will
help us remember to do this.

Request support for image size (width/height) in the docx reader.


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

end of thread, other threads:[~2015-11-21 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-18 11:52 Pandoc docx to HTML include height and width on <img> tag Jackson Delahunt
     [not found] ` <6d44e180-73ee-4b09-9a63-f9c2567caa3b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-11-21 16:56   ` John MacFarlane
2015-11-21 16:58   ` 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).