-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImageObject: contentUrl and .media
path
#966
Comments
I was wrong, the file is not copied anymore. E.g. a JATS XML file <?xml version="1.0"?>
<article>
<front>
<article-meta>
<contrib-group />
</article-meta>
</front>
<body>
<fig id="fig1">
<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="test.jpg"
id="g1" mimetype="image/jpeg" />
</fig>
</body>
<back>
</back>
</article> Running node dist convert test/test.xml --from jats test/out/test.json yields the following structure: With 0.115.4 running node dist/cli convert test/test.xml --from jats test/out/test.json gave test |
Thanks once again for the bug report and the investigative notes @rgieseke, very much appreciated 💖 After looking into this myself, it looks like Encoda's Our unit tests didn't catch the regression because they mostly bypass this codepath, and instead test the individual codec's Unfortunately, I think the best bet for you right now is to downgrade to v0.116.1 while we fix the issues (and add tests to make sure this doesn't happen in the future). Meanwhile let me know if I can help with anything else! |
Thanks for the explanation! Not sure how exactly the tmp paths there were handled, maybe it's not a problem anymore and are relative now? |
After upgrading to 0.117.4 the
contentUrl
paths of ImageObjects don't contain the sibling path anymore.They are still copied to the sibling folder (
encoda/src/index.ts
Line 350 in 0a0ed52
Is this change on purpose (one could always map this i guess)?
The text was updated successfully, but these errors were encountered: