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.

Submitted by:  Adrian Soto <adriansoto>
Submitted on:  Thu 02 Apr 2015 12:18:05 AM UTC  
 
Category: Windows portPriority: 5 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: 1.99.2.8826Release: None
Fixed Release: NoneFixed 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>
Project 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>
Project 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>
Project Member

 

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
  • -unavailable- added by pjoyez (Updated the item)
  • -unavailable- added by adriansoto (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 30 Nov 2016 03:32:14 PM UTCpjoyezStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 06 Apr 2015 04:42:49 PM UTCpjoyezAttached File-=>Added texmacs-image-tools.zip, #33565

    Back to the top


    Powered by Savane 3.1-cleanup1