Re: [Dspace-tech] ImageMagick errors

2015-04-15 Thread Tim Donohue
Hi Shannon,

Hmmm.. it does sound like an error related to trying to use the wrong 
convert command (as you noted Windows has it's own convert.exe 
command). This StackOverflow answer says something similar:

http://stackoverflow.com/a/26163068

After some searching around, it seems like there's a few 
options..admittedly, I haven't tried *any* of these though:

1. These 'im4java' docs seem to imply the correct path syntax for 
Windows is C:\\Program Files\\ImageMagick (and you can specify 
multiple folders separated by semicolons): 
http://im4java.sourceforge.net/docs/dev-guide.html

2. The StackOverflow answer above says that installing the *portable* 
version of ImageMagick and Ghostscript may resolve this issue.

3. Another option may be to tweak your PATH so that the ImageMagick 
folder appears *before* your System32 folder. That solution is 
mentioned in this blog post on ImageMagick + Windows: 
http://savage.net.au/ImageMagick/html/install-convert.html

Again, I haven't tried any of these. But, if you find something that 
does work, please do let us know. We can then update the official 
Documentation with a recommended setup for Windows.

- Tim

On 4/14/2015 4:39 PM, Shannon Meisenheimer wrote:
 Hi,

 We are running DSpace 5.1 (Mirage2) on Windows Server 2012.

 I've installed ImageMagick and Ghostscript to same directory (C:\Program
 Files\ImageMagick).

 I have the following environment variable:
 IM4JAVA_TOOLPATH = C:\Program Files\ImageMagick\

 ... And have C:\Program Files\ImageMagick; prepended to my system Path
 variable.

 Running the following command:
 |[dspace]/bin/dspace filter-media |

 Results in the following error for every title/item:
 --
 org.im4java.core.CommandException: org.im4java.core.CommandException:
 Invalid Parameter -
 C:\Users\hitokiri\AppData\Local\Temp\impdfthumb211990492535865085.pdf.jpg
 --

 Issuing convert -help at cmd does display the list of parameters for
 ImageMagick/convert.exe, so the path and environment variables should be
 OK.  It, however, may be that DSpace is trying to use Windows convert
 (FAT to NTFS).

 Any attempts to configure
 org.dspace.app.mediafilter.ImageMagickThumbnailFilter.ProcessStarter
 in dspace.cfg result in:
 --
 org.im4java.core.CommandException: java.io.FileNotFoundException: convert
 --

 I've tried setting the process starter path in dspace.cfg to the
 following, with no change in result:
 - C:\\Program Files\\ImageMagick
 - C:\Program Files\ImageMagick
 - C:\Program Files\ImageMagick
 - C:/Program Files/ImageMagick

 At this point, I'm at a loss as how to proceed.

 Thanks,
 Shannon
 --
 Mr. Shannon Meisenheimer
 CentralNet - Office of Technology
 Blackboard Administration and Support
 University of Central Missouri
 Dockery 207A
 meisenhei...@ucmo.edu mailto:meisenhei...@ucmo.edu
 Work Phone:  (660) 543-8483



 --
 BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
 Develop your own process in accordance with the BPMN 2 standard
 Learn Process modeling best practices with Bonita BPM through live exercises
 http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF



 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette: 
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] ImageMagick errors

2015-04-15 Thread Shannon Meisenheimer
Thanks Tim, I had read some of those, but hadn't seen the third.  I'll try
the regedit,or just rename windows convert.  I already have ImageMagick at
the beginning of the PATH.  It's seems like I can run/access ImageMagick
convert from cmd when I call/run it directly, but DSpace is trying to use
Windows convert.

Is the double extension .pdf.jpg normal?

Do Ghostscript and ImageMagick need to be in the same folder?  I know it
states to install them both to /usr/bin (linux path) in the documentation,
but is that needed on a win box?

We had the thumbnail generation working on an earlier install of 5.0 with
the applications in their respective default install locations.



Mr. Shannon Meisenheimer
CentralNet - Office of Technology
Blackboard Administration and Support
University of Central Missouri
Dockery 207A
meisenhei...@ucmo.edu
Work Phone:  (660) 543-8483


