Page 1 of 1

Attempting to convert image on a shared drive

Posted: 2016-07-07T09:39:01-07:00
by kgt882
I am trying to use this line of code to convert an image using a .bat file. I put it in a locally shared hard drive and wish for everyone to be able to use it WITHOUT making everyone download image-magick. So I pasted the image-magick file into the S:\ and it still only works for me since I have it downloaded. I was wondering if I can call the convert.exe method in the image-magick folder in order to make it so that everyone can convert an image without downloading imagemagick.

convert "%1" -thumbnail 610x -unsharp 1.5x1.2+1.0+0.10 "%~p1resizedxLarge_%~n1.jpg"

^This code above only works IF image-magick is installed on my pc.

ALSO: Different people have a different folder hierarhcy. I tried

..\ImageMagick\convert

but this error came up:

convert: RegistryKeyLookupFailed 'CoderModulesPath'
@error.module.c/GetMagick... etc

CURRENTLY I HAVE:

set ..\ImageMagick\=%%MAGICK_CODER_MODULE_PATH%%;
echo %%MAGICK_CODER_MODULE_PATH%%
convert "%1" -thumbnail 610x -unsharp 1.5x1.2+1.0+0.10 "%~p1resizedxLarge_%~n1.jpg"

but still doesn't work for those who don't have ImageMagick installed even though it's on the shared drive.

Thanks, in advance

UPDATE: I installed the portable version of Image Magick into the shared drive. Sadly, no results.

Re: Attempting to convert image on a shared drive

Posted: 2016-07-07T09:49:40-07:00
by snibgo
set ..\ImageMagick\=%%MAGICK_CODER_MODULE_PATH%%;
That doesn't make any sense. You have defined an environment variable called "..\ImageMagick\"? Why?

Re: Attempting to convert image on a shared drive

Posted: 2016-07-08T05:14:07-07:00
by kgt882
its because we don't have the same file path in our shared drive

Re: Attempting to convert image on a shared drive

Posted: 2016-07-08T05:33:29-07:00
by snibgo
You problem seems to be about management of multiple computers running programs from a shared drive. The problem seems to be general, and not specific to ImageMagick.

Can you set up your computers so they can run any program at all from a shared drive? Once you can do that, feel free to ask questions about ImageMagick.

Re: Attempting to convert image on a shared drive

Posted: 2016-07-08T06:12:39-07:00
by kgt882
ANSWER:
I installed ImageMagick Portable onto my shared drive.
Then I placed my folder with the .bat files into a folder in the same shared drive.
I then copy pasted convert.exe into the folder with the bat files in it and it started working.
Thanks for the attempt on helping!