docxConverter unable to extract images - problem and solution

Colleagues,

I’d just like to point out a problem we encountered when trying to produce JATS files with the excellent docxConverter plugin, and the solution to this problem.

Problem: for some of our journals, docxConverter was unable to extract the images from the .docx file. Only an .xml file was saved. On the other hand, everything worked fine for other journals in the same OJS instance.

Cause of problem: for the journals concerned, it appeared that the “Image” component (key = IMAGE) was manually deleted during the initial configuration, because only PDF files were used at that time. The only remaining component was “Article text” (key = SUBMISSION). Clearly, docxConverter needs this “Image” component to assign to the extracted images.

Solution 1: Restore the settings in the administration interface > Workflow settings > Submission > Components > Restore defaults. This will make reappear all deleted components.

Solution 2: In the database, search the “genres” table for your newspaper (context_id) and the line with the entry_key = IMAGE (SELECT * FROM genres WHERE context_id = ‘Id_Of_Your_Journal’ AND entry_key = ‘IMAGE’;). Change the value of the column “enabled” to 1.

I hope this will save your time.

3 Likes

This topic was automatically closed after 8 days. New replies are no longer allowed.