Page 1 of 1

Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-01T02:35:12-07:00
by ussername
I'm compiling my latex files to convert them automatically from PDF to image with Image Magick. Though I'm not sure whether this is rather latex compiler or Image Magick problem, perhaps I figure out something there.
The outcome image should be saved into recent folder (i.e. ..\import\). However IM wants the image in some unknown subfolder (\300), that I have never configured:

Image
Also I'm looking for some IM configuration that determines the saving path.

If anyone wants latex compilation log file. I'm using MiKTeX compiler.

Re: Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-20T11:14:02-07:00
by ussername
Can anybody help me? Thanks. Whole story

Re: Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-20T11:26:42-07:00
by ussername
If I successfully set folder permissions in command line:

Code: Select all

ICACLS "C:\Users\PC\Desktop\import\300" /grant "PC":F
ICACLS "C:\Users\PC\Desktop\import\300" /grant "Administrators":F
ICACLS "C:\Users\PC\Desktop\import\300" /grant "SYSTEM":F
the access is still denied. Please help...

Re: Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-20T11:54:47-07:00
by snibgo
ImageMagick has no configuration that determines the path for saving files.

The error message you are getting form IMdisplay is for an image file, not a directory.

Re: Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-20T12:17:24-07:00
by ussername
OK, can you situate me to try anything?

Test commands work for me:

Code: Select all

$ convert logo: logo.gif
$ identify logo.gif
$ imdisplay

Re: Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-20T12:28:16-07:00
by snibgo
Something is telling IMdisplay to open an image file called "C:\Users\PC\Desktop\import\300".

ImDisplay can't find that file.

Does the file exist? If not, then that is why IMdisplay can't find it.

Re: Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-20T12:50:09-07:00
by ussername
No, there is not such a file. I'm converting PDF file (it's called import.pdf) into image file.

I'm using standalone macro for cropping the formatted text/tikz image at compilation and then automatically calling IM to convert created PDF. In standalone manual there aren't noticed some special tasks for conversion software (just -shell-escape attribute), as well as some comments about 300 image.

Re: Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-20T13:02:09-07:00
by ussername
If I call the whole project 300 (-> 300.pdf), it still cannot find the 300 file.

Re: Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-20T13:20:49-07:00
by dlemstra
I have the feeling that ImageMagick is not called properly. The 300 looks like some density parameter.

Re: Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-21T11:26:19-07:00
by ussername
When I call convert in command line, it probably launch that WIN tool for converting FAT into NTFS. Also I gotta call the entire path:

Code: Select all

"D:\Program Files\ImageMagick-6.8.9-Q16\convert.exe" import.pdf import.png
Then it works. Could it be the problem? How can I get rid of it (may I delete that tool from path variable)?

Re: Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-21T11:33:04-07:00
by fmw42
rename IM convert.exe to something like IMconvert.exe and then use that

Re: Latex compilation -> pdf-image conversion saving path

Posted: 2014-07-21T11:40:34-07:00
by ussername
I renamed convert.exe into imgconvert.exe (there was another imgconvert.exe and I removed it, hope it doesn't matter), and NOW IT WORKS! After compilation, there is PNG image created :D
Thanks for your answers!