On Wed, Apr 15, 2015 at 8:49 AM, Tim Donohue tdono...@duraspace.org wrote:

 Hi Shannon,

 Hmmm.. it does sound like an error related to trying to use the wrong
 convert command (as you noted Windows has it's own convert.exe
 command). This StackOverflow answer says something similar:

 http://stackoverflow.com/a/26163068

 After some searching around, it seems like there's a few
 options..admittedly, I haven't tried *any* of these though:

 1. These 'im4java' docs seem to imply the correct path syntax for Windows
 is C:\\Program Files\\ImageMagick (and you can specify multiple folders
 separated by semicolons): http://im4java.sourceforge.
 net/docs/dev-guide.html

 2. The StackOverflow answer above says that installing the *portable*
 version of ImageMagick and Ghostscript may resolve this issue.

 3. Another option may be to tweak your PATH so that the ImageMagick folder
 appears *before* your System32 folder. That solution is mentioned in this
 blog post on ImageMagick + Windows: http://savage.net.au/
 ImageMagick/html/install-convert.html

 Again, I haven't tried any of these. But, if you find something that does
 work, please do let us know. We can then update the official Documentation
 with a recommended setup for Windows.

 - Tim


 On 4/14/2015 4:39 PM, Shannon Meisenheimer wrote:

 Hi,

 We are running DSpace 5.1 (Mirage2) on Windows Server 2012.

 I've installed ImageMagick and Ghostscript to same directory (C:\Program
 Files\ImageMagick).

 I have the following environment variable:
 IM4JAVA_TOOLPATH = C:\Program Files\ImageMagick\

 ... And have C:\Program Files\ImageMagick; prepended to my system Path
 variable.

 Running the following command:
 |[dspace]/bin/dspace filter-media |

 Results in the following error for every title/item:
 --
 org.im4java.core.CommandException: org.im4java.core.CommandException:
 Invalid Parameter -
 C:\Users\hitokiri\AppData\Local\Temp\impdfthumb211990492535865085.pdf.jpg
 --

 Issuing convert -help at cmd does display the list of parameters for
 ImageMagick/convert.exe, so the path and environment variables should be
 OK.  It, however, may be that DSpace is trying to use Windows convert
 (FAT to NTFS).

 Any attempts to configure
 org.dspace.app.mediafilter.ImageMagickThumbnailFilter.ProcessStarter
 in dspace.cfg result in:
 --
 org.im4java.core.CommandException: java.io.FileNotFoundException: convert
 --

 I've tried setting the process starter path in dspace.cfg to the
 following, with no change in result:
 - C:\\Program Files\\ImageMagick
 - C:\Program Files\ImageMagick
 - C:\Program Files\ImageMagick
 - C:/Program Files/ImageMagick

 At this point, I'm at a loss as how to proceed.

 Thanks,
 Shannon
 --
 Mr. Shannon Meisenheimer
 CentralNet - Office of Technology
 Blackboard Administration and Support
 University of Central Missouri
 Dockery 207A
 meisenhei...@ucmo.edu mailto:meisenhei...@ucmo.edu
 Work Phone:  (660) 543-8483



 
 --
 BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
 Develop your own process in accordance with the BPMN 2 standard
 Learn Process modeling best practices with Bonita BPM through live
 exercises
 http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
 event?utm_
 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF



 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+
 Etiquette


--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
DSpace-tech mailing list

Re: [Dspace-tech] ImageMagick errors

2015-04-15 Thread Tim Donohue


On 4/15/2015 9:27 AM, Shannon Meisenheimer wrote:
 Thanks Tim, I had read some of those, but hadn't seen the third.  I'll
 try the regedit,or just rename windows convert.  I already have
 ImageMagick at the beginning of the PATH.  It's seems like I can
 run/access ImageMagick convert from cmd when I call/run it directly, but
 DSpace is trying to use Windows convert.

 Is the double extension .pdf.jpg normal?

Yes, this is just the extension of the *generated* PDF thumbnail (by the 
ImageMagick media filter). You actually may want to see if those 
referenced .pdf.jpg files were generated on your local system -- if 
so, that'd mean that ImageMagick actually *did* create those thumbnails 
(or at least started to do so, but ran into a later issue).


 Do Ghostscript and ImageMagick need to be in the same folder?  I know it
 states to install them both to /usr/bin (linux path) in the
 documentation, but is that needed on a win box?

Yes. Well, actually, they either need to be in the same folder OR you'd 
need to specify TWO paths in the 
org.dspace.app.mediafilter.ImageMagickThumbnailFilter.ProcessStarter 
setting. Since that setting is just passed directly to the im4java 
script (from imageMagick), it seems like you should be able to specify 
multiple folders separated by a semicolon, as noted here: 
http://im4java.sourceforge.net/docs/dev-guide.html

