Latex compilation -> pdf-image conversion saving path

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
ussername
Posts: 8
Joined: 2014-07-01T01:58:43-07:00
Authentication code: 6789

Latex compilation -> pdf-image conversion saving path

Post 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.
ussername
Posts: 8
Joined: 2014-07-01T01:58:43-07:00
Authentication code: 6789

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

Post by ussername »

Can anybody help me? Thanks. Whole story
ussername
Posts: 8
Joined: 2014-07-01T01:58:43-07:00
Authentication code: 6789

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

Post 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...
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
ussername
Posts: 8
Joined: 2014-07-01T01:58:43-07:00
Authentication code: 6789

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

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
ussername
Posts: 8
Joined: 2014-07-01T01:58:43-07:00
Authentication code: 6789

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

Post 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.
ussername
Posts: 8
Joined: 2014-07-01T01:58:43-07:00
Authentication code: 6789

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

Post by ussername »

If I call the whole project 300 (-> 300.pdf), it still cannot find the 300 file.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post by dlemstra »

I have the feeling that ImageMagick is not called properly. The 300 looks like some density parameter.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
ussername
Posts: 8
Joined: 2014-07-01T01:58:43-07:00
Authentication code: 6789

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

Post 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)?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 »

rename IM convert.exe to something like IMconvert.exe and then use that
ussername
Posts: 8
Joined: 2014-07-01T01:58:43-07:00
Authentication code: 6789

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

Post 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!
Post Reply