The output of the following example document including two graphics (the EPS can be freely downloaded from https://www.freepik.com/index.php?goto=74&idfoto=762099) shows some problems with the post-processing of images in LaTeXML:
Using LaTeXML like
the output looks like
I see three issues here:
For the test I had installed the latest version of LaTeXML on Mac OS 10.12.6 via
My versions of the software were
Issue (1) seems due to transparency; I now check if the image already has a transparent color set. The result is better, perhaps, but still kind of iffy (perhaps for other reasons?)
Issue(2) is a bit tricky;
Issue(3) the trim (& clip) needed to be handled in points relative to the image's own resolution, even though we're magnifying the image slightly.
So, this is all (mostly) fixed. Thanks for the report!
Thank you for solving the issue (3) about trim. Now it works as expected.
But issue (1) doesn't seem to be fixed. In my tests I still don't see the correct colors. However using imagemagick on the commandline I saw, that the problem might be due to the CMYK colorspace of the EPS file. To convert that file one has to use
For issue(2) I found some kind of a workaround. To make sure the second image will show up below the first image in the HTML produced by