Page 1 of 1

Illustrator (.ai) image not being converted with webhelp transform

Posted: Thu Feb 01, 2024 12:10 pm
by horisonten
Hello, I have an issue where my .ai image files are not being converted to a format that the browser can actually display when transforming to webhelp. The .ai files are simply copied to the image folder as is, and therefore not showing in the browser since .ai files can't be shown in the browser.

Shouldn't the .ai files be converted to for example a .png (like when transforming to PDF), even when transforming to webhelp?

Perhaps I just misunderstand something or can't find the correct setting to make it happen.

Re: Illustrator (.ai) image not being converted with webhelp transform

Posted: Fri Feb 02, 2024 4:23 pm
by ionela
Hi,

I'm sorry, but in the current WebHelp implementation this is not possible. The WebHelp transformation does not automatically convert .ai image files to another format that the browser can display when the output is produced. The images should be inserted in the final format to the DITA source files.

Let us know if you need further assistance.

Regards,
Ionela

Re: Illustrator (.ai) image not being converted with webhelp transform

Posted: Sat Feb 03, 2024 11:39 am
by xephon
We convert the files manually to SVG. Illustrator has an integrated script which allows this to be done in a batch Job. Another approach could be, to do this on the fly by using Inkscape and it's CLI, see https://gist.github.com/WebReflection/b ... 311b76835c
This could be adapted and done in the preprocessing. Jarno also integrated Inkscape in his Word plugin, BTW.