Issue 72096 - Call to convert.exe executable with incorrect path
Summary: Call to convert.exe executable with incorrect path
Status: CLOSED FIXED
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: OOo 2.0.4
Hardware: All Windows XP
: P3 Trivial with 3 votes (vote)
Target Milestone: OOo 3.3
Assignee: caolanm
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-29 12:17 UTC by jmfv
Modified: 2010-01-23 17:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
fix (4.07 KB, patch)
2009-11-04 12:57 UTC, caolanm
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description jmfv 2006-11-29 12:17:47 UTC
Hello

When an EPS file is imported, convert.exe is executed. For some reason,
Openoffice calls the convert located in

c:\windows\system32\convert.exe

which makes no sense, since this convert.exe is NOT ImageMagick's convert but an
MS application that converts ntfs to fat.

I guess that Openoffice should call convert.exe from ImageMagick, but for some
reason it call MS convert... 
I have ImageMagick installed and when I run from the command prompt

> cmd
> convert

I get the ImageMagick's convert.exe output:

> C:\Documents and Settings>convert
> Version: ImageMagick 6.3.0 11/22/06 Q16 http://www.imagemagick.org
> Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
> 
> Usage: convert [options ...] file [ [options ...] file ...] [options ...] file

So I have no idea why Openoffice tries to call MS convert.exe instead of
ImageMagicks...
Comment 1 noel.power 2006-12-13 15:16:44 UTC
I've no clue, filter issue?
->mba: no doubt you will know who to direct this to ;-)
Comment 2 Mathias_Bauer 2006-12-13 17:43:01 UTC
Sorry, I also have no clue. What convert.exe is meant here?

Sven?!
Comment 3 bluealpha 2006-12-14 20:52:28 UTC
Hello

I have got the same problem.
I also tried to install the convert.exe binary from ImageMagick and the %PATH%
contains the correct path to it, c:\im but never the less OO Writer opens the
file conversion tool from the system32 directory in the windows path.
Actually I create preview pictures with ghostview but it is not as comfortable
as OpenOffice works on linux, the experience I have is on Knoppix and Kubuntu.
The preview pictures I create manually have the problem of beeing huge and 'bad
in  quality' - I guess because of a bigger size than needed or maybe wrong box
measurement.

I am looking forward hoping this Issue can be solved.

Thank you very much
Comment 4 sven.jacobi 2007-01-16 10:21:32 UTC
sj->cmc: can you please take over this issue...
Comment 5 caolanm 2007-01-17 10:37:14 UTC
I do see that under windows with convert available that the eps still does not
get a preview, will look into this
Comment 6 robucci 2007-02-10 02:50:11 UTC
Still a problem in OOo 2.1
You can place the ImageMagick convert.exe and DLLs into openoffice subdirectory
"program" to have it found before windows/system32/convert.exe, but even then it
is not successful.  Using Sysinternals "Processes Monitor" shows OOo accesses
the correct convert.exe, then the incorrect one, and then the correct one again.
 It seems to do much more with the correct one, even accessing the DLLs, but the
final rendering does not show.  This is a very important feature for those that
use latex and eps files generated with programs like Illustrator, and would like
to reuse the native eps files in presentations.
Comment 7 robucci 2007-02-10 02:50:27 UTC
Still a problem in OOo 2.1
You can place the ImageMagick convert.exe and DLLs into openoffice subdirectory
"program" to have it found before windows/system32/convert.exe, but even then it
is not successful.  Using Sysinternals "Processes Monitor" shows OOo accesses
the correct convert.exe, then the incorrect one, and then the correct one again.
 It seems to do much more with the correct one, even accessing the DLLs, but the
final rendering does not show.  This is a very important feature for those that
use latex and eps files generated with programs like Illustrator, and would like
to reuse the native eps files in presentations.
Comment 8 caolanm 2009-11-04 12:57:02 UTC
Created attachment 65921 [details]
fix
Comment 9 caolanm 2009-11-04 12:59:40 UTC
Hmm, 
a) the underlying SearchPath on windows which is used to search for the
executables is rather off, claims to search "the folders that are specified in
the system path" but it definitely isn't searching in the order shown in %PATH%
or in System Properties->Environmental Variables->Path. So possible follow up
but there for the osl guys.
b) The return code is an error code of pipe closed on windows instead of just 0
for no error, need to allow that as well
Comment 10 caolanm 2009-11-04 13:20:52 UTC
done in exchgcmtdoc
Comment 11 caolanm 2010-01-11 10:36:23 UTC
redone in exchgcmtdoc2, verified
Comment 12 caolanm 2010-01-23 17:21:22 UTC
Closed, in DEV300_m70. Will be in 3.3