But, again, I'm going to admit, I've not tried that (especially on 
Windows). I'm only just getting more familiar with the ImageMagick code 
myself, so this is just from my reading of the existing code here.

It is also possible there's a bug here in how the ImageMagick media 
filter is referencing the scripts and/or generated thumbnail files. But, 
I don't know enough yet to state that for certain.

- Tim

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] ImageMagick errors

2015-04-15 Thread Shannon Meisenheimer
It was an issue with DSpace not being able to find ImageMagick
convert.exe, even though the path and environment variables are properly
defined.  You do have to set the path in dspace.cfg, but that in itself is
tricky as none the following worked:
--
- C:\\Program Files\\ImageMagick
- C:\Program Files\ImageMagick
- C:\Program Files\ImageMagick
- C:/Program Files/ImageMagick
--


Monkeying with the registry or modifying sys32 applications was a last
resort for me, so what I tried that worked was:


   1. Install ImageMagick and Ghostscript to c:\dspace\imagemagick.  I
   chose a lower case for the subfolder not knowing if config definitions for
   file paths in dspace.cfg would be case sensitive.  I went with the
   assumption that they are.

   2. Define
   'org.dspace.app.mediafilter.ImageMagickThumbnailFilter.ProcessStarter' in
   dspace.cfg as '${dspace.dir}/imagemagick'.


Turns out the relative path did the trick.  ... Or it could be that Program
Files has a space in it, I would think quote encapsulation would deal with
that.  Either way it's working now :)

Thanks all,
Shannon
--
Mr. Shannon Meisenheimer
CentralNet - Office of Technology
Blackboard Administration and Support
University of Central Missouri
Dockery 207A
meisenhei...@ucmo.edu
Work Phone:  (660) 543-8483


On Wed, Apr 15, 2015 at 9:51 AM, Tim Donohue tdono...@duraspace.org wrote:



 On 4/15/2015 9:27 AM, Shannon Meisenheimer wrote:

 Thanks Tim, I had read some of those, but hadn't seen the third.  I'll
 try the regedit,or just rename windows convert.  I already have
 ImageMagick at the beginning of the PATH.  It's seems like I can
 run/access ImageMagick convert from cmd when I call/run it directly, but
 DSpace is trying to use Windows convert.

 Is the double extension .pdf.jpg normal?


 Yes, this is just the extension of the *generated* PDF thumbnail (by the
 ImageMagick media filter). You actually may want to see if those referenced
 .pdf.jpg files were generated on your local system -- if so, that'd mean
 that ImageMagick actually *did* create those thumbnails (or at least
 started to do so, but ran into a later issue).


 Do Ghostscript and ImageMagick need to be in the same folder?  I know it
 states to install them both to /usr/bin (linux path) in the
 documentation, but is that needed on a win box?


 Yes. Well, actually, they either need to be in the same folder OR you'd
 need to specify TWO paths in the org.dspace.app.mediafilter.
 ImageMagickThumbnailFilter.ProcessStarter setting. Since that setting is
 just passed directly to the im4java script (from imageMagick), it seems
 like you should be able to specify multiple folders separated by a
 semicolon, as noted here: http://im4java.sourceforge.
 net/docs/dev-guide.html

 But, again, I'm going to admit, I've not tried that (especially on
 Windows). I'm only just getting more familiar with the ImageMagick code
 myself, so this is just from my reading of the existing code here.

 It is also possible there's a bug here in how the ImageMagick media filter
 is referencing the scripts and/or generated thumbnail files. But, I don't
 know enough yet to state that for certain.

 - Tim

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] ImageMagick errors

2015-04-14 Thread Keir Vaughan-Taylor
I notice the extension is .pdf.jpg. Imagemagick relies on the extension
to know how to do a conversion. 


