Re: image conversion tools
(I send this to developers news group as well since they may know more about my question below). I don't know about the lyx source code but maybe there is a possibility to directly tell LyX to use the shared libraries in its own installation path in win XP/2000/9X instead of using the ones installed under cygwin by setting some type of varible e.g. LIBARARY_PATH or similar? thanks for nice program jorgen Niklas Huldén wrote: Jorgen Johansson wrote: Hello again, I am not sure what was going on, but I noticed in the about box that qt lyx was not using the shared library under its own installation. It was using the shared libraries for the lyx 1.3.1 version (under cygwin). I renamed temporary my cygwin directory to something else so the qt lyx can not find it. Now I don't need any to set explicitly the converters it works out of the box. I guess there is some problem with my path since renaming the cywin directory temporary fixed the problem. jorgen Rob S wrote: Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have etc... I can confirm that renaming the cygwin directory immediately made any problems with graphic conversion disappear in lyx (native win32-qt) 1.3.2. I have tried all the solutions discussed here before without success. Too bad that I also need the cygwin-installation :) regards Niklas Hulden
Re: image conversion tools
(I send this to developers news group as well since they may know more about my question below). I don't know about the lyx source code but maybe there is a possibility to directly tell LyX to use the shared libraries in its own installation path in win XP/2000/9X instead of using the ones installed under cygwin by setting some type of varible e.g. LIBARARY_PATH or similar? thanks for nice program jorgen Niklas Huldén wrote: Jorgen Johansson wrote: Hello again, I am not sure what was going on, but I noticed in the about box that qt lyx was not using the shared library under its own installation. It was using the shared libraries for the lyx 1.3.1 version (under cygwin). I renamed temporary my cygwin directory to something else so the qt lyx can not find it. Now I don't need any to set explicitly the converters it works out of the box. I guess there is some problem with my path since renaming the cywin directory temporary fixed the problem. jorgen Rob S wrote: Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have etc... I can confirm that renaming the cygwin directory immediately made any problems with graphic conversion disappear in lyx (native win32-qt) 1.3.2. I have tried all the solutions discussed here before without success. Too bad that I also need the cygwin-installation :) regards Niklas Hulden
Re: image conversion tools
(I send this to developers news group as well since they may know more about my question below). I don't know about the lyx source code but maybe there is a possibility to directly tell LyX to use the shared libraries in its own installation path in win XP/2000/9X instead of using the ones installed under cygwin by setting some type of varible e.g. LIBARARY_PATH or similar? thanks for nice program jorgen Niklas Huldén wrote: Jorgen Johansson wrote: Hello again, I am not sure what was going on, but I noticed in the about box that qt lyx was not using the shared library under its own installation. It was using the shared libraries for the lyx 1.3.1 version (under cygwin). I renamed temporary my cygwin directory to something else so the qt lyx can not find it. Now I don't need any to set explicitly the converters it works "out of the box". I guess there is some problem with my path since renaming the cywin directory temporary fixed the problem. jorgen Rob S wrote: Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have etc... I can confirm that renaming the cygwin directory immediately made any problems with graphic conversion disappear in lyx (native win32-qt) 1.3.2. I have tried all the solutions discussed here before without success. Too bad that I also need the cygwin-installation :) regards Niklas Hulden
Re: image conversion tools
Hello again, I am not sure what was going on, but I noticed in the about box that qt lyx was not using the shared library under its own installation. It was using the shared libraries for the lyx 1.3.1 version (under cygwin). I renamed temporary my cygwin directory to something else so the qt lyx can not find it. Now I don't need any to set explicitly the converters it works out of the box. I guess there is some problem with my path since renaming the cywin directory temporary fixed the problem. jorgen Rob S wrote: Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have found successful is ensuring that imagemagick convert.exe is in your path BEFORE any windows directories. This is because of the system32 similarly named convert.exe being found first and trying to convert the image into a FAT32 or NFTS file system!! Even this though has not resolved the problem for me. Now I just use .eps images throughout and put up with not viewing them in the lyx gui but rely on viewing them in the DVI preview instead. Rob S -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of jorgen johansson Sent: 10 September 2003 19:37 To: [EMAIL PROTECTED] Subject: Re: image conversion tools Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter eps png my_ps2png $$i $$o \converter eps ppm my_ps2ppm $$i $$o \converter png eps convert PNG:$$i EPS:$$o Sorry. I'm an idiot. convert.exe on my machine is the Windows executable that turns a DOS filesystem into an NTFS filesystem. Turns out that I had not compiled and installed ImageMagick on that laptop. I compiled and installed the latest ImageMagick under Cygwin and now it works. ---Kayvan
Re: image conversion tools
Jorgen Johansson wrote: Hello again, I am not sure what was going on, but I noticed in the about box that qt lyx was not using the shared library under its own installation. It was using the shared libraries for the lyx 1.3.1 version (under cygwin). I renamed temporary my cygwin directory to something else so the qt lyx can not find it. Now I don't need any to set explicitly the converters it works out of the box. I guess there is some problem with my path since renaming the cywin directory temporary fixed the problem. jorgen Rob S wrote: Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have etc... I can confirm that renaming the cygwin directory immediately made any problems with graphic conversion disappear in lyx (native win32-qt) 1.3.2. I have tried all the solutions discussed here before without success. Too bad that I also need the cygwin-installation :) regards Niklas Hulden
Re: image conversion tools
Hello again, I am not sure what was going on, but I noticed in the about box that qt lyx was not using the shared library under its own installation. It was using the shared libraries for the lyx 1.3.1 version (under cygwin). I renamed temporary my cygwin directory to something else so the qt lyx can not find it. Now I don't need any to set explicitly the converters it works out of the box. I guess there is some problem with my path since renaming the cywin directory temporary fixed the problem. jorgen Rob S wrote: Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have found successful is ensuring that imagemagick convert.exe is in your path BEFORE any windows directories. This is because of the system32 similarly named convert.exe being found first and trying to convert the image into a FAT32 or NFTS file system!! Even this though has not resolved the problem for me. Now I just use .eps images throughout and put up with not viewing them in the lyx gui but rely on viewing them in the DVI preview instead. Rob S -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of jorgen johansson Sent: 10 September 2003 19:37 To: [EMAIL PROTECTED] Subject: Re: image conversion tools Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter eps png my_ps2png $$i $$o \converter eps ppm my_ps2ppm $$i $$o \converter png eps convert PNG:$$i EPS:$$o Sorry. I'm an idiot. convert.exe on my machine is the Windows executable that turns a DOS filesystem into an NTFS filesystem. Turns out that I had not compiled and installed ImageMagick on that laptop. I compiled and installed the latest ImageMagick under Cygwin and now it works. ---Kayvan
Re: image conversion tools
Jorgen Johansson wrote: Hello again, I am not sure what was going on, but I noticed in the about box that qt lyx was not using the shared library under its own installation. It was using the shared libraries for the lyx 1.3.1 version (under cygwin). I renamed temporary my cygwin directory to something else so the qt lyx can not find it. Now I don't need any to set explicitly the converters it works out of the box. I guess there is some problem with my path since renaming the cywin directory temporary fixed the problem. jorgen Rob S wrote: Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have etc... I can confirm that renaming the cygwin directory immediately made any problems with graphic conversion disappear in lyx (native win32-qt) 1.3.2. I have tried all the solutions discussed here before without success. Too bad that I also need the cygwin-installation :) regards Niklas Hulden
Re: image conversion tools
Hello again, I am not sure what was going on, but I noticed in the about box that qt lyx was not using the shared library under its own installation. It was using the shared libraries for the lyx 1.3.1 version (under cygwin). I renamed temporary my cygwin directory to something else so the qt lyx can not find it. Now I don't need any to set explicitly the converters it works "out of the box". I guess there is some problem with my path since renaming the cywin directory temporary fixed the problem. jorgen Rob S wrote: Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have found successful is ensuring that imagemagick convert.exe is in your path BEFORE any windows directories. This is because of the system32 similarly named convert.exe being found first and trying to convert the image into a FAT32 or NFTS file system!! Even this though has not resolved the problem for me. Now I just use .eps images throughout and put up with not viewing them in the lyx gui but rely on viewing them in the DVI preview instead. Rob S -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of jorgen johansson Sent: 10 September 2003 19:37 To: [EMAIL PROTECTED] Subject: Re: image conversion tools Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter "eps" "png" "my_ps2png $$i $$o" "" \converter "eps" "ppm" "my_ps2ppm $$i $$o" "" \converter "png" "eps" "convert PNG:$$i EPS:$$o" "" Sorry. I'm an idiot. "convert.exe" on my machine is the Windows executable that turns a DOS filesystem into an NTFS filesystem. Turns out that I had not compiled and installed ImageMagick on that laptop. I compiled and installed the latest ImageMagick under Cygwin and now it works. ---Kayvan
Re: image conversion tools
Jorgen Johansson wrote: Hello again, I am not sure what was going on, but I noticed in the about box that qt lyx was not using the shared library under its own installation. It was using the shared libraries for the lyx 1.3.1 version (under cygwin). I renamed temporary my cygwin directory to something else so the qt lyx can not find it. Now I don't need any to set explicitly the converters it works "out of the box". I guess there is some problem with my path since renaming the cywin directory temporary fixed the problem. jorgen Rob S wrote: Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have etc... I can confirm that renaming the cygwin directory immediately made any problems with graphic conversion disappear in lyx (native win32-qt) 1.3.2. I have tried all the solutions discussed here before without success. Too bad that I also need the cygwin-installation :) regards Niklas Hulden
Re: image conversion tools
I'd love to be able to do that but I am so far not a C++ programmer. Mainly using fortran 95 for my research. I'm familiar with C syntax and know a little bit about object oriented languageas, but I have no experience in developing for large projects. I guess downloading Lyx sources and start learning from that is one way get started. I'd thought I send in my observations on using the qt version because it would be useful for other users and possibly for someone who can patch. I'd be glad to help in some testing, when time allows. jorgen Angus Leeming wrote: jorgen johansson wrote: Hello again, Sorry to bother you all. I conversion works both with windows native or cygwin Imagemagick. I had to add an explicit converter in the preferences, either to use the cygwin or the windows Imagemagick. If not the qt 1.3.2 lyx was looking for the /usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin installation of lyx 1.3.1) directory. I would have guessed that the native version of cygwin should have looke for C:\lyx\share\lyx\scripts\ since I installed the qt version in C:\lyx\. Why didn't it? Because none of the developers uses Windows. If you want to step aboard and provide a patch, then you will be made most welcome.
Re: image conversion tools
I'd love to be able to do that but I am so far not a C++ programmer. Mainly using fortran 95 for my research. I'm familiar with C syntax and know a little bit about object oriented languageas, but I have no experience in developing for large projects. I guess downloading Lyx sources and start learning from that is one way get started. I'd thought I send in my observations on using the qt version because it would be useful for other users and possibly for someone who can patch. I'd be glad to help in some testing, when time allows. jorgen Angus Leeming wrote: jorgen johansson wrote: Hello again, Sorry to bother you all. I conversion works both with windows native or cygwin Imagemagick. I had to add an explicit converter in the preferences, either to use the cygwin or the windows Imagemagick. If not the qt 1.3.2 lyx was looking for the /usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin installation of lyx 1.3.1) directory. I would have guessed that the native version of cygwin should have looke for C:\lyx\share\lyx\scripts\ since I installed the qt version in C:\lyx\. Why didn't it? Because none of the developers uses Windows. If you want to step aboard and provide a patch, then you will be made most welcome.
Re: image conversion tools
I'd love to be able to do that but I am so far not a C++ programmer. Mainly using fortran 95 for my research. I'm familiar with C syntax and know a little bit about object oriented languageas, but I have no experience in developing for large projects. I guess downloading Lyx sources and start learning from that is one way get started. I'd thought I send in my observations on using the qt version because it would be useful for other users and possibly for someone who can patch. I'd be glad to help in some testing, when time allows. jorgen Angus Leeming wrote: jorgen johansson wrote: Hello again, Sorry to bother you all. I conversion works both with windows native or cygwin Imagemagick. I had to add an explicit converter in the preferences, either to use the cygwin or the windows Imagemagick. If not the qt 1.3.2 lyx was looking for the /usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin installation of lyx 1.3.1) directory. I would have guessed that the native version of cygwin should have looke for C:\lyx\share\lyx\scripts\ since I installed the qt version in C:\lyx\. Why didn't it? Because none of the developers uses Windows. If you want to step aboard and provide a patch, then you will be made most welcome.
Re: image conversion tools
Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter eps png my_ps2png $$i $$o \converter eps ppm my_ps2ppm $$i $$o \converter png eps convert PNG:$$i EPS:$$o Sorry. I'm an idiot. convert.exe on my machine is the Windows executable that turns a DOS filesystem into an NTFS filesystem. Turns out that I had not compiled and installed ImageMagick on that laptop. I compiled and installed the latest ImageMagick under Cygwin and now it works. ---Kayvan
Re: image conversion tools
On Thu, Sep 11, 2003 at 03:37:04AM +0900, jorgen johansson wrote: Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen I just grabbed the source and compiled and installed in under Cygwin. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92)
RE: image conversion tools
Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have found successful is ensuring that imagemagick convert.exe is in your path BEFORE any windows directories. This is because of the system32 similarly named convert.exe being found first and trying to convert the image into a FAT32 or NFTS file system!! Even this though has not resolved the problem for me. Now I just use .eps images throughout and put up with not viewing them in the lyx gui but rely on viewing them in the DVI preview instead. Rob S -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of jorgen johansson Sent: 10 September 2003 19:37 To: [EMAIL PROTECTED] Subject: Re: image conversion tools Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter eps png my_ps2png $$i $$o \converter eps ppm my_ps2ppm $$i $$o \converter png eps convert PNG:$$i EPS:$$o Sorry. I'm an idiot. convert.exe on my machine is the Windows executable that turns a DOS filesystem into an NTFS filesystem. Turns out that I had not compiled and installed ImageMagick on that laptop. I compiled and installed the latest ImageMagick under Cygwin and now it works. ---Kayvan
Re: image conversion tools
Hello again, Sorry to bother you all. I conversion works both with windows native or cygwin Imagemagick. I had to add an explicit converter in the preferences, either to use the cygwin or the windows Imagemagick. If not the qt 1.3.2 lyx was looking for the /usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin installation of lyx 1.3.1) directory. I would have guessed that the native version of cygwin should have looke for C:\lyx\share\lyx\scripts\ since I installed the qt version in C:\lyx\. Why didn't it? Is there some clash if I have both cygwin 1.3.1 (Claus Hentschel) and Ruurd's qt 1.3.2 installed on the same system? Thanks for a nice piece of software. I wil be slowly moving over to the qt version. Hopefully I will complete my Ph.D. thesis on it. /jorgen jorgen johansson wrote: Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter eps png my_ps2png $$i $$o \converter eps ppm my_ps2ppm $$i $$o \converter png eps convert PNG:$$i EPS:$$o Sorry. I'm an idiot. convert.exe on my machine is the Windows executable that turns a DOS filesystem into an NTFS filesystem. Turns out that I had not compiled and installed ImageMagick on that laptop. I compiled and installed the latest ImageMagick under Cygwin and now it works. ---Kayvan
Re: image conversion tools
jorgen johansson wrote: Hello again, Sorry to bother you all. I conversion works both with windows native or cygwin Imagemagick. I had to add an explicit converter in the preferences, either to use the cygwin or the windows Imagemagick. If not the qt 1.3.2 lyx was looking for the /usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin installation of lyx 1.3.1) directory. I would have guessed that the native version of cygwin should have looke for C:\lyx\share\lyx\scripts\ since I installed the qt version in C:\lyx\. Why didn't it? Because none of the developers uses Windows. If you want to step aboard and provide a patch, then you will be made most welcome. -- Angus
Re: image conversion tools
Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter eps png my_ps2png $$i $$o \converter eps ppm my_ps2ppm $$i $$o \converter png eps convert PNG:$$i EPS:$$o Sorry. I'm an idiot. convert.exe on my machine is the Windows executable that turns a DOS filesystem into an NTFS filesystem. Turns out that I had not compiled and installed ImageMagick on that laptop. I compiled and installed the latest ImageMagick under Cygwin and now it works. ---Kayvan
Re: image conversion tools
On Thu, Sep 11, 2003 at 03:37:04AM +0900, jorgen johansson wrote: Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen I just grabbed the source and compiled and installed in under Cygwin. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92)
RE: image conversion tools
Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have found successful is ensuring that imagemagick convert.exe is in your path BEFORE any windows directories. This is because of the system32 similarly named convert.exe being found first and trying to convert the image into a FAT32 or NFTS file system!! Even this though has not resolved the problem for me. Now I just use .eps images throughout and put up with not viewing them in the lyx gui but rely on viewing them in the DVI preview instead. Rob S -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of jorgen johansson Sent: 10 September 2003 19:37 To: [EMAIL PROTECTED] Subject: Re: image conversion tools Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter eps png my_ps2png $$i $$o \converter eps ppm my_ps2ppm $$i $$o \converter png eps convert PNG:$$i EPS:$$o Sorry. I'm an idiot. convert.exe on my machine is the Windows executable that turns a DOS filesystem into an NTFS filesystem. Turns out that I had not compiled and installed ImageMagick on that laptop. I compiled and installed the latest ImageMagick under Cygwin and now it works. ---Kayvan
Re: image conversion tools
Hello again, Sorry to bother you all. I conversion works both with windows native or cygwin Imagemagick. I had to add an explicit converter in the preferences, either to use the cygwin or the windows Imagemagick. If not the qt 1.3.2 lyx was looking for the /usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin installation of lyx 1.3.1) directory. I would have guessed that the native version of cygwin should have looke for C:\lyx\share\lyx\scripts\ since I installed the qt version in C:\lyx\. Why didn't it? Is there some clash if I have both cygwin 1.3.1 (Claus Hentschel) and Ruurd's qt 1.3.2 installed on the same system? Thanks for a nice piece of software. I wil be slowly moving over to the qt version. Hopefully I will complete my Ph.D. thesis on it. /jorgen jorgen johansson wrote: Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter eps png my_ps2png $$i $$o \converter eps ppm my_ps2ppm $$i $$o \converter png eps convert PNG:$$i EPS:$$o Sorry. I'm an idiot. convert.exe on my machine is the Windows executable that turns a DOS filesystem into an NTFS filesystem. Turns out that I had not compiled and installed ImageMagick on that laptop. I compiled and installed the latest ImageMagick under Cygwin and now it works. ---Kayvan
Re: image conversion tools
jorgen johansson wrote: Hello again, Sorry to bother you all. I conversion works both with windows native or cygwin Imagemagick. I had to add an explicit converter in the preferences, either to use the cygwin or the windows Imagemagick. If not the qt 1.3.2 lyx was looking for the /usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin installation of lyx 1.3.1) directory. I would have guessed that the native version of cygwin should have looke for C:\lyx\share\lyx\scripts\ since I installed the qt version in C:\lyx\. Why didn't it? Because none of the developers uses Windows. If you want to step aboard and provide a patch, then you will be made most welcome. -- Angus
Re: image conversion tools
Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter "eps" "png" "my_ps2png $$i $$o" "" \converter "eps" "ppm" "my_ps2ppm $$i $$o" "" \converter "png" "eps" "convert PNG:$$i EPS:$$o" "" Sorry. I'm an idiot. "convert.exe" on my machine is the Windows executable that turns a DOS filesystem into an NTFS filesystem. Turns out that I had not compiled and installed ImageMagick on that laptop. I compiled and installed the latest ImageMagick under Cygwin and now it works. ---Kayvan
Re: image conversion tools
On Thu, Sep 11, 2003 at 03:37:04AM +0900, jorgen johansson wrote: > Hello, > > I wonder if imagemagick has to be installed as a part of cygwin or can I > use the native windows imagemagick when I want use the native qt lyx > 1.3.2 on windows XP? > > I tried installing a couple of months ago and couldn't get it to work > (the image conversion) I debugged and was also in contact with Ruurd > Reitsma directly. No solution back then. > > I tried tonight again and same error. > > Was the problem that I need the cygwin version of imagemagick?. > > For my lyx 1.3.1 under cygwin I am using the native windows version of > imagemagick. One would think it would work with the native qt version of > Lyx as well then. > > /jorgen I just grabbed the source and compiled and installed in under Cygwin. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)
RE: image conversion tools
Hi; You're not alone - I suffer the same problem and have done since changing from the cygwin version. However, one thing that others have found successful is ensuring that imagemagick convert.exe is in your path BEFORE any windows directories. This is because of the system32 similarly named convert.exe being found first and trying to convert the image into a FAT32 or NFTS file system!! Even this though has not resolved the problem for me. Now I just use .eps images throughout and put up with not viewing them in the lyx gui but rely on viewing them in the DVI preview instead. Rob S > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of jorgen johansson > Sent: 10 September 2003 19:37 > To: [EMAIL PROTECTED] > Subject: Re: image conversion tools > > Hello, > > I wonder if imagemagick has to be installed as a part of cygwin or can I > use the native windows imagemagick when I want use the native qt lyx > 1.3.2 on windows XP? > > I tried installing a couple of months ago and couldn't get it to work > (the image conversion) I debugged and was also in contact with Ruurd > Reitsma directly. No solution back then. > > I tried tonight again and same error. > > Was the problem that I need the cygwin version of imagemagick?. > > For my lyx 1.3.1 under cygwin I am using the native windows version of > imagemagick. One would think it would work with the native qt version of > Lyx as well then. > > /jorgen > > > > > Kayvan A. Sylvan wrote: > > On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: > > > >>What does the debug output tell you? (lyx -dbg graphics) > >> > >>What happens if you define a converter explicitly. Eg > >> > >>\converter "eps" "png" "my_ps2png $$i $$o" "" > >>\converter "eps" "ppm" "my_ps2ppm $$i $$o" "" > >>\converter "png" "eps" "convert PNG:$$i EPS:$$o" "" > >> > > > > > > Sorry. I'm an idiot. "convert.exe" on my machine is the Windows > executable > > that turns a DOS filesystem into an NTFS filesystem. > > > > Turns out that I had not compiled and installed ImageMagick on that > > laptop. > > > > I compiled and installed the latest ImageMagick under Cygwin and now > > it works. > > > > ---Kayvan >
Re: image conversion tools
Hello again, Sorry to bother you all. I conversion works both with windows native or cygwin Imagemagick. I had to add an explicit converter in the preferences, either to use the cygwin or the windows Imagemagick. If not the qt 1.3.2 lyx was looking for the /usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin installation of lyx 1.3.1) directory. I would have guessed that the native version of cygwin should have looke for C:\lyx\share\lyx\scripts\ since I installed the qt version in C:\lyx\. Why didn't it? Is there some clash if I have both cygwin 1.3.1 (Claus Hentschel) and Ruurd's qt 1.3.2 installed on the same system? Thanks for a nice piece of software. I wil be slowly moving over to the qt version. Hopefully I will complete my Ph.D. thesis on it. /jorgen jorgen johansson wrote: Hello, I wonder if imagemagick has to be installed as a part of cygwin or can I use the native windows imagemagick when I want use the native qt lyx 1.3.2 on windows XP? I tried installing a couple of months ago and couldn't get it to work (the image conversion) I debugged and was also in contact with Ruurd Reitsma directly. No solution back then. I tried tonight again and same error. Was the problem that I need the cygwin version of imagemagick?. For my lyx 1.3.1 under cygwin I am using the native windows version of imagemagick. One would think it would work with the native qt version of Lyx as well then. /jorgen Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 02:17:34PM +, Angus Leeming wrote: What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter "eps" "png" "my_ps2png $$i $$o" "" \converter "eps" "ppm" "my_ps2ppm $$i $$o" "" \converter "png" "eps" "convert PNG:$$i EPS:$$o" "" Sorry. I'm an idiot. "convert.exe" on my machine is the Windows executable that turns a DOS filesystem into an NTFS filesystem. Turns out that I had not compiled and installed ImageMagick on that laptop. I compiled and installed the latest ImageMagick under Cygwin and now it works. ---Kayvan
Re: image conversion tools
jorgen johansson wrote: > Hello again, > > Sorry to bother you all. I conversion works both with windows native or > cygwin Imagemagick. I had to add an explicit converter in the > preferences, either to use the cygwin or the windows Imagemagick. > If not the qt 1.3.2 lyx was looking for the > /usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin > installation of lyx 1.3.1) directory. I would have guessed that the > native version of cygwin should have looke for C:\lyx\share\lyx\scripts\ > since I installed the qt version in C:\lyx\. Why didn't it? Because none of the developers uses Windows. If you want to step aboard and provide a patch, then you will be made most welcome. -- Angus
image conversion tools
Hi all, I used to have lyx set up so I could hit View - PDF, and everything would work without any hitches. However, since re-installing debian, I must have missed a critical program. Now i get the message No information for converting jpg to eps, and No information for converting png to eps. I'm sure this used to work.. Does anyone here know what packages I'm missing? Thanks, -- Thomi Richards, http://once.sourceforge.net/
Re: image conversion tools
On Wed, Aug 27, 2003 at 07:01:22PM +1200, Thomi Richards wrote: Hi all, I used to have lyx set up so I could hit View - PDF, and everything would work without any hitches. However, since re-installing debian, I must have missed a critical program. Now i get the message No information for converting jpg to eps, and No information for converting png to eps. I'm sure this used to work.. Does anyone here know what packages I'm missing? Maybe 'convert' from the 'ImageMagick' packet? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: image conversion tools
Thomi Richards wrote: Hi all, I used to have lyx set up so I could hit View - PDF, and everything would work without any hitches. However, since re-installing debian, I must have missed a critical program. Now i get the message No information for converting jpg to eps, and No information for converting png to eps. I'm sure this used to work.. Does anyone here know what packages I'm missing? I expect that you aren't missing any packages. However, you'll need to tell LyX how to perform these conversions. If you were to use ImageMagick's 'convert' program then adding these lines to you $HOME/.lyx/preferences file should do the trick: \converter png eps convert $$i EPS:$$o \converter jpg eps convert $$i EPS:$$o You can do this either by editing the file by hand or by using the Preferences dialog (Edit-Preferences). If using the xforms frontend, select the Conversion-Converters tab. If using the Qt frontend, select the Converters pane. -- Angus
Re: image conversion tools
From: Andre Poenitz [EMAIL PROTECTED] Date: Thu, 28 Aug 2003 12:23:05 +0200 To: Thomi Richards [EMAIL PROTECTED] Cc: LyX Users [EMAIL PROTECTED] Subject: Re: image conversion tools X-Spam-Score: -26.1 (--) On Wed, Aug 27, 2003 at 07:01:22PM +1200, Thomi Richards wrote: Hi all, I used to have lyx set up so I could hit View - PDF, and everything would work without any hitches. However, since re-installing debian, I must have missed a critical program. Now i get the message No information for converting jpg to eps, and No information for converting png to eps. I'm sure this used to work.. Does anyone here know what packages I'm missing? Maybe 'convert' from the 'ImageMagick' packet? Could it come from .../share/lyx/scripts/convertDefault.sh being not executable ? -- Jean-Pierre
Re: image conversion tools
Jean-Pierre.Chretien wrote: Could it come from .../share/lyx/scripts/convertDefault.sh being not executable ? Have I ever told anyone that I hate that bloody script ;-) Yes, Jean-Pierre, you are correct. So the fix is either to make the script executable or to patch the LyX source: Index: insetgraphics.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetgraphics.C,v retrieving revision 1.146.2.1 diff -u -p -r1.146.2.1 insetgraphics.C --- insetgraphics.C 25 Feb 2003 13:42:48 - 1.146.2.1 +++ insetgraphics.C 28 Aug 2003 11:08:43 - @@ -668,7 +668,7 @@ string const InsetGraphics::prepareFile( // from ImageMagic: convert from:inname.from to:outname.to if (!converters.convert(buf, temp_file, outfile_base, from, to)) { string const command = - LibFileSearch(scripts, convertDefault.sh) + + sh + LibFileSearch(scripts, convertDefault.sh) + ' ' + from + ':' + temp_file + ' ' + to + ':' + outfile_base + '.' + to; lyxerr[Debug::GRAPHICS] --
RE: image conversion tools
This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. Rob S Jean-Pierre.Chretien wrote: Could it come from .../share/lyx/scripts/convertDefault.sh being not executable ? Have I ever told anyone that I hate that bloody script ;-) Yes, Jean-Pierre, you are correct. So the fix is either to make the script executable or to patch the LyX source: --
Re: image conversion tools
On Thursday 28 August 2003 12:24 pm, Rob Saunders wrote: This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. ? You are talking about entirely separate things. LaTeX _requires_ PostScript images. The LyX GUI can render your bitmap images natively. So, you can make a choice: 1. Use PostScript images, LaTeX will be happy and LyX will convert them to something it can render using a user-defined conversion procedure. If you define nothing it will attempt to use convertDefault.sh which in turn presumes the existence of ImageMagick's convert. 2. Use bitmap images. LyX will be able to render these on the screen, but they will need converting to PostScript for LaTeX. Again, how this is done is user-defined. Also again, we default to the use of convertDefault.sh. The one caveat here is the small bug highlighted by Jean-Pierre; the script must have its executable bit set. So, either set it or patch the source appropriately. Or, and in my opinion, preferable, don't use convertDefault.sh at all but define converters from format to format. The preferences dialog makes this trivial. Your call, Angus
Re: image conversion tools
From: Angus Leeming [EMAIL PROTECTED] To: Rob Saunders [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: image conversion tools Date: Thu, 28 Aug 2003 13:36:10 + On Thursday 28 August 2003 12:24 pm, Rob Saunders wrote: This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. ? You are talking about entirely separate things. LaTeX _requires_ PostScript images. The LyX GUI can render your bitmap images natively. So, you can make a choice: 1. Use PostScript images, LaTeX will be happy and LyX will convert them to something it can render using a user-defined conversion procedure. If you define nothing it will attempt to use convertDefault.sh which in turn presumes the existence of ImageMagick's convert. 2. Use bitmap images. LyX will be able to render these on the screen, but they will need converting to PostScript for LaTeX. Again, how this is done is user-defined. Also again, we default to the use of convertDefault.sh. The one caveat here is the small bug highlighted by Jean-Pierre; the script must have its executable bit set. So, either set it or patch the source appropriately. Or, and in my opinion, preferable, don't use convertDefault.sh at all but define converters from format to format. The preferences dialog makes this trivial. Sure, but as most of us rely on Imagemagick to do it, why not preconfigure the standard preferences to use convert/display/mogrify ? In fact there is no such thing as standard preferences, but the file is created by reconfigure, so I found more practical to run it as plain user, tune it and copy it back in the sharable dir (in fact, I copy the preferences of the previous lyx install). The only idea lying behind convertDefault.sh is to replace convert by any other image converter (e.g. gimp, if you understand how batch processing works there) and leave the preferences void, so why not both solutions ? By the way, in the patch in inset graphics you mentioned, wouldn't it be better to protect the argument of sh by single quotes ? Anyway, why not set the executable bit on in the distrib, at install time, for all files in the scripts dir (that would be good for lyx2lyx as well) instead of patching ? Once you know about it, you can manage, that's just to clean things up... -- Jean-Pierre
RE: image conversion tools
Or, and in my opinion, preferable, don't use convertDefault.sh at all but define converters from format to format. The preferences dialog makes this trivial. This is where I get to- trying to set up my preferences here. Trouble is I'm not sure of the arguments required to convert from one format to another format. Perhaps I've missed something elsewhere in documentation. It was never an issue under cygwin (all the default converters worked well) hence I've never really got to edit the preferences manually before. I'm guessing now but is something like the code in your previous reply required? How much of this needs to be entered at the preference text? \converter png eps convert $$i EPS:$$o \converter jpg eps convert $$i EPS:$$o Your call, Angus
Re: image conversion tools
On Thu, Aug 28, 2003 at 01:24:46PM +0100, Rob Saunders wrote: This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. Rob S Yeah... You know, this used to work correctly in Cygwin too. Now it always gives that message (error converting to loadable format) even though I have all the needed tools installed. Any ideas on how we can fix this? ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92)
Re: image conversion tools
Jean-Pierre.Chretien wrote: Sure, but as most of us rely on Imagemagick to do it, why not preconfigure the standard preferences to use convert/display/mogrify ? Shrug. Herbert wrote convertDefault.sh as a fall back because he got sick of adding yet another conversion process to the configure script. If you feel up to it, feel free. The only idea lying behind convertDefault.sh is to replace convert by any other image converter (e.g. gimp, if you understand how batch processing works there) and leave the preferences void, so why not both solutions ? Not true. The idea behind convertDefault.sh is to provide the compiled LyX executable with a hard-coded default converter whilst also providing you, the user, with some flexibility. What you do with the script is up to you. Personally I use different converters for different tasks and am not remotely interested in using convertDefault.sh. (Sorry but there it is.) I've just spent this time explaining how the process actually works out of the goodness of my heart ;-) Anyway, why not set the executable bit on in the distrib, at install time, for all files in the scripts dir (that would be good for lyx2lyx as well) instead of patching ? The aim is to move to asynchronous conversion using fork() and execvp(). (We use it already when converting images for display on LyX's screen). In this case we _have_ to run sh convertDefault.sh. -- Angus
Re: image conversion tools
Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 01:24:46PM +0100, Rob Saunders wrote: This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. Rob S Yeah... You know, this used to work correctly in Cygwin too. Now it always gives that message (error converting to loadable format) even though I have all the needed tools installed. Any ideas on how we can fix this? Does the patch fix it (http://article.gmane.org/gmane.editors.lyx.general%3A11002) Guess not actually, sice the patch deals with conversion to a format for export rather than for on-screen viewing. What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter eps png my_ps2png $$i $$o \converter eps ppm my_ps2ppm $$i $$o \converter png eps convert PNG:$$i EPS:$$o -- Angus my_ps2png Description: application/shellscript my_ps2ppm Description: application/shellscript
Re: image conversion tools
On Thursday 28 August 2003 12:57 pm, Rob Saunders wrote: I'm guessing now but is something like the code in your previous reply required? How much of this needs to be entered at the preference text? \converter png eps convert $$i EPS:$$o \converter jpg eps convert $$i EPS:$$o Have you tried? Edit-Preferences -- dialog pops up Select the Converters pane. Select a From and a To. Input the Converter: convert $$i EPS:$$o Press Modify The Apply and Save buttons will be activated. Press Save. Angus
Re: image conversion tools
Date: Thu, 28 Aug 2003 06:02:26 -0700 From: Kayvan A. Sylvan [EMAIL PROTECTED] To: 'Angus Leeming' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: image conversion tools X-PGP-Key: http://www.sylvan.com/~kayvan/kayvankey.asc On Thu, Aug 28, 2003 at 01:24:46PM +0100, Rob Saunders wrote: This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. Rob S Yeah... You know, this used to work correctly in Cygwin too. Now it always gives that message (error converting to loadable format) even though I have all the needed tools installed. Any ideas on how we can fix this? As you mention Cygwin, I suppose you're speaking about Ruurd's lyx port on Windows for QT. Here I get the message error converting to loadable format after a fugitive message in a DOS window mentioning convert.exe (that's all what I could catch :-) I guess I should write a wrapper for convert.exe to get a log of the error... -- Jean-Pierre
image conversion tools
Hi all, I used to have lyx set up so I could hit View - PDF, and everything would work without any hitches. However, since re-installing debian, I must have missed a critical program. Now i get the message No information for converting jpg to eps, and No information for converting png to eps. I'm sure this used to work.. Does anyone here know what packages I'm missing? Thanks, -- Thomi Richards, http://once.sourceforge.net/
Re: image conversion tools
On Wed, Aug 27, 2003 at 07:01:22PM +1200, Thomi Richards wrote: Hi all, I used to have lyx set up so I could hit View - PDF, and everything would work without any hitches. However, since re-installing debian, I must have missed a critical program. Now i get the message No information for converting jpg to eps, and No information for converting png to eps. I'm sure this used to work.. Does anyone here know what packages I'm missing? Maybe 'convert' from the 'ImageMagick' packet? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: image conversion tools
Thomi Richards wrote: Hi all, I used to have lyx set up so I could hit View - PDF, and everything would work without any hitches. However, since re-installing debian, I must have missed a critical program. Now i get the message No information for converting jpg to eps, and No information for converting png to eps. I'm sure this used to work.. Does anyone here know what packages I'm missing? I expect that you aren't missing any packages. However, you'll need to tell LyX how to perform these conversions. If you were to use ImageMagick's 'convert' program then adding these lines to you $HOME/.lyx/preferences file should do the trick: \converter png eps convert $$i EPS:$$o \converter jpg eps convert $$i EPS:$$o You can do this either by editing the file by hand or by using the Preferences dialog (Edit-Preferences). If using the xforms frontend, select the Conversion-Converters tab. If using the Qt frontend, select the Converters pane. -- Angus
Re: image conversion tools
From: Andre Poenitz [EMAIL PROTECTED] Date: Thu, 28 Aug 2003 12:23:05 +0200 To: Thomi Richards [EMAIL PROTECTED] Cc: LyX Users [EMAIL PROTECTED] Subject: Re: image conversion tools X-Spam-Score: -26.1 (--) On Wed, Aug 27, 2003 at 07:01:22PM +1200, Thomi Richards wrote: Hi all, I used to have lyx set up so I could hit View - PDF, and everything would work without any hitches. However, since re-installing debian, I must have missed a critical program. Now i get the message No information for converting jpg to eps, and No information for converting png to eps. I'm sure this used to work.. Does anyone here know what packages I'm missing? Maybe 'convert' from the 'ImageMagick' packet? Could it come from .../share/lyx/scripts/convertDefault.sh being not executable ? -- Jean-Pierre
Re: image conversion tools
Jean-Pierre.Chretien wrote: Could it come from .../share/lyx/scripts/convertDefault.sh being not executable ? Have I ever told anyone that I hate that bloody script ;-) Yes, Jean-Pierre, you are correct. So the fix is either to make the script executable or to patch the LyX source: Index: insetgraphics.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetgraphics.C,v retrieving revision 1.146.2.1 diff -u -p -r1.146.2.1 insetgraphics.C --- insetgraphics.C 25 Feb 2003 13:42:48 - 1.146.2.1 +++ insetgraphics.C 28 Aug 2003 11:08:43 - @@ -668,7 +668,7 @@ string const InsetGraphics::prepareFile( // from ImageMagic: convert from:inname.from to:outname.to if (!converters.convert(buf, temp_file, outfile_base, from, to)) { string const command = - LibFileSearch(scripts, convertDefault.sh) + + sh + LibFileSearch(scripts, convertDefault.sh) + ' ' + from + ':' + temp_file + ' ' + to + ':' + outfile_base + '.' + to; lyxerr[Debug::GRAPHICS] --
RE: image conversion tools
This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. Rob S Jean-Pierre.Chretien wrote: Could it come from .../share/lyx/scripts/convertDefault.sh being not executable ? Have I ever told anyone that I hate that bloody script ;-) Yes, Jean-Pierre, you are correct. So the fix is either to make the script executable or to patch the LyX source: --
Re: image conversion tools
On Thursday 28 August 2003 12:24 pm, Rob Saunders wrote: This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. ? You are talking about entirely separate things. LaTeX _requires_ PostScript images. The LyX GUI can render your bitmap images natively. So, you can make a choice: 1. Use PostScript images, LaTeX will be happy and LyX will convert them to something it can render using a user-defined conversion procedure. If you define nothing it will attempt to use convertDefault.sh which in turn presumes the existence of ImageMagick's convert. 2. Use bitmap images. LyX will be able to render these on the screen, but they will need converting to PostScript for LaTeX. Again, how this is done is user-defined. Also again, we default to the use of convertDefault.sh. The one caveat here is the small bug highlighted by Jean-Pierre; the script must have its executable bit set. So, either set it or patch the source appropriately. Or, and in my opinion, preferable, don't use convertDefault.sh at all but define converters from format to format. The preferences dialog makes this trivial. Your call, Angus
Re: image conversion tools
From: Angus Leeming [EMAIL PROTECTED] To: Rob Saunders [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: image conversion tools Date: Thu, 28 Aug 2003 13:36:10 + On Thursday 28 August 2003 12:24 pm, Rob Saunders wrote: This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. ? You are talking about entirely separate things. LaTeX _requires_ PostScript images. The LyX GUI can render your bitmap images natively. So, you can make a choice: 1. Use PostScript images, LaTeX will be happy and LyX will convert them to something it can render using a user-defined conversion procedure. If you define nothing it will attempt to use convertDefault.sh which in turn presumes the existence of ImageMagick's convert. 2. Use bitmap images. LyX will be able to render these on the screen, but they will need converting to PostScript for LaTeX. Again, how this is done is user-defined. Also again, we default to the use of convertDefault.sh. The one caveat here is the small bug highlighted by Jean-Pierre; the script must have its executable bit set. So, either set it or patch the source appropriately. Or, and in my opinion, preferable, don't use convertDefault.sh at all but define converters from format to format. The preferences dialog makes this trivial. Sure, but as most of us rely on Imagemagick to do it, why not preconfigure the standard preferences to use convert/display/mogrify ? In fact there is no such thing as standard preferences, but the file is created by reconfigure, so I found more practical to run it as plain user, tune it and copy it back in the sharable dir (in fact, I copy the preferences of the previous lyx install). The only idea lying behind convertDefault.sh is to replace convert by any other image converter (e.g. gimp, if you understand how batch processing works there) and leave the preferences void, so why not both solutions ? By the way, in the patch in inset graphics you mentioned, wouldn't it be better to protect the argument of sh by single quotes ? Anyway, why not set the executable bit on in the distrib, at install time, for all files in the scripts dir (that would be good for lyx2lyx as well) instead of patching ? Once you know about it, you can manage, that's just to clean things up... -- Jean-Pierre
RE: image conversion tools
Or, and in my opinion, preferable, don't use convertDefault.sh at all but define converters from format to format. The preferences dialog makes this trivial. This is where I get to- trying to set up my preferences here. Trouble is I'm not sure of the arguments required to convert from one format to another format. Perhaps I've missed something elsewhere in documentation. It was never an issue under cygwin (all the default converters worked well) hence I've never really got to edit the preferences manually before. I'm guessing now but is something like the code in your previous reply required? How much of this needs to be entered at the preference text? \converter png eps convert $$i EPS:$$o \converter jpg eps convert $$i EPS:$$o Your call, Angus
Re: image conversion tools
On Thu, Aug 28, 2003 at 01:24:46PM +0100, Rob Saunders wrote: This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. Rob S Yeah... You know, this used to work correctly in Cygwin too. Now it always gives that message (error converting to loadable format) even though I have all the needed tools installed. Any ideas on how we can fix this? ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92)
Re: image conversion tools
Jean-Pierre.Chretien wrote: Sure, but as most of us rely on Imagemagick to do it, why not preconfigure the standard preferences to use convert/display/mogrify ? Shrug. Herbert wrote convertDefault.sh as a fall back because he got sick of adding yet another conversion process to the configure script. If you feel up to it, feel free. The only idea lying behind convertDefault.sh is to replace convert by any other image converter (e.g. gimp, if you understand how batch processing works there) and leave the preferences void, so why not both solutions ? Not true. The idea behind convertDefault.sh is to provide the compiled LyX executable with a hard-coded default converter whilst also providing you, the user, with some flexibility. What you do with the script is up to you. Personally I use different converters for different tasks and am not remotely interested in using convertDefault.sh. (Sorry but there it is.) I've just spent this time explaining how the process actually works out of the goodness of my heart ;-) Anyway, why not set the executable bit on in the distrib, at install time, for all files in the scripts dir (that would be good for lyx2lyx as well) instead of patching ? The aim is to move to asynchronous conversion using fork() and execvp(). (We use it already when converting images for display on LyX's screen). In this case we _have_ to run sh convertDefault.sh. -- Angus
Re: image conversion tools
Kayvan A. Sylvan wrote: On Thu, Aug 28, 2003 at 01:24:46PM +0100, Rob Saunders wrote: This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. Rob S Yeah... You know, this used to work correctly in Cygwin too. Now it always gives that message (error converting to loadable format) even though I have all the needed tools installed. Any ideas on how we can fix this? Does the patch fix it (http://article.gmane.org/gmane.editors.lyx.general%3A11002) Guess not actually, sice the patch deals with conversion to a format for export rather than for on-screen viewing. What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter eps png my_ps2png $$i $$o \converter eps ppm my_ps2ppm $$i $$o \converter png eps convert PNG:$$i EPS:$$o -- Angus my_ps2png Description: application/shellscript my_ps2ppm Description: application/shellscript
Re: image conversion tools
On Thursday 28 August 2003 12:57 pm, Rob Saunders wrote: I'm guessing now but is something like the code in your previous reply required? How much of this needs to be entered at the preference text? \converter png eps convert $$i EPS:$$o \converter jpg eps convert $$i EPS:$$o Have you tried? Edit-Preferences -- dialog pops up Select the Converters pane. Select a From and a To. Input the Converter: convert $$i EPS:$$o Press Modify The Apply and Save buttons will be activated. Press Save. Angus
Re: image conversion tools
Date: Thu, 28 Aug 2003 06:02:26 -0700 From: Kayvan A. Sylvan [EMAIL PROTECTED] To: 'Angus Leeming' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: image conversion tools X-PGP-Key: http://www.sylvan.com/~kayvan/kayvankey.asc On Thu, Aug 28, 2003 at 01:24:46PM +0100, Rob Saunders wrote: This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without error converting to loadable format etc. At least all is well in the final output pdf or dvi which is all that matters to me. Rob S Yeah... You know, this used to work correctly in Cygwin too. Now it always gives that message (error converting to loadable format) even though I have all the needed tools installed. Any ideas on how we can fix this? As you mention Cygwin, I suppose you're speaking about Ruurd's lyx port on Windows for QT. Here I get the message error converting to loadable format after a fugitive message in a DOS window mentioning convert.exe (that's all what I could catch :-) I guess I should write a wrapper for convert.exe to get a log of the error... -- Jean-Pierre
image conversion tools
Hi all, I used to have lyx set up so I could hit "View -> PDF", and everything would work without any hitches. However, since re-installing debian, I must have missed a critical program. Now i get the message "No information for converting jpg to eps", and "No information for converting png to eps". I'm sure this used to work.. Does anyone here know what packages I'm missing? Thanks, -- Thomi Richards, http://once.sourceforge.net/
Re: image conversion tools
On Wed, Aug 27, 2003 at 07:01:22PM +1200, Thomi Richards wrote: > > Hi all, > > > I used to have lyx set up so I could hit "View -> PDF", and everything would > work without any hitches. However, since re-installing debian, I must have > missed a critical program. Now i get the message "No information for > converting jpg to eps", and "No information for converting png to eps". > > I'm sure this used to work.. Does anyone here know what packages I'm missing? Maybe 'convert' from the 'ImageMagick' packet? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: image conversion tools
Thomi Richards wrote: > Hi all, > > I used to have lyx set up so I could hit "View -> PDF", and everything > would work without any hitches. However, since re-installing debian, I > must have missed a critical program. Now i get the message "No information > for converting jpg to eps", and "No information for converting png to > eps". > > I'm sure this used to work.. Does anyone here know what packages I'm > missing? I expect that you aren't missing any packages. However, you'll need to tell LyX how to perform these conversions. If you were to use ImageMagick's 'convert' program then adding these lines to you $HOME/.lyx/preferences file should do the trick: \converter png eps "convert $$i EPS:$$o" "" \converter jpg eps "convert $$i EPS:$$o" "" You can do this either by editing the file by hand or by using the Preferences dialog (Edit->Preferences). If using the xforms frontend, select the Conversion->Converters tab. If using the Qt frontend, select the Converters pane. -- Angus
Re: image conversion tools
>>From: Andre Poenitz <[EMAIL PROTECTED]> >>Date: Thu, 28 Aug 2003 12:23:05 +0200 >>To: Thomi Richards <[EMAIL PROTECTED]> >>Cc: LyX Users <[EMAIL PROTECTED]> >>Subject: Re: image conversion tools >>X-Spam-Score: -26.1 (--) >> >>On Wed, Aug 27, 2003 at 07:01:22PM +1200, Thomi Richards wrote: >>> >>> Hi all, >>> >>> >>> I used to have lyx set up so I could hit "View -> PDF", and everything would >>> work without any hitches. However, since re-installing debian, I must have >>> missed a critical program. Now i get the message "No information for >>> converting jpg to eps", and "No information for converting png to eps". >>> >>> I'm sure this used to work.. Does anyone here know what packages I'm missing? >> >>Maybe 'convert' from the 'ImageMagick' packet? Could it come from .../share/lyx/scripts/convertDefault.sh being not executable ? -- Jean-Pierre
Re: image conversion tools
Jean-Pierre.Chretien wrote: > Could it come from > .../share/lyx/scripts/convertDefault.sh > being not executable ? Have I ever told anyone that I hate that bloody script ;-) Yes, Jean-Pierre, you are correct. So the fix is either to make the script executable or to patch the LyX source: Index: insetgraphics.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetgraphics.C,v retrieving revision 1.146.2.1 diff -u -p -r1.146.2.1 insetgraphics.C --- insetgraphics.C 25 Feb 2003 13:42:48 - 1.146.2.1 +++ insetgraphics.C 28 Aug 2003 11:08:43 - @@ -668,7 +668,7 @@ string const InsetGraphics::prepareFile( // from ImageMagic: convert from:inname.from to:outname.to if (!converters.convert(buf, temp_file, outfile_base, from, to)) { string const command = - LibFileSearch("scripts", "convertDefault.sh") + + "sh " + LibFileSearch("scripts", "convertDefault.sh") + ' ' + from + ':' + temp_file + ' ' + to + ':' + outfile_base + '.' + to; lyxerr[Debug::GRAPHICS] --
RE: image conversion tools
This appears to be a problem, at least with my set ups, in the win32(XP pro) Qt version as well. In the same manner as original problem I cannot convert .bmp to .eps without Lyx running the convertDefault.sh even though .bmp view well in the gui - So I have given up trying! Now I just use eps pics only and put up with not being able to view them in the gui without "error converting to loadable format" etc. At least all is well in the final output pdf or dvi which is all that matters to me. Rob S > > Jean-Pierre.Chretien wrote: > > Could it come from > > .../share/lyx/scripts/convertDefault.sh > > being not executable ? > > Have I ever told anyone that I hate that bloody script ;-) > > Yes, Jean-Pierre, you are correct. So the fix is either to make the > script executable or to patch the LyX source: > > --
Re: image conversion tools
On Thursday 28 August 2003 12:24 pm, Rob Saunders wrote: > This appears to be a problem, at least with my set ups, in the win32(XP > pro) Qt version as well. In the same manner as original problem I > cannot convert .bmp to .eps without Lyx running the convertDefault.sh > even though .bmp view well in the gui - So I have given up trying! Now I > just use eps pics only and put up with not being able to view them in > the gui without "error converting to loadable format" etc. > At least all is well in the final output pdf or dvi which is all that > matters to me. ? You are talking about entirely separate things. LaTeX _requires_ PostScript images. The LyX GUI can render your bitmap images natively. So, you can make a choice: 1. Use PostScript images, LaTeX will be happy and LyX will convert them to something it can render using a user-defined conversion procedure. If you define nothing it will attempt to use convertDefault.sh which in turn presumes the existence of ImageMagick's convert. 2. Use bitmap images. LyX will be able to render these on the screen, but they will need converting to PostScript for LaTeX. Again, how this is done is user-defined. Also again, we default to the use of convertDefault.sh. The one caveat here is the small bug highlighted by Jean-Pierre; the script must have its executable bit set. So, either set it or patch the source appropriately. Or, and in my opinion, preferable, don't use convertDefault.sh at all but define converters from format to format. The preferences dialog makes this trivial. Your call, Angus
Re: image conversion tools
>>From: Angus Leeming <[EMAIL PROTECTED]> >>To: "Rob Saunders" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> >>Subject: Re: image conversion tools >>Date: Thu, 28 Aug 2003 13:36:10 + >> >>On Thursday 28 August 2003 12:24 pm, Rob Saunders wrote: >>> This appears to be a problem, at least with my set ups, in the win32(XP >>> pro) Qt version as well. In the same manner as original problem I >>> cannot convert .bmp to .eps without Lyx running the convertDefault.sh >>> even though .bmp view well in the gui - So I have given up trying! Now I >>> just use eps pics only and put up with not being able to view them in >>> the gui without "error converting to loadable format" etc. >>> At least all is well in the final output pdf or dvi which is all that >>> matters to me. >> >>? >> >>You are talking about entirely separate things. >>LaTeX _requires_ PostScript images. >>The LyX GUI can render your bitmap images natively. >> >>So, you can make a choice: >>1. Use PostScript images, LaTeX will be happy and LyX will convert them to >>something it can render using a user-defined conversion procedure. If you >>define nothing it will attempt to use convertDefault.sh which in turn >>presumes the existence of ImageMagick's convert. >> >>2. Use bitmap images. LyX will be able to render these on the screen, but they >>will need converting to PostScript for LaTeX. Again, how this is done is >>user-defined. Also again, we default to the use of convertDefault.sh. The one >>caveat here is the small bug highlighted by Jean-Pierre; the script must have >>its executable bit set. So, either set it or patch the source appropriately. >> >>Or, and in my opinion, preferable, don't use convertDefault.sh at all but >>define converters from format to format. The preferences dialog makes this >>trivial. Sure, but as most of us rely on Imagemagick to do it, why not preconfigure the standard preferences to use convert/display/mogrify ? In fact there is no such thing as standard preferences, but the file is created by reconfigure, so I found more practical to run it as plain user, tune it and copy it back in the sharable dir (in fact, I copy the preferences of the previous lyx install). The only idea lying behind convertDefault.sh is to replace convert by any other image converter (e.g. gimp, if you understand how batch processing works there) and leave the preferences void, so why not both solutions ? By the way, in the patch in inset graphics you mentioned, wouldn't it be better to protect the argument of sh by single quotes ? Anyway, why not set the executable bit on in the distrib, at install time, for all files in the scripts dir (that would be good for lyx2lyx as well) instead of patching ? Once you know about it, you can manage, that's just to clean things up... -- Jean-Pierre
RE: image conversion tools
> > Or, and in my opinion, preferable, don't use convertDefault.sh at all but > define converters from format to format. The preferences dialog makes this > trivial. This is where I get to- trying to set up my preferences here. Trouble is I'm not sure of the arguments required to convert from one format to another format. Perhaps I've missed something elsewhere in documentation. It was never an issue under cygwin (all the default converters worked well) hence I've never really got to edit the preferences manually before. I'm guessing now but is something like the code in your previous reply required? How much of this needs to be entered at the preference text? \converter png eps "convert $$i EPS:$$o" "" \converter jpg eps "convert $$i EPS:$$o" "" > > Your call, > Angus >
Re: image conversion tools
On Thu, Aug 28, 2003 at 01:24:46PM +0100, Rob Saunders wrote: > > > > This appears to be a problem, at least with my set ups, in the win32(XP > pro) Qt version as well. In the same manner as original problem I > cannot convert .bmp to .eps without Lyx running the convertDefault.sh > even though .bmp view well in the gui - So I have given up trying! Now I > just use eps pics only and put up with not being able to view them in > the gui without "error converting to loadable format" etc. > At least all is well in the final output pdf or dvi which is all that > matters to me. > > Rob S Yeah... You know, this used to work correctly in Cygwin too. Now it always gives that message ("error converting to loadable format") even though I have all the needed tools installed. Any ideas on how we can fix this? ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)
Re: image conversion tools
Jean-Pierre.Chretien wrote: > Sure, but as most of us rely on Imagemagick to do it, why not > preconfigure the standard preferences to use convert/display/mogrify ? Shrug. Herbert wrote convertDefault.sh as a fall back because he got sick of adding yet another conversion process to the configure script. If you feel up to it, feel free. > The only idea lying behind convertDefault.sh is to replace convert > by any other image converter (e.g. gimp, if you understand how > batch processing works there) and leave the preferences void, > so why not both solutions ? Not true. The idea behind convertDefault.sh is to provide the compiled LyX executable with a hard-coded default converter whilst also providing you, the user, with some flexibility. What you do with the script is up to you. Personally I use different converters for different tasks and am not remotely interested in using convertDefault.sh. (Sorry but there it is.) I've just spent this time explaining how the process actually works out of the goodness of my heart ;-) > Anyway, why not set the executable bit on in the distrib, at install > time, for all files in the scripts dir > (that would be good for lyx2lyx as well) instead of patching ? The aim is to move to asynchronous conversion using fork() and execvp(). (We use it already when converting images for display on LyX's screen). In this case we _have_ to run "sh convertDefault.sh". -- Angus
Re: image conversion tools
Kayvan A. Sylvan wrote: > On Thu, Aug 28, 2003 at 01:24:46PM +0100, Rob Saunders wrote: >> >> >> >> This appears to be a problem, at least with my set ups, in the win32(XP >> pro) Qt version as well. In the same manner as original problem I >> cannot convert .bmp to .eps without Lyx running the convertDefault.sh >> even though .bmp view well in the gui - So I have given up trying! Now I >> just use eps pics only and put up with not being able to view them in >> the gui without "error converting to loadable format" etc. >> At least all is well in the final output pdf or dvi which is all that >> matters to me. >> >> Rob S > > Yeah... You know, this used to work correctly in Cygwin too. Now it always > gives that message ("error converting to loadable format") even though > I have all the needed tools installed. > > Any ideas on how we can fix this? Does the patch fix it (http://article.gmane.org/gmane.editors.lyx.general%3A11002) Guess not actually, sice the patch deals with conversion to a format for export rather than for on-screen viewing. What does the debug output tell you? (lyx -dbg graphics) What happens if you define a converter explicitly. Eg \converter "eps" "png" "my_ps2png $$i $$o" "" \converter "eps" "ppm" "my_ps2ppm $$i $$o" "" \converter "png" "eps" "convert PNG:$$i EPS:$$o" "" -- Angus my_ps2png Description: application/shellscript my_ps2ppm Description: application/shellscript
Re: image conversion tools
On Thursday 28 August 2003 12:57 pm, Rob Saunders wrote: > > I'm guessing now but is something like the code in your previous reply > required? How much of this needs to be entered at the preference text? > > \converter png eps "convert $$i EPS:$$o" "" > \converter jpg eps "convert $$i EPS:$$o" "" Have you tried? Edit->Preferences --> dialog pops up Select the "Converters" pane. Select a "From" and a "To". Input the Converter: convert $$i EPS:$$o Press Modify The "Apply" and "Save" buttons will be activated. Press "Save". Angus
Re: image conversion tools
>>Date: Thu, 28 Aug 2003 06:02:26 -0700 >>From: "Kayvan A. Sylvan" <[EMAIL PROTECTED]> >>To: "'Angus Leeming'" <[EMAIL PROTECTED]> >>Cc: [EMAIL PROTECTED] >>Subject: Re: image conversion tools >>X-PGP-Key: http://www.sylvan.com/~kayvan/kayvankey.asc >> >>On Thu, Aug 28, 2003 at 01:24:46PM +0100, Rob Saunders wrote: >>> >>> >>> >>> This appears to be a problem, at least with my set ups, in the win32(XP >>> pro) Qt version as well. In the same manner as original problem I >>> cannot convert .bmp to .eps without Lyx running the convertDefault.sh >>> even though .bmp view well in the gui - So I have given up trying! Now I >>> just use eps pics only and put up with not being able to view them in >>> the gui without "error converting to loadable format" etc. >>> At least all is well in the final output pdf or dvi which is all that >>> matters to me. >>> >>> Rob S >> >>Yeah... You know, this used to work correctly in Cygwin too. Now it always >>gives that message ("error converting to loadable format") even though >>I have all the needed tools installed. >> >>Any ideas on how we can fix this? As you mention Cygwin, I suppose you're speaking about Ruurd's lyx port on Windows for QT. Here I get the message "error converting to loadable format" after a fugitive message in a DOS window mentioning convert.exe (that's all what I could catch :-) I guess I should write a wrapper for convert.exe to get a log of the error... -- Jean-Pierre