bugunrtf - Bugs: bug #64593, Embedded PNG images with only...

 
 

bug #64593: Embedded PNG images with only \picwgoalN and \pichgoalN extracts to empty output PNG

Submitter:  None
Submitted:  Thu 24 Aug 2023 09:58:18 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 24 Aug 2023 09:58:18 PM UTC, original submission:  

I'm working with some input RTF files that contain embedded PNG images. UNRTF would complete with no warnings or errors but product "empty" 0-byte PNGs. The output HTML produced in-line comments like this:


<!--picture data found, picture dimensions are 0 by 0, depth 1-->


I traced this to the input RTF only containing the following <pictsize> keywords in the {\pict} structure:


\picwgoalN
\pichgoalN


It was lacking these <pictsize> keywords:


\picwN
\pichN


I presume UNRTF is parsing the image dimensions from these two keywords, which are missing.

Since I'm not sure when this library will be updated, the work-around was duplicating the \picxgoalN keywords to \picxN keywords with the same dimensions, within the \pict structure.

See image section of the RTF spec for more detailed information:

https://www.biblioscape.com/rtf15_spec.htm

Hope this helps someone!

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code