bugGNU TeXmacs - Bugs: bug #44696, Copy and export to image does not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #44696: Copy and export to image does not work in Windows.

Submitter:  Adrian Soto <adriansoto>
Submitted:  Thu 02 Apr 2015 12:18:05 AM UTC
   
 
Category:  Windows port Priority:  5 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Release:  1.99.2.8826
Fixed Release:  None Fixed Release: 
Keywords:  Windows, conversion, export to image, copy to image

Wed 30 Nov 2016 03:32:14 PM UTC, comment #2: 

The reported error is now fixed: win-texmacs now generates images starting from a pdf file which is generated internally; it does not need these (missing) helper files any longer.

However, for final images that are not pdf, texmacs will still call an external converter to convert from pdf to the desired format (These converters are defined in progs/convert/images/init-images.scm).

A good quality and versatile such converter is pdftocairo from the Poppler project: it can convert pdf to vector formats (eps, svg) as well as raster images (png, jpg,...). IMO it is much better than Imagemagick that only produces raster images (even if asked for eps of svg). In any case, if texmacs finds either pdftocairo or imagemagick in the PATH, it will use them.

Note that pdftocairo.exe is rather hard to find on the internet for installing on windows. To address this, I have made texmacs builds that come with pdftocairo ready-to-use. You can get them here: https://github.com/slowphil/mingw-w64-texmacs/releases/latest.

Philippe Joyez <pjoyez>
Group Member
Mon 06 Apr 2015 04:42:49 PM UTC, comment #1: 

Hi Adrian,

Oops I'm clearly the culprit here. Sorry about that.

Image export in windows has been in a bad state for some time, because it needs customized conversion tools that are not presently supplied with texmacs as you figured correctly.

Those you spotted are relative to Ghostscript, and there is one more file required to generate svg. This last one is GPL, but no ready-made binary exists for windows and I had to compile it myself. It ended up being a rather large file and at the time I proposed Joris was reluctant to include it in the windows package. In fact I think it should be made available for download on demand from the texmacs website. Also the new pdf renderer will make image generation better and simpler. Reworking all this is on my to-do list...

Meanwhile if you need only eps or pdf, I attach here the files that you are missing. Just unpack them in the bin directory. After that eps and pdf generation should work (using the latest windows version). If you do need the svg conversion tool let me know (it's too large to attach here).

Best regards,
Philippe



(file #33565)

Philippe Joyez <pjoyez>
Group Member
Thu 02 Apr 2015 12:18:05 AM UTC, original submission:  

I am trying to understand what the problem is when exporting and copying to an image in windows.  I tried to look in the files
TeXmacs/progs/convert/images/init-images
and
TeXmacs/progs/convert/images/tmimage

which in turn mentions  files in the Windows TeXmacs installation directory named

bin/tm-ps2epsi.bat
bin/tm-ps2pdf.bat
bin/tm-pdf2svg.bat

Such files are nowhere to be found. They all seem  to be  commands adapted somehow. The first one, bin/tm-ps2pesi.bat, is the file mentioned when trying to convert to either svg or eps.

When trying to convert to eps a different error message appears mentioning that, for example,  the file

C:\Users\adrian\AppData\Roaming\TeXmacs\system\tmp\1\tmp_2004254156.eps

is not readable. (Here C:\Users\adrian\AppData\Roaming\TeXmacs takes the place of $HOME/.TeXmacs in Linux)

I tried to install Image-Magic, Inkscape, MikTeX, Ghostview and Ghostcript hoping that I would have the prerequisites, but the problem seems to be, in part, the lack of those files.


Adrian Soto <adriansoto>
Group Member

 

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

Attached Files
file #33565:  texmacs-image-tools.zip added by pjoyez (6KiB - application/zip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pjoyez (Updated the item)
  • -email is unavailable- added by adriansoto (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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-30 pjoyez StatusNone Fixed
        Open/ClosedOpen Closed
    2015-04-06 pjoyez Attached File- Added texmacs-image-tools.zip, #33565

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code