On Tue, 2015-04-14 at 16:39 -0500, Shannon Meisenheimer wrote:
 Hi,
 
 We are running DSpace 5.1 (Mirage2) on Windows Server 2012.
 
 I've installed ImageMagick and Ghostscript to same directory (C:\Program
 Files\ImageMagick).
 
 I have the following environment variable:
 IM4JAVA_TOOLPATH = C:\Program Files\ImageMagick\
 
 ... And have C:\Program Files\ImageMagick; prepended to my system Path
 variable.
 
 Running the following command:
 [dspace]/bin/dspace filter-media
 
 Results in the following error for every title/item:
 --
 org.im4java.core.CommandException: org.im4java.core.CommandException:
 Invalid Parameter -
 C:\Users\hitokiri\AppData\Local\Temp\impdfthumb211990492535865085.pdf.jpg
 --
 
 Issuing convert -help at cmd does display the list of parameters for
 ImageMagick/convert.exe, so the path and environment variables should be
 OK.  It, however, may be that DSpace is trying to use Windows convert (FAT
 to NTFS).
 
 Any attempts to configure
 org.dspace.app.mediafilter.ImageMagickThumbnailFilter.ProcessStarter
 in dspace.cfg result in:
 --
 org.im4java.core.CommandException: java.io.FileNotFoundException: convert
 --
 
 I've tried setting the process starter path in dspace.cfg to the following,
 with no change in result:
 - C:\\Program Files\\ImageMagick
 - C:\Program Files\ImageMagick
 - C:\Program Files\ImageMagick
 - C:/Program Files/ImageMagick
 
 At this point, I'm at a loss as how to proceed.
 
 Thanks,
 Shannon
 --
 Mr. Shannon Meisenheimer
 CentralNet - Office of Technology
 Blackboard Administration and Support
 University of Central Missouri
 Dockery 207A
 meisenhei...@ucmo.edu
 Work Phone:  (660) 543-8483
 --
 BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
 Develop your own process in accordance with the BPMN 2 standard
 Learn Process modeling best practices with Bonita BPM through live exercises
 http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
 ___ DSpace-tech mailing list 
 DSpace-tech@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: 
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] ImageMagick errors

2015-04-14 Thread Shannon Meisenheimer
I assumed that was the output file (thumbnail)...

If it isn't, I wouldn't have any idea what those files are.  All 220 errors 
(there are 220 titles) show the same double extension.

Thanks,
Shannon

Sent from my iPhone

 On Apr 14, 2015, at 5:05 PM, Keir Vaughan-Taylor kei...@optusnet.com.au 
 wrote:
 
 I notice the extension is .pdf.jpg. Imagemagick relies on the extension
 to know how to do a conversion. 
 
 
 On Tue, 2015-04-14 at 16:39 -0500, Shannon Meisenheimer wrote:
 Hi,
 
 We are running DSpace 5.1 (Mirage2) on Windows Server 2012.
 
 I've installed ImageMagick and Ghostscript to same directory (C:\Program
 Files\ImageMagick).
 
 I have the following environment variable:
 IM4JAVA_TOOLPATH = C:\Program Files\ImageMagick\
 
 ... And have C:\Program Files\ImageMagick; prepended to my system Path
 variable.
 
 Running the following command:
 [dspace]/bin/dspace filter-media
 
 Results in the following error for every title/item:
 --
 org.im4java.core.CommandException: org.im4java.core.CommandException:
 Invalid Parameter -
 C:\Users\hitokiri\AppData\Local\Temp\impdfthumb211990492535865085.pdf.jpg
 --
 
 Issuing convert -help at cmd does display the list of parameters for
 ImageMagick/convert.exe, so the path and environment variables should be
 OK.  It, however, may be that DSpace is trying to use Windows convert (FAT
 to NTFS).
 
 Any attempts to configure
 org.dspace.app.mediafilter.ImageMagickThumbnailFilter.ProcessStarter
 in dspace.cfg result in:
 --
 org.im4java.core.CommandException: java.io.FileNotFoundException: convert
 --
 
 I've tried setting the process starter path in dspace.cfg to the following,
 with no change in result:
 - C:\\Program Files\\ImageMagick
 - C:\Program Files\ImageMagick
 - C:\Program Files\ImageMagick
 - C:/Program Files/ImageMagick
 
 At this point, I'm at a loss as how to proceed.
 
 Thanks,
 Shannon
 --
 Mr. Shannon Meisenheimer
 CentralNet - Office of Technology
 Blackboard Administration and Support
 University of Central Missouri
 Dockery 207A
 meisenhei...@ucmo.edu
 Work Phone:  (660) 543-8483
 --
 BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
 Develop your own process in accordance with the BPMN 2 standard
 Learn Process modeling best practices with Bonita BPM through live exercises
 http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
 source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
 ___ DSpace-tech mailing list 
 DSpace-tech@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: 
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
 
 

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette